Rebuild site with Hugo: unified dark theme, SVG logo, data-driven content
This commit is contained in:
@@ -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>
|
||||
@@ -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 }}
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user