blog_page.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends "base.html" %}
  2. {% load navigation_tags wagtailimages_tags %}
  3. {% block content %}
  4. {% include "base/include/header-blog.html" %}
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-8">
  8. <div class="blog__meta">
  9. {% if page.authors %}
  10. <div class="blog__avatars">
  11. {% for author in page.authors %}
  12. <div class="blog__author">{% image author.image fill-50x50-c100 class="blog__avatar" %}
  13. {{ author.first_name }} {{ author.last_name }}</div>
  14. {% endfor %}
  15. </div>
  16. {% endif %}
  17. </div>
  18. {{ page.body }}
  19. {% if page.get_tags %}
  20. <p class="blog__tag-introduction">Find more blog posts with similar tags</p>
  21. <div class="blog-tags blog-tags--condensed">
  22. <span class="u-sr-only">Filter blog posts by tag</span>
  23. {% for tag in page.get_tags %}
  24. <a href="{{ tag.url }}" class="blog-tags__pill">{{ tag }}</a>
  25. {% endfor %}
  26. </div>
  27. {% endif %}
  28. </div>
  29. </div>
  30. </div>
  31. {% endblock content %}