lang sull'header
pero' si vede male
This commit is contained in:
parent
5656f26085
commit
dc44e9c94d
4 changed files with 27 additions and 11 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue