Reword the posted date, show the publish/release date.

This commit is contained in:
2026-01-09 19:11:56 -07:00
parent a87a30f8ca
commit 5075860959

View File

@@ -66,7 +66,7 @@
{{ if .Params.video }}
{{ partial "odysee.html" . }}
{{ end }}
{{ .Content }}
</div>
</article>
@@ -107,10 +107,9 @@
<p>
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
src="/feathericons/16px-a9a9b3/calendar.svg" alt="Published Date:" title="Published Date"
src="/feathericons/16px-a9a9b3/calendar.svg" alt="Posted Date:" title="Posted Date"
>
<!-- tbd: if Release is not null and later than Date, use it for Date. -->
{{ if .Site.Params.dateformNumTime }}
{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}
{{ else }}
@@ -128,6 +127,20 @@
{{ end }}
</p>
{{ if .Params.release }}
<p>
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
src="/feathericons/16px-a9a9b3/globe.svg" alt="Release Date:" title="Release Date"
>
{{ if .Site.Params.dateformNumTime }}
{{ dateFormat .Site.Params.dateformNumTime .Params.release }}
{{ else }}
{{ dateFormat "2006-01-02 15:04" .Params.release }}
{{ end }}
</p>
{{ end }}
{{- if .GitInfo }}
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-commit">