2024-06-11 13:16:19 +08:00

56 lines
1.2 KiB
Plaintext

<footer class="footer">
{%- block footerContent %}
{{ footerContent }}
{% endblock -%}
{%- if tags and tags.includes("shrine pages") %}
<nav class="footer__shrines">
<p>Back to:</p>
<ul class="footer__links">
<li><a href="/shrines/">Shrine Index</a></li>
<li><a href="/">{{ sitemeta.siteName }}</a></li>
</ul>
</nav>
{%- endif -%}
{%- include "global/top-btn.njk" %}
</footer>
<style>
.footer {
margin-top: auto;
width: 100%;
background: var(--clr-main-footer-bg);
padding: 1.5rem 1rem clamp(2rem, calc(100% - 2rem), 3rem);
text-align: center;
display: grid;
gap: 0.3em;
}
.footer p {
padding: 0;
}
.footer__links {
justify-self: center;
list-style: none;
text-align: center;
margin: 0;
padding: 0;
display: flex;
column-gap: 0.5em;
flex-wrap: wrap;
justify-content: center;
}
.footer__links li:not(:last-child)::after {
content: '•';
padding-left: 0.5em;
}
.footer__shrines {
display: flex;
gap: 0.7em;
justify-self: center;
}
</style>