tangled
alpha
login
or
join now
ericwood.org
/
photos-site
1
fork
atom
A little app to serve my photography from my personal website
1
fork
atom
overview
issues
pulls
pipelines
fix links
ericwood.org
4 months ago
e9eeda00
72477b96
0/0
Waiting for spindle ...
+4
-4
2 changed files
expand all
collapse all
unified
split
templates
photos
index.jinja
show.jinja
+3
-3
templates/photos/index.jinja
···
5
5
<div class="photos__layout">
6
6
<div class="photos__mobile-nav">
7
7
<button type="button" class="mobile-nav-toggle">Filter</button>
8
8
-
<a href="/?{{ sort_link }}" class="sort">
8
8
+
<a href="?{{ sort_link }}" class="sort">
9
9
Sort {% if sort_dir == "asc" -%}↑{% else -%}↓{% endif %}
10
10
</a>
11
11
</div>
···
13
13
<div class="photos">
14
14
{% for photo in photos %}
15
15
<a
16
16
-
href="/{{ photo.id }}"
16
16
+
href="/photos/{{ photo.id }}"
17
17
id="{{ photo.id }}"
18
18
data-width="{{ photo.width }}"
19
19
data-height="{{ photo.height }}"
···
76
76
</ul>
77
77
<p>
78
78
Sort:
79
79
-
<a href="/?{{ sort_link }}">
79
79
+
<a href="?{{ sort_link }}">
80
80
{% if sort_dir == "asc" -%}↑{% else -%}↓{% endif %}
81
81
</a>
82
82
</p>
+1
-1
templates/photos/show.jinja
···
55
55
<ul>
56
56
{% for tag in tags %}
57
57
<li class="photo__tag">
58
58
-
<a href="/?tags={{ url_escape(tag.name) }}">{{ tag.name }}</a>
58
58
+
<a href="/photos?tags={{ url_escape(tag.name) }}">{{ tag.name }}</a>
59
59
</li>
60
60
{% endfor %}
61
61
</p>