Add photo id in breadcrumb
This commit is contained in:
parent
d4c65e0c90
commit
df288734a2
4 changed files with 13 additions and 8 deletions
theme
|
@ -40,6 +40,10 @@ header h2 {
|
|||
flex: 1;
|
||||
}
|
||||
|
||||
header h2 a {
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
font-size: .8rem;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{% for media in album.medias %}
|
||||
<li class="thumbnail">
|
||||
<a href="{{ media.url }}.html">
|
||||
<img src="{{ media.thumbnail }}" alt="{{ media.title }}">
|
||||
<img id="{{ media.url }}" src="{{ media.thumbnail }}" alt="{{ media.title }}">
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
@ -18,10 +18,15 @@
|
|||
{% if album.breadcrumb %}
|
||||
<h2>
|
||||
{% for url, title in album.breadcrumb %}
|
||||
» <a href="{{ url }}">{{ title }}</a>
|
||||
{% if loop.last and media is defined %}
|
||||
» <a href="{{ url }}#{{ media.url }}">{{ title }}</a>
|
||||
{% else %}
|
||||
» <a href="{{ url }}">{{ title }}</a>
|
||||
{% endif %}
|
||||
{% endfor -%}
|
||||
{% block extra_breadcrumb %}
|
||||
{% endblock %}
|
||||
{% if media is defined %}
|
||||
» <a href="{{ media.url }}.html">{{ media.title }}</a>
|
||||
{% endif %}
|
||||
</h2>
|
||||
{% endif %}
|
||||
{% include "links.html" %}
|
||||
|
|
|
@ -10,10 +10,6 @@
|
|||
<meta name="twitter:card" content="summary_large_image">
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_breadcrumb %}
|
||||
» <a href="{{ media.url }}.html">{{ media.title }}</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
<img src="{{ media.url }}" alt="{{ media.title }}">
|
||||
|
|
Loading…
Add table
Reference in a new issue