summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-07 15:52:20 +0800
committerEltrac <hi@guhub.cn>2025-04-07 15:52:20 +0800
commit7238ca2dadbf8ca15c0ed1fc2ac04c07f8f6f3ad (patch)
treeb821dc314b7101b6aba9d3251ebcd1b3bb6d0769 /layouts
parent055261cd834ca7b55fb5027484ee7047ac11df37 (diff)
chore: add footer to non-content pages
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/section.html1
-rw-r--r--layouts/_default/single.html3
-rw-r--r--layouts/cards/section.html1
-rw-r--r--layouts/library/section.html1
4 files changed, 6 insertions, 0 deletions
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 }}
</div>
</article>
+ {{ 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 @@
</script>
</article>
+ {{ 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 }}
</div>
</article>
+ {{ 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 @@
<p>关于 2024 年的更多书目,请阅读《<a href="/posts/in-libris-libertas/#%E4%BB%8A%E5%B9%B4%E7%9A%84%E4%B9%A6%E5%8D%95">IN LIBRIS LIBERTAS</a>》</p>
</div>
</article>
+ {{ partial "footer.html" . }}
{{ end }}