trying new date partial
This commit is contained in:
@@ -10,6 +10,16 @@
|
|||||||
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title | emojify }}</h1>
|
<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">
|
<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") }}
|
{{ 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>
|
</div>
|
||||||
{{ if not (.Params.showAuthorBottom | default (site.Params.article.showAuthorBottom | default false)) }}
|
{{ if not (.Params.showAuthorBottom | default (site.Params.article.showAuthorBottom | default false)) }}
|
||||||
{{ template "SingleAuthor" . }}
|
{{ template "SingleAuthor" . }}
|
||||||
|
|||||||
Reference in New Issue
Block a user