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/fictions/page.html | 26 ++++++++++++++++++++++++++ layouts/fictions/single.html | 26 -------------------------- layouts/library/page.html | 40 ++++++++++++++++++++++++++++++++++++++++ layouts/library/single.html | 40 ---------------------------------------- layouts/page.html | 10 ++++++++++ layouts/posts/page.html | 42 ++++++++++++++++++++++++++++++++++++++++++ layouts/posts/single.html | 42 ------------------------------------------ layouts/single.html | 10 ---------- 8 files changed, 118 insertions(+), 118 deletions(-) create mode 100644 layouts/fictions/page.html delete mode 100644 layouts/fictions/single.html create mode 100644 layouts/library/page.html delete mode 100644 layouts/library/single.html create mode 100644 layouts/page.html create mode 100644 layouts/posts/page.html delete mode 100644 layouts/posts/single.html delete mode 100644 layouts/single.html diff --git a/layouts/fictions/page.html b/layouts/fictions/page.html new file mode 100644 index 00000000..d0817e9c --- /dev/null +++ b/layouts/fictions/page.html @@ -0,0 +1,26 @@ +{{ define "main" }} + {{ partial "components/post-page-header.html" . }} +
+ +
+ {{ partial "posts/banner" . }} +

{{ .Title }}

+ +
+ + +
+ {{ .Content }} +
+ + + {{ partial "posts/comment.html" . }} +
+{{ end }} diff --git a/layouts/fictions/single.html b/layouts/fictions/single.html deleted file mode 100644 index d0817e9c..00000000 --- a/layouts/fictions/single.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ define "main" }} - {{ partial "components/post-page-header.html" . }} -
- -
- {{ partial "posts/banner" . }} -

{{ .Title }}

- -
- - -
- {{ .Content }} -
- - - {{ partial "posts/comment.html" . }} -
-{{ end }} diff --git a/layouts/library/page.html b/layouts/library/page.html new file mode 100644 index 00000000..d5d2ea59 --- /dev/null +++ b/layouts/library/page.html @@ -0,0 +1,40 @@ +{{ define "main" }} +
+
+
+ +
+

{{ .Title }}

+ {{- $rating := .Params.rating -}} + {{- $fullStars := math.Floor $rating -}} +

+ {{ .Params.author }} +

+

+ {{- range seq $fullStars }} + ⭐ + {{- end -}} +

+ +
+ {{ partial "components/logo" (dict "link" "library") }} +
+
+
+
+ {{ .Content }} +
+ + {{ partial "posts/endnotes" . }} + +
+ {{ partial "posts/comment.html" . }} +
+{{ end }} diff --git a/layouts/library/single.html b/layouts/library/single.html deleted file mode 100644 index d5d2ea59..00000000 --- a/layouts/library/single.html +++ /dev/null @@ -1,40 +0,0 @@ -{{ define "main" }} -
-
-
- -
-

{{ .Title }}

- {{- $rating := .Params.rating -}} - {{- $fullStars := math.Floor $rating -}} -

- {{ .Params.author }} -

-

- {{- range seq $fullStars }} - ⭐ - {{- end -}} -

- -
- {{ partial "components/logo" (dict "link" "library") }} -
-
-
-
- {{ .Content }} -
- - {{ partial "posts/endnotes" . }} - -
- {{ partial "posts/comment.html" . }} -
-{{ end }} diff --git a/layouts/page.html b/layouts/page.html new file mode 100644 index 00000000..7f33f13b --- /dev/null +++ b/layouts/page.html @@ -0,0 +1,10 @@ +{{ define "main" }} + {{ partial "header.html" . }} +
+
+ {{ .Content }} +
+
+ {{ partial "footer.html" . }} +{{ end }} 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 }} diff --git a/layouts/single.html b/layouts/single.html deleted file mode 100644 index 7f33f13b..00000000 --- a/layouts/single.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ define "main" }} - {{ partial "header.html" . }} -
-
- {{ .Content }} -
-
- {{ partial "footer.html" . }} -{{ end }} -- cgit v1.2.3