aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poem-panel.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/poem-panel.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/poem-panel.html b/templates/poem-panel.html
new file mode 100644
index 0000000..3359578
--- /dev/null
+++ b/templates/poem-panel.html
@@ -0,0 +1,10 @@
+<div
+ style="top: {{ self::thread_rng().gen_range(-jiggle..=jiggle) }}vw; left: {{ self::thread_rng().gen_range(-4..=4) }}vw"
+ class="panel content poem">
+ {% if let Some(title) = poem.title %}<h1 class="title">{{ title }}</h1>{% endif %}
+ <h2 class="created-at">{{ poem.created_at.date_naive() }} <a href="/poetry/{{ poem.file_name }}">permalink</a>
+ </h2>
+ <div class="poem-content">
+ {{ poem.content|safe }}
+ </div>
+</div>