lang sull'header

pero' si vede male
This commit is contained in:
boyska 2018-06-04 19:11:32 +02:00
parent 5656f26085
commit dc44e9c94d
4 changed files with 27 additions and 11 deletions

View file

@ -25,9 +25,12 @@ body {
list-style: none;
color: #fff;
background: #9c2f2f;
font-size: 2em;
margin-top: -60px;
}
.header-ul-menu .header-menu {
font-size: 2em;
}
/*fine banner*/
.navbar::after,

View file

@ -3,9 +3,14 @@
<header id="header">
<ul class="header-ul-menu">
<li class="header-menu"><a class="brand-title" href="index.html">{{ SITENAME }}</a></li>
<li style="float:right;padding-right:5px;" class="header-menu">
lingue - en
</li>
{% block languages %}
{% if page %}
{% import 'includes/translations.html' as translations with context %}
<li style="float:right;padding-right:5px;color:blue;">
{{ translations.translations_for(page,label=False) }}
</li>
{% endif %}
{% endblock languages %}
</ul>
</header>

View file

@ -1,8 +1,18 @@
{% macro translations_for(article) %}
{% macro translations_for(article, label=True) %}
{% if article.translations %}
<span class="label label-default">Lang</span>
{% if label %}
<span class="label label-default">Lang</span>
{% endif %}
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}
{% macro translations_li(article) %}
{% if article.translations %}
{% for translation in article.translations %}
<li><a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a></li>
{% endfor %}
{% endif %}
{% endmacro %}

View file

@ -46,8 +46,6 @@
{% block content %}
<section id="content" class="body body-{{page.slug}}">
{% import 'includes/translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
get the pdf