fix: clean up loop implementations

This commit is contained in:
Devin Haska 2024-02-08 21:09:53 -08:00
parent 5f6a1a8d33
commit f8b18a91bc
5 changed files with 13 additions and 36 deletions

View file

@ -1,4 +1,3 @@
{% set socialLinks = meta.social | entries %}
<footer class="[ footer ] [ mt-1.5 py-1.5 ]">
<div class="[ footer-grid ] [ wrapper gap-0.5 ]">
<p>&copy; {{ meta.author }} 2018-2024.</p>
@ -17,9 +16,7 @@
<span class="[ visually-hidden ]">RSS</span>
<a href="#" target="_blank">{% include "svgs/rss.svg" %}</a>
</li>
{% for link in socialLinks %}
{% set key = link | first %}
{% set url = link | last %}
{% for key, url in meta.social %}
{% set alt = key | capitalize %}
<li>
<span class="[ visually-hidden ]">{{ alt }}</span>