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
commit37b996572636df60dbd99265d7956625fc03b5cc (patch)
tree6b126ae94dc4a9b00f943af85b9de798525fb79d /layouts/_default/baseof.html
parent517db4adc11c06f3199a29cb72ab1699d8e0c507 (diff)
refactor: use define "main" to replace start/end partials
Former-commit-id: 6576dc46469cdf1fb25cedf2699fe4ba7002a5ef
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>