diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-05 20:28:20 +0000 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-05 20:28:20 +0000 |
commit | db6cb54326c80f805c50e0710acba3818270ae2d (patch) | |
tree | 63ddf640cb9bba62adfb7abbb7931408350ed92c /themes/problematic/layouts | |
parent | 2edc5b80bc597b6833e4ef3cd055a936ebf3c095 (diff) |
got absolute minima running
Diffstat (limited to 'themes/problematic/layouts')
-rw-r--r-- | themes/problematic/layouts/404.html | 0 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/list.html | 6 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/single.html | 4 | ||||
-rw-r--r-- | themes/problematic/layouts/index.html | 22 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/footer.html | 0 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/head.html | 0 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/header.html | 0 |
8 files changed, 43 insertions, 0 deletions
diff --git a/themes/problematic/layouts/404.html b/themes/problematic/layouts/404.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/problematic/layouts/404.html diff --git a/themes/problematic/layouts/_default/baseof.html b/themes/problematic/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/problematic/layouts/_default/baseof.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + {{- partial "head.html" . -}} + <body> + {{- partial "header.html" . -}} + <div id="content"> + {{- block "main" . }}{{- end }} + </div> + {{- partial "footer.html" . -}} + </body> +</html> diff --git a/themes/problematic/layouts/_default/list.html b/themes/problematic/layouts/_default/list.html new file mode 100644 index 0000000..3ebdde1 --- /dev/null +++ b/themes/problematic/layouts/_default/list.html @@ -0,0 +1,6 @@ +{{ define "main" }} +<h1>{{ .Title }}</h1> +{{ range .Pages.ByPublishDate.Reverse }} +<p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p> +{{ end }} +{{ end }} diff --git a/themes/problematic/layouts/_default/single.html b/themes/problematic/layouts/_default/single.html new file mode 100644 index 0000000..17b274b --- /dev/null +++ b/themes/problematic/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} +<h1>{{ .Title }}</h1> +{{ .Content }} +{{ end }} diff --git a/themes/problematic/layouts/index.html b/themes/problematic/layouts/index.html new file mode 100644 index 0000000..de7fa73 --- /dev/null +++ b/themes/problematic/layouts/index.html @@ -0,0 +1,22 @@ + +{{ define "main" }} + <main aria-role="main"> + <header class="homepage-header"> + <h1>{{.Title}}</h1> + {{ with .Params.subtitle }} + <span class="subtitle">{{.}}</span> + {{ end }} + </header> + <div class="homepage-content"> + <!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md --> + {{.Content}} + </div> + <div> + {{ range first 10 .Site.RegularPages }} + {{ .Render "summary"}} + {{ end }} + </div> + </main> +{{ end }} + + diff --git a/themes/problematic/layouts/partials/footer.html b/themes/problematic/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/problematic/layouts/partials/footer.html diff --git a/themes/problematic/layouts/partials/head.html b/themes/problematic/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/problematic/layouts/partials/head.html diff --git a/themes/problematic/layouts/partials/header.html b/themes/problematic/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/problematic/layouts/partials/header.html |