From bce6be90883b107285faa56acf0081b54daa3aa9 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 8 Aug 2026 21:30:23 +0800 Subject: Initialize personal website --- layouts/notes/list.html | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 layouts/notes/list.html (limited to 'layouts/notes/list.html') diff --git a/layouts/notes/list.html b/layouts/notes/list.html new file mode 100644 index 0000000..86deddb --- /dev/null +++ b/layouts/notes/list.html @@ -0,0 +1,41 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ {{ partial "document-view.html" . }} +
+ {{ .Content }} + {{- if eq .File.Path "notes/_index.md" }} + {{- with .RegularPages.ByTitle }} +
+

STANDALONE NOTES

+
    + {{- range . }} +
  • {{ .LinkTitle }}
  • + {{- end }} +
+
+ {{- end }} + {{- with .Sections.ByTitle }} +
+

SERIES

+
    + {{- range . }} +
  • {{ .LinkTitle }}{{ with .Params.description }} — {{ . }}{{ end }}
  • + {{- end }} +
+
+ {{- end }} + {{- else }} +
    + {{- range $index, $page := .RegularPages.ByWeight }} +
  1. + {{ printf "%02d" (add $index 1) }} + {{ $page.LinkTitle }} + updated {{ time.Format "2006-01-02" $page.Params.updated }} +
  2. + {{- end }} +
+ {{- end }} +
+{{ end }} -- cgit v1.2.3