Skip to content

Commit

Permalink
💡 Feat: use the original title after archiving the articles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 10, 2024
1 parent 45c71ef commit 6d9c6f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/index.archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ <h2 class="group-title">
{{- if eq $repost.enable true -}}
{{- dict "Class" "fa-solid fa-share fa-fw text-success me-1" | partial "plugin/icon.html" -}}
{{- end -}}
{{- title .LinkTitle -}}
{{- /* Use the original title after archiving the articles */ -}}
{{- title .Title -}}
</a>
<span class="archive-item-date" title='{{ "2006-01-02 15:04:05" | .Date.Format }}'>
{{- .Date | dateFormat ($.Site.Params.archives.dateFormat | default "01-02") -}}
Expand Down

0 comments on commit 6d9c6f5

Please sign in to comment.