From b0116ae746dcd0fc65e8573b6a7e38e70ff14edc Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 7 Apr 2025 15:52:20 +0800 Subject: chore: add footer to non-content pages Former-commit-id: 7238ca2dadbf8ca15c0ed1fc2ac04c07f8f6f3ad --- layouts/_default/section.html | 1 + layouts/_default/single.html | 3 +++ layouts/cards/section.html | 1 + layouts/library/section.html | 1 + 4 files changed, 6 insertions(+) diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 9a0b6dcd..657bee24 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -49,4 +49,5 @@ {{ end }} + {{ partial "footer.html" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e23acad0..0796701f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -69,4 +69,7 @@ + {{ if ne .Type "posts" }} + {{ partial "footer.html" . }} + {{ end }} {{ end }} diff --git a/layouts/cards/section.html b/layouts/cards/section.html index 5aaed0c3..61e01516 100644 --- a/layouts/cards/section.html +++ b/layouts/cards/section.html @@ -38,4 +38,5 @@ {{ end }} + {{ partial "footer.html" . }} {{ end }} diff --git a/layouts/library/section.html b/layouts/library/section.html index 153ed839..cf50dcd6 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -19,4 +19,5 @@

关于 2024 年的更多书目,请阅读《IN LIBRIS LIBERTAS》

+ {{ partial "footer.html" . }} {{ end }} -- cgit v1.2.3