Added footer

This commit is contained in:
Fabio Manganiello 2022-01-14 01:24:28 +01:00
parent 3fd85c5c0b
commit 045fa3995c
6 changed files with 63 additions and 28 deletions

View file

@ -1,3 +1,7 @@
# 0.1.7
- Added footer to pages.
# 0.1.6 # 0.1.6
- Support for `/rss?short` URL for short articles description on the RSS feed. - Support for `/rss?short` URL for short articles description on the RSS feed.

View file

@ -1,5 +1,6 @@
html { html {
height: 100%; height: -webkit-fill-available;
height: -moz-available;
font-size: 20px; font-size: 20px;
font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif; font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
font-weight: 400; font-weight: 400;
@ -8,8 +9,10 @@ html {
body { body {
margin: 0; margin: 0;
width: 100%; height: 100vh;
height: 100%; /* mobile viewport bug fix */
min-height: -webkit-fill-available;
min-height: -moz-available;
} }
a, a:visited { a, a:visited {
@ -105,3 +108,13 @@ h2 {
line-height: 1.1em; line-height: 1.1em;
} }
footer {
width: 100%;
font-size: .65em;
color: rgba(0, 0, 0, .4);
letter-spacing: .02em;
margin-top: .5em;
padding-top: .25em;
text-align: center;
box-shadow: 1px -2px 2px 0 #bbb;
}

View file

@ -2,6 +2,15 @@ main {
padding: 0; padding: 0;
} }
.index {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
}
.articles { .articles {
width: 100%; width: 100%;
height: 100%; height: 100%;

View file

@ -38,6 +38,8 @@
{{ content | safe }} {{ content | safe }}
</div> </div>
</div> </div>
{% include 'footer.html' %}
</main> </main>
{% include 'common-tail.html' %} {% include 'common-tail.html' %}

View file

@ -0,0 +1,3 @@
<footer>
Powered by <a href="https://github.com/BlackLight/madblog" target="_blank">madblog</a>
</footer>

View file

@ -3,6 +3,7 @@
{% endwith %} {% endwith %}
<main> <main>
<div class="index">
<div class="articles"> <div class="articles">
{% for page in pages %} {% for page in pages %}
<a class="article" href="{{ page['uri'] }}"> <a class="article" href="{{ page['uri'] }}">
@ -32,6 +33,9 @@
</a> </a>
{% endfor %} {% endfor %}
</div> </div>
</div>
{% include 'footer.html' %}
</main> </main>
{% include 'common-tail.html' %} {% include 'common-tail.html' %}