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. |
||
|---|---|---|
| .. | ||
| content | ||
| mixed_content | ||
| nested_content/maindir | ||
| output | ||
| TestPages | ||
| __init__.py | ||
| default_conf.py | ||
| support.py | ||
| test_cache.py | ||
| test_contents.py | ||
| test_generators.py | ||
| test_importer.py | ||
| test_paginator.py | ||
| test_pelican.py | ||
| test_readers.py | ||
| test_rstdirectives.py | ||
| test_settings.py | ||
| test_utils.py | ||