breadcrumb
This commit is contained in:
@@ -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>
|
||||
|
||||
9
sigal/themes/default/templates/breadcrumb.html
Normal file
9
sigal/themes/default/templates/breadcrumb.html
Normal 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 %}
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user