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

View File

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

View File

@ -44,6 +44,17 @@
<div class="buttons top">
</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 %}
{% endblock %}
</body>

View File

@ -1,16 +1,6 @@
{% extends "base.html" %}
{% block content %}
<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={} %}
{% if DEFAULT_LANG == 'nl' %}

View File

@ -2,17 +2,6 @@
{% block title %}{{ page.title }}{%endblock%}
{% 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>
<div id="page-content">
{{ page.content }}