Feat: add recently updated section (#50)

This commit is contained in:
Cell
2022-02-25 14:17:28 +08:00
parent 35a45e4b6d
commit f059fe9c9b
13 changed files with 79 additions and 6 deletions
+2 -1
View File
@@ -17,6 +17,7 @@
{{- else -}}
{{- $pages = .Paginate $pages -}}
{{- end -}}
{{- partial "recently-updated.html" . -}}
{{- range $pages.PageGroups -}}
<h3 class="group-title">{{ .Key }}</h3>
{{- range .Pages -}}
@@ -24,7 +25,7 @@
<a href="{{ .RelPermalink }}" class="archive-item-link">
{{- .Title -}}
</a>
<span class="archive-item-date" title={{ "2006-01-02 15:04:05" | .Date.Format }}>
<span class="archive-item-date" title='{{ "2006-01-02 15:04:05" | .Date.Format }}'>
{{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}}
</span>
</article>