apparently pagination shouldn't be <nav>

This commit is contained in:
Peter Molnar 2019-06-20 08:22:53 +01:00
parent 3937bbef29
commit aea27405db
2 changed files with 17 additions and 6 deletions

View file

@ -12,7 +12,7 @@
{% block pagination %} {% block pagination %}
{% if category.paginated %} {% if category.paginated %}
<nav class="pagination"> <section id="pagination">
<ol> <ol>
{% for y, url in category.years.items() %} {% for y, url in category.years.items() %}
{% if (y == category.year) or (not category.year and loop.first) %} {% if (y == category.year) or (not category.year and loop.first) %}
@ -30,7 +30,7 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ol> </ol>
</nav> </section>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View file

@ -8,6 +8,10 @@
line-height: 1.5em; line-height: 1.5em;
} }
article, aside, footer, header, nav, section {
display:block;
}
body { body {
color: #eee; color: #eee;
background-color: #222; background-color: #222;
@ -262,15 +266,18 @@ li p {
border-bottom-style: solid; border-bottom-style: solid;
} }
#header {
padding: 0.6em 1em;
}
#header, #header,
#footer { #footer {
background-color: #111; background-color: #111;
padding: 0.6em 1em;
} }
#footer { #footer {
text-align: center; text-align: center;
padding: 1em;
} }
#header > *, #header > *,
@ -279,6 +286,10 @@ li p {
margin: 0 auto; margin: 0 auto;
} }
.tip {
margin: 1em 0 0 0;
}
#pagination, #pagination,
#main { #main {
margin:0 auto; margin:0 auto;