diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-08 21:30:23 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-08 21:30:23 +0800 |
| commit | bce6be90883b107285faa56acf0081b54daa3aa9 (patch) | |
| tree | 0893f99b5debe074f1596b6cfc6d3c86da34ca42 /layouts/baseof.html | |
Initialize personal website
Diffstat (limited to 'layouts/baseof.html')
| -rw-r--r-- | layouts/baseof.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..edc5cbe --- /dev/null +++ b/layouts/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> |
