fix: clean up loop implementations
This commit is contained in:
parent
5f6a1a8d33
commit
f8b18a91bc
5 changed files with 13 additions and 36 deletions
|
@ -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>© {{ 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue