summaryrefslogtreecommitdiff
path: root/blog/templates/blog/blog_tag_index_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/templates/blog/blog_tag_index_page.html')
-rw-r--r--blog/templates/blog/blog_tag_index_page.html31
1 files changed, 13 insertions, 18 deletions
diff --git a/blog/templates/blog/blog_tag_index_page.html b/blog/templates/blog/blog_tag_index_page.html
index fda427b..9a3ac8a 100644
--- a/blog/templates/blog/blog_tag_index_page.html
+++ b/blog/templates/blog/blog_tag_index_page.html
@@ -3,18 +3,15 @@
{% block content %}
<div class="container">
-
<div class="row">
-
- <!-- Blog Entries Column -->
+ {# Blog Entries Column #}
<div class="col-md-8">
+ {% if request.GET.tag|length %}
+ <h1 class="my-4">Showing pages tagged "{{ request.GET.tag }}"</h1>
- {% if request.GET.tag|length %}
- <h1 class="my-4">Showing pages tagged "{{ request.GET.tag }}"</h1>
-
- {% for post in blogpages %}
- {% with post=post.specific %}
- <!-- Blog Post -->
+ {% for post in blogpages %}
+ {% with post=post.specific %}
+ {# Blog Post #}
<div class="card mb-4">
<div class="card-body">
<h2 class="card-title">{{ post.title }}</h2>
@@ -25,19 +22,17 @@
Posted on {{ post.date }}
</div>
</div>
- {% endwith %}
- {% endfor %}
- {% else %}
- <h1 class="my-4">No pages with tag {{request.GET.tag }} available</h1>
- {% endif %}
- <p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p>
+ {% endwith %}
+ {% endfor %}
+ {% else %}
+ <h1 class="my-4">No pages with tag {{request.GET.tag }} available</h1>
+ {% endif %}
+ <p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p>
</div>
- <!-- Sidebar Widgets Column -->
+ {# Sidebar Widgets Column #}
<div class="col-md-4">
{% include "search.html" %}
</div>
-
</div>
</div>
-
{% endblock %}