diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-27 11:43:44 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-27 11:43:44 +0800 |
| commit | 37b996572636df60dbd99265d7956625fc03b5cc (patch) | |
| tree | 6b126ae94dc4a9b00f943af85b9de798525fb79d /layouts/_default/section.html | |
| parent | 517db4adc11c06f3199a29cb72ab1699d8e0c507 (diff) | |
refactor: use define "main" to replace start/end partials
Former-commit-id: 6576dc46469cdf1fb25cedf2699fe4ba7002a5ef
Diffstat (limited to 'layouts/_default/section.html')
| -rw-r--r-- | layouts/_default/section.html | 4 |
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 }} |
