blog_page.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% extends "base.html" %}
  2. {% load navigation_tags wagtailimages_tags %}
  3. {% block content %}
  4. {% image self.image fill-1920x600 as hero_img %}
  5. {% include "base/include/header-hero.html" %}
  6. <div class="container">
  7. <div class="row">
  8. <div class="col-md-8">
  9. {% if page.introduction %}
  10. <p class="intro">{{ page.introduction }}</p>
  11. {% endif %}
  12. <div class="blog-byline">
  13. {% if page.date_published %}{{ page.date_published }} by {% else %}By: {% endif %}{% for author in page.authors %}
  14. {{ author }}{% if not forloop.last %}, {% endif %}
  15. {% endfor %}
  16. </div>
  17. <div class="blog-avatars">
  18. {% for author in page.authors %}
  19. {% image author.image width-100 class="blog-avatar" %}
  20. {% endfor %}
  21. </div>
  22. {{ page.body }}
  23. {% if page.get_tags %}
  24. Tagged with:<br />
  25. {% for tag in page.get_tags %}
  26. <a href="{{ tag.url }}" class="btn btn-sm">{{ tag }}</a>
  27. {% endfor %}
  28. {% endif %}
  29. </div>
  30. </div>
  31. </div>
  32. {% endblock content %}