Properly case the eBook tag.

This commit is contained in:
2025-12-28 18:41:42 -07:00
parent 35b50e4331
commit ef726705ab

View File

@@ -35,7 +35,12 @@
{{ else if .Params.audio }}
Audio:
{{ else if .Params.tags }}
{{ index .Params.tags 0 | title }}:
{{ $prefix := (index .Params.tags 0 | title) }}
{{ if eq $prefix "Ebook" }}
eBook:
{{ else }}
{{ $prefix }}:
{{ end }}
{{ end }}
{{ .Title }}{{ if and (.Params.subtitle) (and (.Params.author) (.Params.date)) }}