2
0

blog_page.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. {# TODO These two loops could be consolidated into one, with styling #}
  13. <div class="blog-byline">
  14. {% if page.date_published %}{{ page.date_published }} by {% else %}By: {% endif %}{% for author in page.authors %}
  15. {{ author }}{% if not forloop.last %}, {% endif %}
  16. {% endfor %}
  17. </div>
  18. <div class="blog-avatars">
  19. {% for author in page.authors %}
  20. {% image author.image width-100 class="blog-avatar" %}
  21. {% endfor %}
  22. </div>
  23. {{ page.body }}
  24. {% if page.get_tags %}
  25. Tagged with:<br />
  26. {% for tag in page.get_tags %}
  27. <a href="{{ tag.url }}" class="btn btn-sm">{{ tag }}</a>
  28. {% endfor %}
  29. {% endif %}
  30. </div>
  31. </div>
  32. </div>
  33. {% endblock content %}