aboutsummaryrefslogtreecommitdiffstats
path: root/templates/blogpost-panel.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/blogpost-panel.html10
-rw-r--r--templates/blogpost-panel.html.tera8
2 files changed, 10 insertions, 8 deletions
diff --git a/templates/blogpost-panel.html b/templates/blogpost-panel.html
new file mode 100644
index 0000000..6375012
--- /dev/null
+++ b/templates/blogpost-panel.html
@@ -0,0 +1,10 @@
+<div class="panel content blogpost">
+ <h1 class="title">{{ blogpost.subject().unwrap_or("untitled") }}</h1>
+ <h2 class="created-at">{{ blogpost.published_at() }} <a href="/blog/{{ blogpost.file_name() }}">permalink</a></h2>
+ <div class="tags">{% for tag in blogpost.tags().clone() %}<a
+ class="tag {% if filter_tags.contains(tag) %}active{% endif %}" href="/blog?filter={{ tag }}">{{ tag }}</a>{%
+ endfor %}</div>
+ <div class="blogpost-content">
+ {{ blogpost.content()|safe }}
+ </div>
+</div> \ No newline at end of file
diff --git a/templates/blogpost-panel.html.tera b/templates/blogpost-panel.html.tera
deleted file mode 100644
index 64f064c..0000000
--- a/templates/blogpost-panel.html.tera
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="panel content blogpost">
- <h1 class="title">{{ blogpost.subject }}</h1>
- <h2 class="created-at">{{ blogpost.created_at }} <a href="/blog/{{ blogpost.data.name }}">permalink</a></h2>
- <div class="tags">{% for tag in blogpost.tags %}<a class="tag {% if filter_hashset %}{% if tag in filter_hashset %}active{% endif %}{% endif %}" href="/blog?filter={{ tag }}">{{ tag }}</a>{% endfor %}</div>
- <div class="blogpost-content">
- {{ blogpost.render }}
- </div>
-</div>