Move links to a dedicated template

This commit is contained in:
Simon Conseil
2018-10-12 23:11:40 +02:00
parent dd4ce9e8bc
commit bb95308cda
6 changed files with 15 additions and 31 deletions

View File

@@ -27,15 +27,7 @@
{{ index_title }}
{% endif %}
</a></h1>
{% if settings.links %}
<nav id="menu">
<ul>
{% for title, link in settings.links %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% include 'links.html' %}
{% include 'footer.html' %}
</div>
</div>

View File

@@ -0,0 +1,9 @@
{% if settings.links %}
<nav id="menu">
<ul>
{% for title, link in settings.links %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
{% endif %}

View File

@@ -15,7 +15,6 @@
{% block content %}
<div id="albums">
<!-- <h1>Albums</h1> -->
<ul>
{% for alb in album.albums %}
<li><a href="{{ alb.url }}">

View File

@@ -21,15 +21,7 @@
<header>
<h1><a href="{{ album.index_url }}">{{ index_title }}</a></h1>
{% if settings.links %}
<nav id="menu">
<ul>
{% for title, link in settings.links %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% include 'links.html' %}
{% if album.breadcrumb %}
<h2>
{%- for url, title in album.breadcrumb -%}

View File

@@ -84,18 +84,18 @@ figcaption {
padding:2em 0;
}
.menu {
#menu {
width: 100%;
background: #F7F7F7 none repeat scroll 0 0;
padding: 30px 0;
}
.menu ul {
#menu ul {
max-width: 1024px;
margin: 0 auto;
}
.menu li {
#menu li {
display: inline;
list-style: none; /* pour enlever les puces sur IE7 */
}

View File

@@ -23,15 +23,7 @@
<div class="container">
<h1><a href="{{ album.index_url }}">{{ index_title }}</a></h1>
{% if settings.links %}
<div class="menu">
<ul>
{% for title, link in settings.links %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% include 'links.html' %}
{% block content %}