1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests
Mario Lang cff9d0aa58 Fix stray </ol> and </section> if only one article is displayed.
We already check if loop.length > 1 before outputting <section> and <ol>
tags, but we neglected to do the same check when outputting the corresponding
end tags.

Also, since I had to read the code when I touched it, simplified a conditional:
if (a) if (a and (b or not b and c))
can be simplified to
if (a) if (b or c)

Note the "b or not b", it was just too ugly to not fix.
2014-02-15 13:21:06 +01:00
..
content multiple authors implemented 2014-02-14 03:21:06 +01:00
output Fix stray </ol> and </section> if only one article is displayed. 2014-02-15 13:21:06 +01:00
TestPages Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
__init__.py Fix for issue #392 2013-03-27 18:17:11 -04:00
default_conf.py added testing for default locale setting 2013-07-21 14:12:21 +08:00
support.py tests.support: Use kwargs overrides in get_settings() 2013-06-02 14:24:27 -04:00
test_contents.py multiple authors implemented 2014-02-14 03:21:06 +01:00
test_generators.py multiple authors implemented 2014-02-14 03:21:06 +01:00
test_importer.py multiple authors implemented 2014-02-14 03:21:06 +01:00
test_pelican.py multiple authors implemented 2014-02-14 03:21:06 +01:00
test_readers.py multiple authors implemented 2014-02-14 03:21:06 +01:00
test_settings.py added testing for default locale setting 2013-07-21 14:12:21 +08:00
test_utils.py Merge pull request #1183 from Rogdham/pelican-fixcopy 2014-02-05 08:19:34 -08:00