summaryrefslogtreecommitdiff
path: root/layouts/_default/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-27 11:43:44 +0800
committerEltrac <hi@guhub.cn>2025-03-27 11:43:44 +0800
commit6576dc46469cdf1fb25cedf2699fe4ba7002a5ef (patch)
tree72562fb357ee9f146933623205f9d779f79f47a8 /layouts/_default/section.html
parentba9d8499edaddbc7c542a7c543f490fa1bc7c255 (diff)
refactor: use define "main" to replace start/end partials
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r--layouts/_default/section.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index de06b2aa..8a458078 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -1,4 +1,4 @@
-{{ partial "snippets/document-start.html" . }}
+{{ define "main" }}
<article class="posts">
{{ partial "components/breadcrumbs.html" . }}
<div id="posts-archive" class="posts-list">
@@ -58,4 +58,4 @@
{{ end }}
</div>
</article>
-{{ partial "snippets/document-end.html" . }}
+{{ end }}