forked from github/pelican
Updates the template logic for when page navigation is included in the generated HTML in the notmyidea theme, fixing: * Issue #1068: useless pagination controls should not be displayed when a single page is generated (i.e. "Page 1/1"). New logic prevents the generation of these superfluous page navigation controls. Tests updated accordingly. * Issue #1572: when multiple pages are generated and the last page contains only one item, the closing </ol> and </section> tags are not generated, resulting in page breakage. We need to check if articles_page.has_other_pages(); if it does, a list has been generated per line 19 or 25 and the tags must be closed. |
||
|---|---|---|
| .. | ||
| analytics.html | ||
| archives.html | ||
| article.html | ||
| article_infos.html | ||
| author.html | ||
| authors.html | ||
| base.html | ||
| category.html | ||
| comments.html | ||
| disqus_script.html | ||
| github.html | ||
| index.html | ||
| page.html | ||
| period_archives.html | ||
| tag.html | ||
| taglist.html | ||
| tags.html | ||
| translations.html | ||
| twitter.html | ||