Revert "remove archive and templates"

This reverts commit 67bdf28216.
This commit is contained in:
timurgordon
2024-03-06 16:24:35 -05:00
parent 10169d27fc
commit db0b0ed39f
514 changed files with 12779 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<div class="mx-8 md:mx-4 flex flex-col">
<div class="flex flex-col mb-12 mr-8 lg:mr-16">
<h4 class="text-base not-italic font-medium leading-6 text-gray-600 mb-6"> FILTER PARTNERS BY</h4>
<a id="all" class="mb-3 text-black font-normal" href="/partners">All</a>
{% set taxonomy = get_taxonomy(kind="partners-category") %}
{% set categories = taxonomy.items %}
{% for category in categories %}
{% set path = category.name | slugify %}
{% set fullpath = "/partners-category/" ~ path %}
<a id="{{path}}" class="mb-3 text-black font-normal" href={{fullpath}}> {{category.name}} </a>
{% endfor %}
</div>
</div>
<script>
function setActiveCategory() {
let activeCategory = window.location.pathname.split("/")[2]
if (typeof activeCategory === "undefined") { activeLink = document.getElementById("all") }
else { activeLink = document.getElementById(activeCategory) }
activeLink.className = activeLink.className.replace("text-black font-normal", "text-black font-semibold");
}
setActiveCategory()
</script>