summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2023-12-18 19:41:51 -0500
committerOwen Jacobson <owen@grimoire.ca>2024-01-03 03:05:23 -0500
commit5562e320736812d1ad309cfaf73383512a87858d (patch)
treed93569bd8831f4ea5b90719a61a9d1b217e76b0f /layouts/_default/baseof.html
parent27d5717529bf0e7d5806982f1970603bad998eaf (diff)
Migrate to Hugo.
This is a big and somewhat complicated decision, but the crux of it is this: The _mkdocs_ tool embeds a ton of "I am writing a manual" assumptions about document structure. These assumptions include that there is a single, sitewide TOC, that a top nav bar is broadly an appropriate way to skip around in the document, and numerous others. They serve that use case well, but that's not really what this site _is_, or how I intend it to be approached. I'm trying for something more blog-esque (and deliberately a bit haphazard). Hugo is an experiment. This commit migrates most pages to it, but it does drop a few; this is a convenient excuse to forget items I'd prefer not to continue publishing.
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..c665429
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{{- block "title" . }}{{ .Site.Title }}
+ {{- if .Title }} - {{ .Title }}{{ end }}
+ {{- end }}</title>
+ {{- with .OutputFormats.Get "rss" }}
+ <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}">
+ {{- end }}
+ </head>
+ <body>
+ {{- block "header" . }}
+ {{- if .Title }}
+ <header>
+ <h1>{{ .Title }}</h1>
+ {{- if .PublishDate }}
+ <p><small>{{ .PublishDate | time.Format ":date_medium" }}</small></p>
+ {{- end }}
+ </header>
+ {{- end }}
+ {{- end }}
+
+ {{- block "main" . }}
+ {{- .Content }}
+ {{- end }}
+
+ {{- with .Parent }}
+ <nav>
+ <p>Go back to <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>.</p>
+ </nav>
+ {{- end }}
+ </body>
+</html>