commit 7c3a87ad182708ba4b6382bb51dc3c0cf4d52d85 parent 4f86cd688004b1a4bdaa8f3217de4ba15f279944 Author: Hugo Soucy <hugo@soucy.cc> Date: Sun, 25 Apr 2021 20:52:20 -0400 Extract the footer outside the layout Diffstat:
A | templates/footer.html | | | 5 | +++++ |
M | templates/layout.html | | | 6 | +----- |
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/templates/footer.html b/templates/footer.html @@ -0,0 +1,5 @@ +<footer class="footer-banner"> + <div> + <time>@ <%= os.date('%Y') -%></time> + </div> +</footer> diff --git a/templates/layout.html b/templates/layout.html @@ -10,10 +10,6 @@ <%- post %> </main> - <footer class="footer-banner"> - <div> - <time><%= os.date('%Y') -%></time> - </div> - </footer> + <%- footer %> </body> </html>