Browse Source

moved header into base.html template

master
rra 6 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 { 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;

7
themes/varia/templates/article.html

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

11
themes/varia/templates/base.html

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

10
themes/varia/templates/index.html

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

11
themes/varia/templates/page.html

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

Loading…
Cancel
Save