From 1da07b0b4a337342cc48627d9af78e7fd20a45cf 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/_default/baseof.html | 49 ---------------------------------------- www/layouts/_default/list.html | 17 -------------- www/layouts/_default/single.html | 23 ------------------- 3 files changed, 89 deletions(-) delete mode 100644 www/layouts/_default/baseof.html delete mode 100644 www/layouts/_default/list.html delete mode 100644 www/layouts/_default/single.html (limited to 'www/layouts/_default') diff --git a/www/layouts/_default/baseof.html b/www/layouts/_default/baseof.html deleted file mode 100644 index 6d00be5..0000000 --- a/www/layouts/_default/baseof.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - {{ block "title" . }} - {{ .Site.Title }} - {{ end }} - {{ partial "js.html" "res/js/color-scheme.ts" }} - {{ partial "css-res.html" (partial "highlight.html" dict) }} - {{ partial "css.html" "res/css/base.css" }} - {{ block "head" . }} - {{ end }} - {{ range .Params.css }} - {{ partial "css.html" (printf "res/css/%s.css" .) }} - {{ end }} - - - {{ block "pre-article" .}} - {{ end }} -
- {{ block "content" . }} - {{ end }} -
- -
- - {{ block "scripts" . }} - {{ end }} - - diff --git a/www/layouts/_default/list.html b/www/layouts/_default/list.html deleted file mode 100644 index 5bb0b5e..0000000 --- a/www/layouts/_default/list.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "head"}} - {{ partial "css.html" "res/css/article.css" }} -{{ end }} - -{{ define "content" }} - {{ partial "nav.html" . }} -

{{ .Title }}

- {{ $pages := .RegularPages }} - {{ if .Param "recursive" }} - {{ $pages = .RegularPagesRecursive }} - {{ end }} - {{ partial "preview/posts.html" (dict - "h" "h3" - "pages" $pages - ) - }} -{{ end }} diff --git a/www/layouts/_default/single.html b/www/layouts/_default/single.html deleted file mode 100644 index cd0e9c5..0000000 --- a/www/layouts/_default/single.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ 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