From 85db458aa1042a458df5c5a25d70dd06655c924a Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 10 Sep 2026 00:41:20 +0800 Subject: Add updated document archive --- layouts/partials/recent.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'layouts/partials/recent.html') diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html index 47c8332..cbe91af 100644 --- a/layouts/partials/recent.html +++ b/layouts/partials/recent.html @@ -1,18 +1,8 @@ -{{- $items := slice -}} -{{- range where site.RegularPages "Section" "journal" -}} - {{- $items = $items | append (dict "page" . "kind" "journal" "sortDate" (.Date.Format "2006-01-02")) -}} -{{- end -}} -{{- range where site.RegularPages "Section" "notes" -}} - {{- $page := . -}} - {{- with $page.Params.recent -}} - {{- $items = $items | append (dict "page" $page "kind" "note" "sortDate" (time.Format "2006-01-02" .)) -}} - {{- end -}} -{{- end -}} -{{- $items = sort $items "sortDate" "desc" -}} +{{- $items := partial "updated-items.html" . -}}

RECENT

    - {{- range $items }} + {{- range first site.Params.recentLimit $items }}
  1. [{{ .kind }}] @@ -20,4 +10,5 @@
  2. {{- end }}
+

Read more

-- cgit v1.2.3