Refactor some templating to avoid spurious whitespace
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-13 01:53:36 +02:00
parent d8c36e5077
commit 1e5e965572
5 changed files with 47 additions and 51 deletions

View File

@ -1,17 +1,16 @@
{{ with .Params.Categories }}
{{- with .Params.Categories }}
<span class="blog-taxonomy-info"> &nbsp; | &nbsp; Categories:
{{ $sort := sort . }}
{{ $links := apply $sort "partial" "post-category-link" "." }}
{{ $clean := apply $links "chomp" "." }}
{{ delimit $clean ", " | safeHTML }}
{{- $sort := sort . }}
{{- $links := apply $sort "partial" "post-category-link" "." }}
{{- $clean := apply $links "chomp" "." }}
{{- delimit $clean ", " | safeHTML }}
</span>
{{ end }}
{{ with .Params.Tags }}
{{- end }}
{{- with .Params.Tags }}
<span class="blog-taxonomy-info"> &nbsp; | &nbsp; Tags:
{{ $sort := sort . }}
{{ $links := apply $sort "partial" "post-tag-link" "." }}
{{ $clean := apply $links "chomp" "." }}
{{ delimit $clean ", " | safeHTML }}
{{- $sort := sort . }}
{{- $links := apply $sort "partial" "post-tag-link" "." }}
{{- $clean := apply $links "chomp" "." }}
{{- delimit $clean ", " | safeHTML }}
</span>
{{ end }}
{{- end -}}