From 614a754c724c8fe2baaa25d2eb03ae5bf041ba72 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 14 Jul 2025 19:54:29 +0800 Subject: refactor: rename 'single' to 'page' --- layouts/posts/page.html | 42 ++++++++++++++++++++++++++++++++++++++++++ layouts/posts/single.html | 42 ------------------------------------------ 2 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 layouts/posts/page.html delete mode 100644 layouts/posts/single.html (limited to 'layouts/posts') diff --git a/layouts/posts/page.html b/layouts/posts/page.html new file mode 100644 index 00000000..bdb0f617 --- /dev/null +++ b/layouts/posts/page.html @@ -0,0 +1,42 @@ +{{ define "main" }} + {{ partial "components/post-page-header.html" . }} +
+ +
+ {{ partial "posts/banner" . }} + +

+ {{ .Title }} + {{ with .Params.subtitle }} + {{ . }} + {{ end }} +

+ + +
+ + +
+ + {{ partial "posts/toc" . }} + +
+ {{ .Content }} +
+ + {{ partial "posts/endnotes" . }} +
+ + {{ partial "posts/action-menu.html" . }} + {{ partial "posts/now-read-this.html" . }} +
+{{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html deleted file mode 100644 index bdb0f617..00000000 --- a/layouts/posts/single.html +++ /dev/null @@ -1,42 +0,0 @@ -{{ define "main" }} - {{ partial "components/post-page-header.html" . }} -
- -
- {{ partial "posts/banner" . }} - -

- {{ .Title }} - {{ with .Params.subtitle }} - {{ . }} - {{ end }} -

- - -
- - -
- - {{ partial "posts/toc" . }} - -
- {{ .Content }} -
- - {{ partial "posts/endnotes" . }} -
- - {{ partial "posts/action-menu.html" . }} - {{ partial "posts/now-read-this.html" . }} -
-{{ end }} -- cgit v1.2.3