add: hashtag to album page to go directly on the picture you clicked

This commit is contained in:
2025-05-06 22:42:22 +02:00
parent 5fc12d5d33
commit 129dfe7df9
4 changed files with 9 additions and 6 deletions

View File

@ -9,7 +9,7 @@
<h1>{{ album.name }}</h1>
<div class="picture-container">
{% for picture in album._pictures %}
<a href="{{ picture.get_page().html.get_url() }}">
<a href="{{ picture.get_page().html.get_url() }}#{{ picture.id }}">
<img src="{{ picture.get_thumb().get_url() }}">
</a>
{% endfor %}

View File

@ -28,7 +28,7 @@
{% endif %}
<div class="picture-container">
{% for picture in page._pictures %}
<div class="picture-container-item">
<div class="picture-container-item" id="{{ picture.id}}">
<div class="picture">
<a href="{{ picture.get_small().get_url() }}">
<img src='{{ picture.get_small().get_url() }}'>
@ -43,7 +43,7 @@
<div class="albums_container">
<h1>Albums:</h1>
{% for album in picture.albums %}
<a href="{{ album.path.get_url() }}" class="album_item">{{ album.name }}</a>
<a href="{{ album.path.get_url() }}" class="album_item">{{ al }}</a>
{% endfor %}
</div>
</div>
@ -52,7 +52,7 @@
{% if page.get_raw().exist() %}
<div class="download">
<h1>Download</h1>
<a href="{{ page.get_raw().get_url() }}">RAW</a>
<a href="{{ page.get_raw() }}">RAW</a>
</div>
{% endif %}
{% if page.get_exif() %}