From f38aaecc9a6abed226648417338baff032be8187 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 31 Jan 2024 22:12:02 +0000 Subject: add random-poem panel --- templates/home.html | 1 + templates/random-poem.html | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 templates/random-poem.html (limited to 'templates') diff --git a/templates/home.html b/templates/home.html index 540abce..7bbed9e 100644 --- a/templates/home.html +++ b/templates/home.html @@ -46,6 +46,7 @@
latest update: added poetry!
{% include "latestposts.html" %} + {% include "random-poem.html" %} diff --git a/templates/random-poem.html b/templates/random-poem.html new file mode 100644 index 0000000..bdfbaff --- /dev/null +++ b/templates/random-poem.html @@ -0,0 +1,11 @@ +{% if let Some(poem) = poem %} +
+

random poem

+ +

{% if let Some(title) = poem.title %}{{ title }}{% else %}permalink{% endif %}

+
+
+ {{ poem.content|safe }} +
+
+{% endif %} \ No newline at end of file -- cgit