hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit 96f52c1af4823daa2e239d8745529027cb0059d8
parent 50bfd0cbbb0dd878df163b47b5015844114c3aee
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 25 Apr 2021 20:57:05 -0400

Move the footer outside the layout

Diffstat:
Atemplates/footer.html | 36++++++++++++++++++++++++++++++++++++
Mtemplates/layout.html | 42+++---------------------------------------
2 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/templates/footer.html b/templates/footer.html @@ -0,0 +1,36 @@ +<footer class="footer-banner"> + <div class="footer-banner__wrapper"> + <ul class="footer-banner__list"> + <li class="footer-banner__item"> + <a + href="https://webring.xxiivv.com/#random" + hreflang="en"> + <span class="visuallyhidden">Webring</span> + <img + alt="" + height="20px" + src="https://webring.xxiivv.com/icon.white.svg" + width="20px" /> + </a> + </li> + <li class="footer-banner__item"> + <a href="/xfn.html">Liens</a> + </li> + <li class="footer-banner__item"> + <a href="/biscuits.html">Site sans biscuit</a> + </li> + <li class="footer-banner__item"> + <a href="https://1mb.club/" rel="external">qui ne drainera pas votre batterie</a> + </li> + <li class="footer-banner__item"> + <a + href="https://creativecommons.org/licenses/by-sa/2.5/ca/deed.fr" + rel="external license" + title="Licence Creative Commons: Partage dans les mêmes conditions 2.5 Canada. Lien externe">CC BY-SA 2.5 CA</a> + </li> + <li class="footer-banner__item"> + @&nbsp;<time><%= os.date('%Y') -%></time> + </li> + </ul> + </div> +</footer> diff --git a/templates/layout.html b/templates/layout.html @@ -1,6 +1,6 @@ <!DOCTYPE html> <html lang="<%= language -%>"> - <%- head %> + <%- head -%> <% local posttype = posttype or 'default' %> <body class="<%- template or posttype -%>" id="t"> <svg height="0" style="position:absolute" width="0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -15,7 +15,7 @@ <a class="go-to-nav visuallyhidden--lg focusable" href="#n"> <svg aria-hidden="true" class="ico" height="24" role="image" width="24"><use href="#ico_nav"></use></svg> <span class="visuallyhidden--to-lg">Aller au&nbsp;</span>menu<span class="visuallyhidden"> de navigation</span> - </a> + </a> <div class="layout"> <main class="main" id="m"> @@ -23,43 +23,7 @@ </main> <%- navigation -%> - - <footer class="footer-banner"> - <div class="footer-banner__wrapper"> - <ul class="footer-banner__list"> - <li class="footer-banner__item"> - <a - href="https://webring.xxiivv.com/#random" - hreflang="en"> - <span class="visuallyhidden">Webring</span> - <img - alt="" - height="20px" - src="https://webring.xxiivv.com/icon.white.svg" - width="20px" /> - </a> - </li> - <li class="footer-banner__item"> - <a href="/xfn.html">Liens</a> - </li> - <li class="footer-banner__item"> - <a href="/biscuits.html">Site sans biscuit</a> - </li> - <li class="footer-banner__item"> - qui ne drainera pas votre batterie - </li> - <li class="footer-banner__item"> - <a - href="https://creativecommons.org/licenses/by-sa/2.5/ca/deed.fr" - rel="external license" - title="Licence Creative Commons: Partage dans les mêmes conditions 2.5 Canada. Lien externe">CC BY-SA 2.5 CA</a> - </li> - <li class="footer-banner__item"> - @&nbsp;<time><%= os.date('%Y') -%></time> - </li> - </ul> - </div> - </footer> + <%- footer -%> </div> </body> </html>