summaryrefslogtreecommitdiff
path: root/layouts/index.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/index.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/index.html')
-rw-r--r--layouts/index.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..f9f48e1
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,17 @@
+{{- define "main" }}
+<main>
+ {{- if .Pages }}
+ <ul>
+ {{ range .Pages }}
+ <li>
+ {{- if .LinkTitle }}
+ <p><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>.</p>
+ {{- end }}
+ {{ .Summary }}
+ </li>
+ {{ end }}
+ </ul>
+ {{- end }}
+ {{- .Content }}
+</main>
+{{- end }}