summaryrefslogtreecommitdiff
path: root/app/links/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-08-06 12:03:24 -0500
committerluxagraf <sng@luxagraf.net>2023-08-06 12:03:24 -0500
commit73236f48e7995e32c72b96fb4cf56144c3e28226 (patch)
tree7bacabd2812f6181145daa63d4786eb94fba9a97 /app/links/templates
parent571edc362652693c61c3a56496152e0e03c51918 (diff)
links: cleaned up tag views
Diffstat (limited to 'app/links/templates')
-rw-r--r--app/links/templates/links/link_list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/links/templates/links/link_list.html b/app/links/templates/links/link_list.html
index 8f80a28..35992fc 100644
--- a/app/links/templates/links/link_list.html
+++ b/app/links/templates/links/link_list.html
@@ -17,15 +17,15 @@
</style>
{% endblock %}
{%block bodyid%}class="links" id="links-archive"{%endblock%}
-
{% block breadcrumbs %}{% if breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{%endif%}{% endblock %}
{% block primary %}<main class="archive-wrapper">
+ {{object_list}}
{% autopaginate object_list 100 %}{% for object in object_list %}
<ul class="archive-list">
<li class="h-entry hentry archive-list-card archive-list-card-sm" itemscope itemType="http://schema.org/Article">
<span class="date dt-published card-smcaps">{{object.pub_date|date:"F Y"}}</span>
<h2 class="card-hed"><a href="{{object.url}}">{{object.title|safe|smartypants|widont}}</a><small class="edit"><a target="_blank" href="/admin/links/link/{{object.pk}}/change/">edit</a></small></h2>
- <p class="p-summary card-lede">{% for object in object.tags.all %}<a class="tags" href="{% url 'links:list-tag' object.name %}">{{object}}</a>{%endfor%}</p>
+ <p class="p-summary card-lede">{% for object in object.tags.all %}<a class="tags" href="{% url 'links:list-tag' object.slug %}">{{object}}</a>{%endfor%}</p>
</li>{%endfor%}
</ul>
</main>
@@ -34,7 +34,7 @@
</nav>
<div class="tags">
<ul class="tag-list">{% for object in tags %}
- <li><a href="/links/tag/{{object.slug}}">{{object.name}}</a></li>{%endfor%}
+ <li><a href="{% url 'links:list-tag' object.slug %}">{{object.name}}</a></li>{%endfor%}
</ul>
</div>
{% endblock %}