summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.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/baseof.html
parentba9d8499edaddbc7c542a7c543f490fa1bc7c255 (diff)
refactor: use define "main" to replace start/end partials
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 00000000..ebbb6ec7
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}" prefix="og: http://ogp.me/ns#">
+{{ partial "head.html" . }}
+<body>
+ <main>
+ {{ block "main" . }}{{ end }}
+ </main>
+ {{ partial "scripts.html" . }}
+ {{ if .Site.Params.extraBody }}
+ {{ .Site.Params.extraBody | safeHTML }}
+ {{ end }}
+</body>
+</html>