diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-08-13 21:28:25 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-08-13 21:28:25 +0100 |
commit | dada3fadd10c9704b63a6ea01527d6f26bb72344 (patch) | |
tree | 9a33fbe0bf623d49c8dc21ed6484c5b951d92870 /layouts | |
parent | d2b015e2317f5a3acfa2f070a0278ac7934e5d89 (diff) |
first attempt at poetry section
Diffstat (limited to '')
-rw-r--r-- | layouts/partials/poetry.html | 11 | ||||
-rw-r--r-- | layouts/writing/poetry/section.html | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/poetry.html b/layouts/partials/poetry.html new file mode 100644 index 0000000..c62ddc1 --- /dev/null +++ b/layouts/partials/poetry.html @@ -0,0 +1,11 @@ +<h2>Poetry</h2> + +<p>This is experimental.</p> + +<ul id="poetry"> + {{ range where site.RegularPages "Section" "writing" }} + <li> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </li> + {{ end }} +</ul> diff --git a/layouts/writing/poetry/section.html b/layouts/writing/poetry/section.html new file mode 100644 index 0000000..c1d096e --- /dev/null +++ b/layouts/writing/poetry/section.html @@ -0,0 +1,6 @@ +{{ define "main" }} + +{{ .Content }} + +{{ partial "poetry.html" }} +{{ end }} |