Add photo id in breadcrumb

This commit is contained in:
echo 2019-09-29 00:09:11 -04:00
parent d4c65e0c90
commit df288734a2
4 changed files with 13 additions and 8 deletions

View file

@ -40,6 +40,10 @@ header h2 {
flex: 1;
}
header h2 a {
text-decoration: underline dotted;
}
footer {
text-align: center;
font-size: .8rem;

View file

@ -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 %}

View file

@ -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" %}

View file

@ -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 }}">