fix: refactor bridgy.html to improve structure and readability

This commit is contained in:
Fundor333
2025-09-08 00:43:47 +02:00
parent 3d96b16e78
commit 5a438d382b

View File

@@ -2,23 +2,19 @@
<a href='https://brid.gy/publish/{{.}}'></a>
{{ end }}
{{ if ne .Type "micro"}}
<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 }}
{{ if ne .Type "micro"}}
{{ .Description }}
{{ end }}
{{ if eq .Type "micro"}}
<div style="display: none;" class="p-summary {{ range .Site.Params.bridgy }}e-bridgy-{{.}}-content {{ end }}">
{{ .Content }} {{ range .Params.tags }}#{{ . }} {{ end }} {{ range .Params.categories }}#{{ . }} {{ end }}
</div>
{{ .Content }}
{{ end }}
{{ if eq .Type "photos"}}
<div style="display: none;" class="p-summary {{ range .Site.Params.bridgy }}e-bridgy-{{.}}-content {{ end }}">
{{ .Content }} {{ range .Params.tags }}#{{ . }} {{ end }} {{ range .Params.categories }}#{{ . }} {{ end }}
{{ .Content }}
{{ end }}
{{ with .Resources.ByType "image" }}
{{ range . }}
{{ $image := . }}
@@ -27,5 +23,12 @@
{{ end }}
{{ end }}
{{ end }}
</div>
{{ range .Params.tags }}
<div class="p-category">#{{ . }}</div>
{{ end }}
{{ range .Params.categories }}
<div class="p-category">#{{ . }}</div>
{{ end }}
<div style="display: none;" class="p-summary {{ range .Site.Params.bridgy }}e-bridgy-{{.}}-content {{ end }}">