diff options
Diffstat (limited to 'blog/templates/blog/blog_post.html')
-rw-r--r-- | blog/templates/blog/blog_post.html | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/blog/templates/blog/blog_post.html b/blog/templates/blog/blog_post.html index 6bd48f8..e328308 100644 --- a/blog/templates/blog/blog_post.html +++ b/blog/templates/blog/blog_post.html @@ -7,40 +7,34 @@ {% block body_class %}template-blogpage{% endblock %} {% block content %} - <div class="container"> - <div class="row"> - - <!-- Post Content Column --> + {# Post Content Column #} <div class="col-lg-8"> - - <!-- Title --> + {# Title #} <h1 class="mt-4">{{ page.title }}</h1> - <!-- Date/Time --> + {# Date/Time #} {% with categories=page.categories.all %} - <p>Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}</p> + <p>Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}</p> {% endwith %} <hr> - <!-- Preview Image --> + {# Preview Image #} {% if page.main_image %} - {% image page.main_image fill-900x300-c100 class="img-fluid rounded" %} - <hr> + {% image page.main_image fill-900x300-c100 class="img-fluid rounded" %} + <hr> {% endif %} - <!-- Post Content --> + {# Post Content #} <p class="lead">{{ page.intro }}</p> {% include_block page.body %} - - </div> - <!-- Sidebar Widgets Column --> + {# Sidebar Widgets Column #} <div class="col-md-4"> {% include "search.html" %} - <!-- Tags Widget --> + {# Tags Widget #} <div class="card my-4"> <h5 class="card-header">Tags</h5> <div class="card-body"> @@ -48,20 +42,18 @@ <div class="col-lg-10"> <ul class="list-unstyled mb-0"> {% if page.tags.all.count %} - {% for tag in page.tags.all %} - <span class="badge badge-light"><a href="{% slugurl 'tags' %}?tag={{ tag }}">{{ tag }}</a></span> - {% endfor %} + {% for tag in page.tags.all %} + <span class="badge badge-light"><a href="{% slugurl 'tags' %}?tag={{ tag }}">{{ tag }}</a></span> + {% endfor %} {% else %} - No tags for this post + No tags for this post {% endif %} + </ul> </div> </div> </div> </div> </div> - - - </div> <p><a href="{{ request.META.HTTP_REFERER }}">Return to previous page</a></p> |