2021-11-04 22:14:13 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-11-09 17:11:04 +00:00
|
|
|
<div class="flex items-center flex-col md:mt-40">
|
2021-11-09 17:17:54 +00:00
|
|
|
<h1 class="text-2xl text-bold">
|
2021-11-09 17:11:04 +00:00
|
|
|
Categories
|
|
|
|
</h1>
|
2021-11-09 17:19:18 +00:00
|
|
|
<p class="text-bold text-xl mt-4">{{ terms | length }} categories</p>
|
2021-11-09 17:11:04 +00:00
|
|
|
|
2021-11-09 17:19:18 +00:00
|
|
|
<div class="flex gap-x-7 mt-6">
|
2021-11-09 17:15:53 +00:00
|
|
|
{% for category in terms %}
|
2021-11-09 17:17:54 +00:00
|
|
|
<a href="{{ get_taxonomy_url(kind='categories', name=category.name) }}" class="flex items-center space-x-2">
|
2021-11-09 17:15:19 +00:00
|
|
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
|
|
|
|
</svg>
|
|
|
|
<span class="text-bold">{{category.name}} <sup>{{ category.pages | length }}</sup></span>
|
|
|
|
</a>
|
2021-11-09 17:11:04 +00:00
|
|
|
{% endfor %}
|
2021-11-09 17:15:53 +00:00
|
|
|
</div>
|
2021-11-04 22:14:13 +00:00
|
|
|
{% endblock content %}
|