diff --git a/templates/blog/post.html b/templates/blog/post.html index 6131ecd6d7057a9eb17bd1a768b353b332d7ca70..4ec3456c90e9c7139bca103c5810d481de448173 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -1,13 +1,8 @@ -{% extends "base.html" %} +{% extends "page.html" %} -{% block main %} - <h1>{{ page.title }}</h1> - <div class="my-4"> - <div class="section"> - <div class="content container"> - <img src="{{ page.extra.depiction.image | safe }}" alt="{{ page.extra.depiction.alt }}" /> - {{ page.content }} - </div> - </div> - </div> +{% block content %} + <div class="content"> + <img src="{{ page.extra.depiction.image | safe }}" alt="{{ page.extra.depiction.alt }}" /> + {{ page.content }} + </div> {% endblock %} diff --git a/templates/page.html b/templates/page.html index cb90ee49c6ce0007c40bffb10822c1baef2d1ddd..bb85e8f938dbb812a4325b6b8561ae0a9ee255b6 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,14 +1,14 @@ {% extends "base.html" %} {% block main %} - <div class="my-4"> - <div class="section"> - <div class="container"> - <h1 class="title is-1">{{ page.title }}</h1> - <div class="content"> - {{ page.content | safe }} - </div> - </div> - </div> + <section class="section"> + <div class="container"> + <h1 class="title is-1">{{ page.title }}</h1> + {% block content %} + <div class="content"> + {{ page.content | safe }} + </div> + {% endblock content %} </div> + </section> {% endblock %}