diff --git a/www/blog/entry.inc.html b/www/blog/entry.inc.html deleted file mode 100644 index 0ce6728..0000000 --- a/www/blog/entry.inc.html +++ /dev/null @@ -1,88 +0,0 @@ -{# Reusable template for showing a blog post content #} -{% from "google-ads.inc.html" import leaderboard %} - -{% macro blog_entry(post, from=None) %} - - {% if from == "index" %} - - {{ post["subject"] }} -
- {% else %} - {% include "blog/sibling-links.html" %} -
- {% endif %} - -
- - - - {{ post["rendered_body"] | safe }} - --
- - [ - {% if from == "index" %} - {% if post["comments"] %}{# Allowed comments #} - {{ post["comment_count"] }} comment{% if post["comment_count"] != 1 %}s{% endif %} - | - Add comment - | - {% endif %} - - Permalink - {% else %} - Blog - {% endif %} - - {% if session["login"] %} - | - Edit - | - Delete - {% endif %} - ] -
- - {# Show the Google ad after the first post. #} - {% if from == "index" and post["position_index"] == 1 %} - {{ leaderboard() }} - {% endif %} - - {% if from != "index" %} - {% include "blog/sibling-links.html" %} -
- - {{ include_page("comment.partial_index", - thread="blog-"+post["post_id"]|string, - subject=post["subject"], - ) | safe }} - {% endif %} - -{% endmacro %}