diff options
author | cel 🌸 <cel@blos.sm> | 2024-01-31 21:02:28 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-01-31 21:02:28 +0000 |
commit | 2ac490aca1be78d5cb01eeeb9639c6d02ccf40e5 (patch) | |
tree | 04426c29d75d74b35e5e681acc0b58eda713ded3 /templates/poem-panel.html | |
parent | 7ccf135f287ccb6c12494275b2220aae63aa9126 (diff) | |
download | blossom-2ac490aca1be78d5cb01eeeb9639c6d02ccf40e5.tar.gz blossom-2ac490aca1be78d5cb01eeeb9639c6d02ccf40e5.tar.bz2 blossom-2ac490aca1be78d5cb01eeeb9639c6d02ccf40e5.zip |
add poetry
Diffstat (limited to '')
-rw-r--r-- | templates/poem-panel.html | 10 |
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> |