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 | 6576dc46469cdf1fb25cedf2699fe4ba7002a5ef (patch) | |
| tree | 72562fb357ee9f146933623205f9d779f79f47a8 /layouts/index.html | |
| parent | ba9d8499edaddbc7c542a7c543f490fa1bc7c255 (diff) | |
refactor: use define "main" to replace start/end partials
Diffstat (limited to 'layouts/index.html')
| -rw-r--r-- | layouts/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 47f2fb03..e866d0e2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,4 @@ -{{ partial "snippets/document-start.html" . }} +{{ define "main" }} <article class="posts"> {{ partial "header.html" . }} @@ -69,4 +69,4 @@ </div> </article> {{ partial "footer.html" . }} -{{ partial "snippets/document-end.html" . }} +{{ end }} |
