Skip to content

Commit

Permalink
fix(archives): correct the dateFormat parameter (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Oct 31, 2023
1 parent 6067920 commit 065ba24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/archives/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2 class="card-title fs-4 text-surface">
{{- range first 5 .Pages -}}
<li class="mb-2">
<a class="post-title" href="{{ .RelPermalink }}">{{ partial "helpers/title" . }}</a>
<span class="float-end post-date">{{ .Date.Format (default "Jan 2" $.Site.Params.archive.dateFormat) }}</span>
<span class="float-end post-date">{{ .Date | time.Format (default "Jan 2" site.Params.archive.dateFormat) }}</span>
</li>
{{- end -}}
{{- if and (gt (len .Pages) 5) $yearPage -}}
Expand Down

0 comments on commit 065ba24

Please sign in to comment.