Skip to content

Commit

Permalink
Merge pull request #10 from Chemaclass/feature/footer-page
Browse files Browse the repository at this point in the history
Add footer to the base template
  • Loading branch information
bennetthardwick committed Jun 20, 2021
2 parents 358500e + d5888c3 commit 04c4fd8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ footer_about = """
A simple dev-blog theme created by Bennett. You can follow him on [Github](https://github.com/bennetthardwick) (if you like).
"""

footer_page = """
© 2021, all rights reserved
"""

not_found_message = """
This is not the page you're looking for... return back to [safety?](/)
"""
6 changes: 6 additions & 0 deletions sass/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,9 @@ template {
[hidden] {
display: none;
}

footer.footer-page {
margin-top: 28px;
text-align: center;
font-size: 0.8em;
}
7 changes: 7 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,12 @@
<main>
{% block content %} {% endblock content %}
</main>
<footer class="footer-page">
{% block footer %}
{% if config.extra.footer_page %}
{{ config.extra.footer_page | markdown | safe }}
{% endif %}
{% endblock footer %}
</footer>
</body>
</html>

0 comments on commit 04c4fd8

Please sign in to comment.