Browse Source

moved header into base.html template

master
rra 5 years ago
parent
commit
96ad9ca65e
  1. 5
      themes/varia/static/css/main.css
  2. 7
      themes/varia/templates/article.html
  3. 11
      themes/varia/templates/base.html
  4. 10
      themes/varia/templates/index.html
  5. 11
      themes/varia/templates/page.html

5
themes/varia/static/css/main.css

@ -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;

7
themes/varia/templates/article.html

@ -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 %}

11
themes/varia/templates/base.html

@ -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>

10
themes/varia/templates/index.html

@ -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' %}

11
themes/varia/templates/page.html

@ -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 }}

Loading…
Cancel
Save