trying new date partial

This commit is contained in:
2026-04-01 07:05:28 +00:00
parent 80cdbc9e16
commit 1d2aa49658

View File

@@ -10,6 +10,16 @@
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title | emojify }}</h1>
<div class="mt-1 mb-6 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta/basic.html" (dict "context" . "scope" "single") }}
<!-- Added Dates Section -->
<div class="mt-2 flex flex-wrap gap-x-4 italic opacity-80 text-sm">
<span>Published: {{ .Date.Format "Jan 2, 2006" }}</span>
{{ if ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02") }}
<span class="before:content-['•'] before:mr-4">
Last updated: {{ .Lastmod.Format "Jan 2, 2006" }}
</span>
{{ end }}
</div>
</div>
{{ if not (.Params.showAuthorBottom | default (site.Params.article.showAuthorBottom | default false)) }}
{{ template "SingleAuthor" . }}