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 +++++++++++++++++++++++++++++++++++++++++ layouts/notes/single.html | 20 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 layouts/notes/list.html create mode 100644 layouts/notes/single.html (limited to 'layouts/notes') 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 }} diff --git a/layouts/notes/single.html b/layouts/notes/single.html new file mode 100644 index 0000000..ec3545a --- /dev/null +++ b/layouts/notes/single.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+
+

{{ .RelPermalink }}

+

{{ .Title }}

+ {{- with .Params.series }}{{ partial "series-nav.html" (dict "page" $ "mode" "position") }}{{ end }} +
+ {{- with .Params.created }} +
created
+ {{- end }} +
updated
+
license
{{ .Params.license }}
+
+ {{ partial "document-view.html" . }} +
+ {{ partial "toc.html" . }} + {{ .Content }} + {{- with .Params.series }}{{ partial "series-nav.html" (dict "page" $ "mode" "navigation") }}{{ end }} +
+{{ end }} -- cgit v1.2.3