summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-08 21:30:23 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-08 21:30:23 +0800
commitbce6be90883b107285faa56acf0081b54daa3aa9 (patch)
tree0893f99b5debe074f1596b6cfc6d3c86da34ca42 /layouts/_default/baseof.html
Initialize personal website
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..edc5cbe
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,23 @@
+<!doctype html>
+{{- $pageLang := default "en" .Params.lang -}}
+{{- $description := site.Params.description -}}
+{{- with .Params.description }}{{ $description = . }}{{ end -}}
+<html lang="{{ $pageLang }}">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} | {{ site.Title }}{{ end }}</title>
+ <meta name="description" content="{{ $description }}">
+ <link rel="canonical" href="{{ .Permalink }}">
+ <link rel="alternate" type="application/rss+xml" title="{{ site.Title }} Journal" href="{{ "rss.xml" | absURL }}">
+ <link rel="stylesheet" href="{{ "style.css" | relURL }}">
+ <link rel="icon" href="{{ "favicon.ico" | relURL }}" sizes="any">
+</head>
+<body>
+ {{ partial "header.html" . }}
+ <main id="main-content">
+ {{ block "main" . }}{{ end }}
+ </main>
+ {{ partial "footer.html" . }}
+</body>
+</html>