breadcrumb

This commit is contained in:
Simon Conseil
2018-10-13 00:31:16 +02:00
parent 094a3d7f8e
commit 69fc93f207
4 changed files with 12 additions and 21 deletions

View File

@@ -32,12 +32,8 @@
</div>
<div id="main" role="main" class="nine columns offset-by-three">
<header>
{% include 'breadcrumb.html' %}
{% if album.breadcrumb %}
<h2>
{% for url, title in album.breadcrumb %}
<a href="{{ url }}">{{ title }}</a>{% if not loop.last %} » {% endif %}
{% endfor -%}
</h2>
<hr>
{% endif %}
</header>

View File

@@ -0,0 +1,9 @@
{% if album.breadcrumb %}
<div class="breadcrumb">
<h2>
{% for url, title in album.breadcrumb %}
<a href="{{ url }}">{{ title }}</a>{% if not loop.last %} » {% endif %}
{% endfor -%}
</h2>
</div>
{% endif %}

View File

@@ -22,13 +22,8 @@
<h1><a href="{{ album.index_url }}">{{ index_title }}</a></h1>
{% include 'links.html' %}
{% include 'breadcrumb.html' %}
{% if album.breadcrumb %}
<h2>
{%- for url, title in album.breadcrumb -%}
<a href="{{ url }}">{{ title }}</a>
{%- if not loop.last %} » {% endif -%}
{% endfor -%}
</h2>
<hr>
{% endif %}
</header>

View File

@@ -20,16 +20,7 @@
{% include 'links.html' %}
<div class="content">
{% if album.breadcrumb %}
<div class="breadcrumb">
<h2>
{% for url, title in album.breadcrumb %}
<a href="{{ url }}">{{ title }}</a>{% if not loop.last %} » {% endif %}
{% endfor -%}
</h2>
</div>
{% endif %}
{% include 'breadcrumb.html' %}
{% block content %}{% endblock %}
{% if album.description %}