Rebuild site with Hugo: unified dark theme, SVG logo, data-driven content

This commit is contained in:
2026-07-08 16:14:01 +08:00
parent 0eaec96b68
commit 1214e48733
47 changed files with 1169 additions and 2766 deletions
+21
View File
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Locale }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} — {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<link rel="icon" href="/logo.svg" type="image/svg+xml">
{{ with .Params.accent }}<meta name="theme-color" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="/css/style.css">
{{ block "extra_head" . }}{{ end }}
</head>
<body class="{{ if .IsHome }}home{{ else }}page{{ end }}">
{{ partial "nav.html" . }}
<main id="main-content">
{{ block "body" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
{{ block "extra_scripts" . }}{{ end }}
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
{{ define "body" }}
<section class="page-hero" {{ with .Params.accent }}style="--accent: {{ . }}"{{ end }}>
<h1>{{ .Title }}</h1>
{{ with .Description }}<p class="subtitle">{{ . }}</p>{{ end }}
</section>
<section class="page-content container">
{{ .Content }}
</section>
{{ end }}
+9
View File
@@ -0,0 +1,9 @@
{{ define "body" }}
<section class="page-hero" {{ with .Params.accent }}style="--accent: {{ . }}"{{ end }}>
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}<p class="subtitle">{{ . }}</p>{{ end }}
</section>
<section class="page-content container">
{{ .Content }}
</section>
{{ end }}