blog_page.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends "base.html" %}
  2. {% load navigation_tags wagtailimages_tags %}
  3. {% block content %}
  4. {% image self.image fill-1920x600 as hero_img %}
  5. <div class="container-fluid hero" style="background-image:url('{{ hero_img.url }}')">
  6. <div class="hero-gradient-mask"></div>
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-7 col-md-offset-2">
  10. <h1>{{ page.title }}</h1>
  11. <p class="stand-first">{{ page.subtitle }}</p>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="container">
  17. <div class="row">
  18. <div class="col-md-7 col-md-offset-2">
  19. {% if page.introduction %}
  20. <p class="intro">{{ page.introduction }}</p>
  21. {% endif %}
  22. {# TODO These two loops could be consolidated into one, with styling #}
  23. <div class="blog-byline">
  24. {{ page.date_published }} by {% for author in page.authors %}
  25. {{ author }}{% if not forloop.last %}, {% endif %}
  26. {% endfor %}
  27. </div>
  28. <div class="blog-avatars">
  29. {% for author in page.authors %}
  30. {% image author.image width-100 class="blog-avatar" %}
  31. {% endfor %}
  32. </div>
  33. {{ page.body }}
  34. {% if page.get_tags %}
  35. Tagged with:<br />
  36. {% for tag in page.get_tags %}
  37. <a href="{{ tag.url }}" class="btn btn-sm">{{ tag }}</a>
  38. {% endfor %}
  39. {% endif %}
  40. </div>
  41. </div>
  42. </div>
  43. {% endblock content %}