1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests/output
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
..
basic Fix stray </ol> and </section> if only one article is displayed. 2014-02-15 13:21:06 +01:00
custom Fix stray </ol> and </section> if only one article is displayed. 2014-02-15 13:21:06 +01:00