From 2ac490aca1be78d5cb01eeeb9639c6d02ccf40e5 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 31 Jan 2024 21:02:28 +0000 Subject: add poetry --- templates/poem-panel.html | 10 ++++++++++ templates/poem.html | 9 +++++++++ templates/poetry.html | 13 +++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 templates/poem-panel.html create mode 100644 templates/poem.html create mode 100644 templates/poetry.html (limited to 'templates') 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 @@ +
+ {% if let Some(title) = poem.title %}

{{ title }}

{% endif %} +

{{ poem.created_at.date_naive() }} permalink +

+
+ {{ poem.content|safe }} +
+
diff --git a/templates/poem.html b/templates/poem.html new file mode 100644 index 0000000..589a6e4 --- /dev/null +++ b/templates/poem.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} + +
+ {% include "poem-panel.html" %} +
+ +{% endblock content %} \ No newline at end of file diff --git a/templates/poetry.html b/templates/poetry.html new file mode 100644 index 0000000..8c51cff --- /dev/null +++ b/templates/poetry.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block nav_poetry %}active{% endblock %} + +{% block content %} + +
+ {% for poem in poems %} + {% include "poem-panel.html" %} + {% endfor %} +
+ +{% endblock content %} \ No newline at end of file -- cgit