aboutsummaryrefslogtreecommitdiffstats
path: root/templates/random-poem.html
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-01-31 22:12:02 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-01-31 22:12:02 +0000
commitf38aaecc9a6abed226648417338baff032be8187 (patch)
tree45406cfec64fcbeba93dc0718bd2fb1348984f37 /templates/random-poem.html
parentb6b6b083d0e41ca64ef09f52120ca8a07d925b56 (diff)
downloadblossom-f38aaecc9a6abed226648417338baff032be8187.tar.gz
blossom-f38aaecc9a6abed226648417338baff032be8187.tar.bz2
blossom-f38aaecc9a6abed226648417338baff032be8187.zip
add random-poem panel
Diffstat (limited to 'templates/random-poem.html')
-rw-r--r--templates/random-poem.html11
1 files changed, 11 insertions, 0 deletions
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 %}
+<div class="panel" id="random-poem">
+ <h2>random poem</h2>
+ <a href="/poetry/{{ poem.file_name }}">
+ <h3>{% if let Some(title) = poem.title %}{{ title }}{% else %}permalink{% endif %}</h3>
+ </a>
+ <div class="poem-content">
+ {{ poem.content|safe }}
+ </div>
+</div>
+{% endif %} \ No newline at end of file