diff options
Diffstat (limited to 'layouts/lists')
-rw-r--r-- | layouts/lists/baseof.html | 11 | ||||
-rw-r--r-- | layouts/lists/list.html | 14 | ||||
-rw-r--r-- | layouts/lists/single.html | 5 |
3 files changed, 30 insertions, 0 deletions
diff --git a/layouts/lists/baseof.html b/layouts/lists/baseof.html new file mode 100644 index 0000000..943d948 --- /dev/null +++ b/layouts/lists/baseof.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang="{{ .Site.LanguageCode }}"> + {{- partial "head.html" . -}} + <body> + {{- partial "nav.html" "lists" -}} + <main> + {{- block "main" . }}{{- end }} + </main> + {{- partial "footer.html" . -}} + </body> +</html> diff --git a/layouts/lists/list.html b/layouts/lists/list.html new file mode 100644 index 0000000..e2bc2e0 --- /dev/null +++ b/layouts/lists/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} + <div class="list"> + <h1>{{ if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }}{{ end }}</h1> + <p>These are random lists of stuff by me. These include some recommendations or things I use, maybe some plans as a "public to-do list", etc</p> + <ul> + {{ range .Pages.ByTitle }} + <li> + <p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p> + </li> + {{ end }} + </ul> + </div> +{{ end }} + diff --git a/layouts/lists/single.html b/layouts/lists/single.html new file mode 100644 index 0000000..f5870e5 --- /dev/null +++ b/layouts/lists/single.html @@ -0,0 +1,5 @@ +{{ define "main" }} +<div class="{{ .Params.listType }}"> + {{ .Content }} +</div> +{{ end }} |