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

View file

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