From 02b1a87d8fac3a4881968a67274fb825987bc7a0 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 14 Jun 2025 22:49:26 +0800 Subject: www: move layout files for new version of hugo and fix nested shortcodes. --- www/layouts/single.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 www/layouts/single.html (limited to 'www/layouts/single.html') diff --git a/www/layouts/single.html b/www/layouts/single.html new file mode 100644 index 0000000..cd0e9c5 --- /dev/null +++ b/www/layouts/single.html @@ -0,0 +1,23 @@ +{{ define "head"}} + {{ partial "css.html" "res/css/single.css" }} +{{ end }} + +{{ define "title" }} + {{ .Title }} +{{ end }} + +{{ define "content" }} + {{ partial "nav.html" . }} +

{{ .Title }}

+
+

+ {{ partial "date.html" .Date }} | + {{ .WordCount }} words + {{ if ne .Lastmod .Date }} + Last updated: {{ partial "date.html" .Lastmod }} + {{ end}} +

+ {{ .Content }} +
+ {{ partial "nav.html" . }} +{{ end }} -- cgit v1.2.3