Skip to content

Commit

Permalink
fix: correct the archive posts date format
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 5, 2023
1 parent 17afe0c commit cde8594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/archives/year.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 class="card-title fs-4 text-surface">{{ $month }}</h2>
{{- range .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 -}}
</ul>
Expand Down

0 comments on commit cde8594

Please sign in to comment.