Display heading for pages if defined

needed for ToS, PP etc...
This commit is contained in:
davegson 2020-05-21 12:28:59 +02:00
parent 3849bafd69
commit 69a8757f09

View file

@ -9,6 +9,12 @@ layout: page
<div class="py-12 bg-white"> <div class="py-12 bg-white">
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<content> <content>
{% unless page.heading == null %}
<h1 class="text-5xl tracking-tight font-extrabold leading-none">
{{ page.heading }}
</h1>
{% endunless %}
{{ content }} {{ content }}
</content> </content>
</div> </div>