diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-08 21:30:23 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-08 21:30:23 +0800 |
| commit | bce6be90883b107285faa56acf0081b54daa3aa9 (patch) | |
| tree | 0893f99b5debe074f1596b6cfc6d3c86da34ca42 /layouts/notes/single.html | |
Initialize personal website
Diffstat (limited to 'layouts/notes/single.html')
| -rw-r--r-- | layouts/notes/single.html | 20 |
1 files changed, 20 insertions, 0 deletions
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" }} + <article lang="{{ .Params.lang }}"> + <header class="document-header"> + <p class="document-path">{{ .RelPermalink }}</p> + <h1>{{ .Title }}</h1> + {{- with .Params.series }}{{ partial "series-nav.html" (dict "page" $ "mode" "position") }}{{ end }} + <dl class="document-meta"> + {{- with .Params.created }} + <div><dt>created</dt><dd><time datetime="{{ time.Format "2006-01-02" . }}">{{ time.Format "2006-01-02" . }}</time></dd></div> + {{- end }} + <div><dt>updated</dt><dd><time datetime="{{ time.Format "2006-01-02" .Params.updated }}">{{ time.Format "2006-01-02" .Params.updated }}</time></dd></div> + <div><dt>license</dt><dd>{{ .Params.license }}</dd></div> + </dl> + {{ partial "document-view.html" . }} + </header> + {{ partial "toc.html" . }} + {{ .Content }} + {{- with .Params.series }}{{ partial "series-nav.html" (dict "page" $ "mode" "navigation") }}{{ end }} + </article> +{{ end }} |
