From ce78845226b1c6762bce30738ac0a444228efdcf Mon Sep 17 00:00:00 2001 From: Xin Date: Mon, 21 Aug 2023 23:37:49 +0100 Subject: [PATCH] chore: update layouts --- layouts/_default/single.html | 11 ++++++----- layouts/blog/single.html | 2 +- layouts/index.html | 4 ++-- layouts/partials/head-css.html | 7 ++++--- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 59c7240c..d70110d0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,13 @@ {{ define "main" }} -
-
+
+ {{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }} + {{ partial "toc.html" . }} +
-
-

{{ .Title }}

+

{{ .Title }}

+
{{ .Content }}
-
diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 51acd5e0..ff2dbcc8 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -2,7 +2,7 @@
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }} {{ partial "toc.html" . }} -
+
{{ partial "breadcrumb.html" . }}

{{ .Title }}

diff --git a/layouts/index.html b/layouts/index.html index f84a676a..d70110d0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,11 +1,11 @@ {{ define "main" }} -
+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }} {{ partial "toc.html" . }}
+

{{ .Title }}

-

{{ .Title }}

{{ .Content }}
diff --git a/layouts/partials/head-css.html b/layouts/partials/head-css.html index 2330066d..e9c19a53 100644 --- a/layouts/partials/head-css.html +++ b/layouts/partials/head-css.html @@ -7,7 +7,8 @@ {{ $styles = $styles | minify | fingerprint | resources.PostProcess }} - - {{ $custom := resources.Get "css/custom.css" }} - {{ $custom = $custom | minify | fingerprint }} {{ end }} + +{{ $custom := resources.Get "css/custom.css" }} +{{ $custom = $custom | minify | fingerprint }} +