Move a bunch of stuff from the theme

This commit is contained in:
Eryn Wells 2021-10-11 12:26:47 -07:00
parent ae15fe67b8
commit ce1c860269
10 changed files with 18 additions and 0 deletions

3
layouts/404.html Normal file
View file

@ -0,0 +1,3 @@
{{ define "main" }}
<h1 class="title-404">404</h1>
{{ end }}

View file

@ -0,0 +1,9 @@
<!---->{{ if not (.Get "summary") }}
<!---->{{ errorf "missing param 'summary': %s" .Position }}
<!---->{{ else if not (.Get "content") }}{{ warnf "missing param 'content': %s" .Position }}
<!---->{{ end }}
<details {{ if (eq (.Get `openByDefault`) true) }}open="true" {{ end }}>
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
{{ .Get "content" | markdownify }}
</details>