chore: improve + simplify update timestamps in footer

This commit is contained in:
Cory Dransfeldt 2024-05-20 11:08:22 -07:00
parent de10bfd839
commit 5437d3c009
No known key found for this signature in database
10 changed files with 55 additions and 50 deletions

View file

@ -1,10 +1,11 @@
<footer>
<nav aria-label="Social icons" class="flex-centered justify-centered text-centered">
<footer{% unless updated %} style="margin-top:var(--sizing-3xl)"{% endunless %}>
{% if updated %}<p class="explainer text-small text-centered"><em>This page was last updated on {{ updated | date: "%B %-d, %-I:%M%p", "America/Los_Angeles" }}.</em></p>{% endif %}
<nav aria-label="Social icons" class="social flex-centered justify-centered text-centered">
{% for link in nav.social %}
{% render "partials/nav/linked-icon.liquid", name:link.name, link:link.url, icon:link.icon %}
{% endfor %}
</nav>
<nav aria-label="Secondary site navigation" class="flex-centered justify-centered text-centered">
<nav aria-label="Secondary site navigation" class="sub-pages flex-centered justify-centered text-centered">
{% for link in nav.footer %}
{% render "partials/nav/link.liquid", page:page, link:link.name, icon:link.icon %}
{% if not forloop.last %}<span>•</span>{% endif %}