summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-08-17 15:16:48 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-08-17 15:16:48 +0100
commitd77e9604b30952a97870dff77876bd868b2976e1 (patch)
treee2c1aad5d4629eddeb97159a1458451261ece945 /layouts
parent161c295d123f04d7831cce5a237fd059b1499553 (diff)
parent23738c442034b9d31286324a1054d9aba35e2373 (diff)
Merge branch 'master' of github.com:yulqen/yulqen.org
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/poetry.html11
-rw-r--r--layouts/writing/poetry/section.html6
-rw-r--r--layouts/writing/poetry/single.html13
3 files changed, 30 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 }}
diff --git a/layouts/writing/poetry/single.html b/layouts/writing/poetry/single.html
new file mode 100644
index 0000000..3ef8472
--- /dev/null
+++ b/layouts/writing/poetry/single.html
@@ -0,0 +1,13 @@
+{{ define "main" }}
+
+<style type="text/css" media="screen">
+ li {
+ margin-bottom: 1.2em;
+ }
+</style>
+
+<h2 class="title">{{ .Title }}</h2>
+
+{{ .Content }}
+
+{{ end }}