diff options
Diffstat (limited to 'blog/templates/blog/blog_tag_index_page.html')
-rw-r--r-- | blog/templates/blog/blog_tag_index_page.html | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/blog/templates/blog/blog_tag_index_page.html b/blog/templates/blog/blog_tag_index_page.html index fda427b..789627c 100644 --- a/blog/templates/blog/blog_tag_index_page.html +++ b/blog/templates/blog/blog_tag_index_page.html @@ -3,17 +3,14 @@ {% block content %} <div class="container"> - <div class="row"> - <!-- 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 %} + {% for post in blogpages %} + {% with post=post.specific %} <!-- Blog Post --> <div class="card mb-4"> <div class="card-body"> @@ -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 --> <div class="col-md-4"> {% include "search.html" %} </div> - </div> </div> - {% endblock %} |