2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 05:26:44 +00:00

add links to footer

This commit is contained in:
Matthias Mair 2022-04-23 13:52:20 +02:00
parent ed77735edb
commit d8071f2cb3

View File

@ -9,11 +9,12 @@
</div>
<div class="flex-grow flex flex-wrap md:pl-10 mb-1 md:mt-0 mt-10 md:text-left text-center md:justify-left justify-center">
{% assign footer = footer|default: site.data.general.footer %}
{% for cat in footer %}
<div class="md:w-1/4 px-4">
<h2 class="footer-categorie title-font">{{ cat.title }}</h2>
<h2 class="footer-categorie title-font">
{% if cat.link %}<a href="{% include fnc/link.html item=cat.link %}">{% endif %}{{cat.title}}{% if cat.link %}</a>{% endif %}
</h2>
<nav class="list-none mb-10"><ul>
{% for item in cat.cats %}
<li><a href="{% include fnc/link.html item=item%}" class="footer-link">{{ item.name }}</a></li>
@ -21,7 +22,6 @@
</ul></nav>
</div>
{% endfor %}
</div>
</div>