From 3285a6ea46c175efad2524f195338596d273d453 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sun, 24 May 2026 23:50:55 +0800 Subject: [PATCH] Move about page to root and add custom single layout Publish about page and introduce a dedicated single template for standalone --- content/{about/_index.md => about.md} | 2 +- layouts/_default/single.html | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) rename content/{about/_index.md => about.md} (99%) create mode 100644 layouts/_default/single.html diff --git a/content/about/_index.md b/content/about.md similarity index 99% rename from content/about/_index.md rename to content/about.md index 61d2b8c..3cfe20b 100644 --- a/content/about/_index.md +++ b/content/about.md @@ -1,5 +1,5 @@ --- - +draft: false --- {{< hextra-hero-subtitle >}} Fukun.Net/about diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..2ebd0ae --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,21 @@ +{{ define "main" }} +
+ {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} + {{ partial "toc.html" . }} +
+
+ {{ partial "breadcrumb.html" (dict "page" . "enable" false) }} +
+ {{ if .Title }} +

{{ .Title }}

+
+ {{ end }} +
+ {{ .Content }} +
+
+ {{ partial "components/comments.html" . }} +
+
+
+{{ end }}