diff options
Diffstat (limited to '')
-rw-r--r-- | templates/random-poem.html | 11 |
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 |