diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-10 00:41:20 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-10 00:41:20 +0800 |
| commit | 85db458aa1042a458df5c5a25d70dd06655c924a (patch) | |
| tree | 84cfa7e1e8cb911adb7e6b5065d45a76e28c033e /layouts/updates/list.html | |
| parent | 9b94708706dd397bb808a6347591e7636263bb67 (diff) | |
Add updated document archive
Diffstat (limited to 'layouts/updates/list.html')
| -rw-r--r-- | layouts/updates/list.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/updates/list.html b/layouts/updates/list.html new file mode 100644 index 0000000..125ba79 --- /dev/null +++ b/layouts/updates/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} + <article lang="{{ default "en" .Params.lang }}"> + <header class="document-header"> + <h1>{{ .Title }}</h1> + </header> + {{ .Content }} + {{- $items := partial "updated-items.html" . -}} + <section class="updates-list" aria-label="All updates"> + <ol class="document-list"> + {{- range $items }} + <li> + <time datetime="{{ .sortDate }}">{{ .sortDate }}</time> + <span class="document-kind">[{{ .kind }}]</span> + <a href="{{ .page.RelPermalink }}" lang="{{ .page.Params.lang }}">{{ .page.LinkTitle }}</a> + </li> + {{- end }} + </ol> + </section> + </article> +{{ end }} |
