Only show the subtitle if it's an article, not a tag, series, or category list, by checking if the date and author are also set.

This commit is contained in:
2025-11-17 17:38:45 -07:00
parent e9a32cced5
commit 8fa2423e98

View File

@@ -21,7 +21,7 @@
<a href="{{.Permalink}}" class="post-item-inner">
<span class="post-title">
{{ if .Params.tags }}{{ index .Params.tags 0 | title }}:{{ end }}
{{.Title}}{{ if .Params.subtitle }}
{{ .Title }}{{ if and (.Params.subtitle) (and (.Params.author) (.Params.date)) }}
{{ "--" | markdownify }} {{ .Params.subtitle}}
{{ end }}
</span>