refactor: move default parameter values from template logic to params.toml (#1244)

This commit is contained in:
Jimmy
2026-01-26 15:50:18 +01:00
committed by GitHub
parent 3b753c9cc0
commit 3a03d69502
11 changed files with 33 additions and 27 deletions
@@ -35,7 +35,7 @@
<div>
{{ partial "helper/icon" "date" }}
<time class="article-time--published" datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
{{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
{{- .Date | time.Format .Site.Params.dateFormat.published -}}
</time>
</div>
{{ end }}