moved header into base.html template

This commit is contained in:
rra 2019-06-03 16:59:10 +02:00
parent 977a212649
commit 96ad9ca65e
5 changed files with 13 additions and 31 deletions

View File

@ -180,7 +180,7 @@ ul li{
header { header {
width:calc(100% - 50px); width:calc(100% - 50px);
margin-top:26px; margin-top:26px;
margin-bottom:5em; margin-bottom:1em;
padding-bottom:1em; padding-bottom:1em;
font-family: "header"; font-family: "header";
font-size: 17px; font-size: 17px;
@ -194,10 +194,9 @@ header {
vertical-align: calc(-2px); vertical-align: calc(-2px);
} }
/* custom font size for index */ /* custom font size for index */
#content.index header{ #banner {
font-size: 24px; font-size: 24px;
line-height: 1.5; line-height: 1.5;
margin-top:0;
} }
header p{ header p{
display: inline; display: inline;

View File

@ -12,13 +12,6 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<header id="banner">
{% for p in pages %}
{% if p.title == 'header' %}
<div id="title">{{ p.content }}</div>
{% endif %}
{% endfor %}
</header>
{% set glob={} %} {% set glob={} %}
{% if article.translations %} {% if article.translations %}

View File

@ -44,6 +44,17 @@
<div class="buttons top"> <div class="buttons top">
</div> </div>
{% block banner %}
<header id="banner">
{% for p in pages %}
{% if p.title == 'header' %}
<div id="title">
{{ p.content }}
</div>
{% endif %}
{% endfor %}
</header>
{% endblock banner %}
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</body> </body>

View File

@ -1,16 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<section id="content" class="index"> <section id="content" class="index">
<header id="banner">
{% for p in pages %}
{% if p.title == 'header' %}
<div id="title">
{{ p.content }}
</div>
{% endif %}
{% endfor %}
</header>
{% set glob={} %} {% set glob={} %}
{% if DEFAULT_LANG == 'nl' %} {% if DEFAULT_LANG == 'nl' %}

View File

@ -2,17 +2,6 @@
{% block title %}{{ page.title }}{%endblock%} {% block title %}{{ page.title }}{%endblock%}
{% block content %} {% block content %}
<section id="content" class="index">
<header id="banner">
{% for p in pages %}
<!-- header -->
{% if p.title == 'header' %}
<div id="title">{{ p.content }}</div>
{% endif %}
{% endfor %}
</header>
</section> </section>
<div id="page-content"> <div id="page-content">
{{ page.content }} {{ page.content }}