Refactor hidden Mastodon content structure in bridgy partial

This commit is contained in:
Fundor333
2025-05-18 12:57:27 +02:00
parent bb069f23e6
commit df39ecb0ef
2 changed files with 3 additions and 8 deletions

View File

@@ -46,13 +46,6 @@
<div class="page-content e-content">
{{- partial "bridgy.html" . -}}
{{ .Content }}
{{ if eq .Type "post" }}
<p class="e-bridgy-mastodon-content" hidden>{{ .Description }}
{{ range .Params.tags }}#{{ . }} {{ end }}
{{ range .Params.categories }}#{{ . }} {{ end }}
</p>
{{end}}
</div>
{{ partial "series.html" . }}

View File

@@ -3,5 +3,7 @@
{{ end }}
{{ if ne .Type "micro"}}
<div style="display: none;" class="p-summary {{ range .Site.Params.bridgy }}e-bridgy-{{.}}-content {{ end }}">{{ .Description }}</div>
<div style="display: none;" class="p-summary {{ range .Site.Params.bridgy }}e-bridgy-{{.}}-content {{ end }}">
{{ .Description }} {{ range .Params.tags }}#{{ . }} {{ end }} {{ range .Params.categories }}#{{ . }} {{ end }}
</div>
{{ end }}