recipe_page.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends "base.html" %}
  2. {% load navigation_tags wagtailimages_tags wagtailcore_tags %}
  3. {% block content %}
  4. {% image self.image fill-1920x600 as hero_img %}
  5. {% include "base/include/header-blog.html" %}
  6. <div class="container">
  7. <div class="row">
  8. <div class="col-md-8">
  9. <div class="blog__meta">
  10. {% if page.authors %}
  11. <div class="blog__avatars">
  12. {% for author in page.authors %}
  13. <div class="blog__author">{% image author.image fill-50x50-c100 class="blog__avatar" %}
  14. {{ author.first_name }} {{ author.last_name }}</div>
  15. {% endfor %}
  16. </div>
  17. {% endif %}
  18. </div>
  19. {% if page.backstory %}
  20. {{ page.backstory }}
  21. <hr>
  22. {% endif %}
  23. {# Give a label to the recipe section for screen reader users. #}
  24. <div id="recipe-headline" class="sr-only">
  25. Recipe{% if page.recipe_headline %}: {{ page.recipe_headline|richtext }}{% endif %}
  26. </div>
  27. <section aria-labelledby="recipe-headline">
  28. {{ page.body }}
  29. </section>
  30. </div>
  31. </div>
  32. </div>
  33. {% endblock content %}