1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests/output
Elana Hashman 22bc56ddf1 Fixes #1068, #1572: template page navigation bugs
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.
2015-06-21 13:24:49 -06:00
..
basic Load external resources via HTTPS when available 2015-06-02 08:35:12 -07:00
custom Fixes #1068, #1572: template page navigation bugs 2015-06-21 13:24:49 -06:00
custom_locale Fixes #1068, #1572: template page navigation bugs 2015-06-21 13:24:49 -06:00