getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.61k stars 448 forks source link

Directive "post-list" generates "[]" as text instead of no text when the search for a tag returns nothing #2400

Closed richieadler closed 8 years ago

richieadler commented 8 years ago

If a post-list directive for a certain tag finds no posts or pages containing the tag, the directive prints "[]" instead of just no text.

For instance, check http://www.sindioses.org/cienciaorigenes/indiceac/lista.html#cb700. The section CB700 is generated by the following fragment:

.. _CB700:

* CB700: Biología del desarrollo

  .. post-list::
     :tags: CB700
     :sort: title
     :template: post_list_bullet.tmpl
     :all:

There's no posts nor pages with metadata .. tags: CB700.

This is on Nikola v7.7.8 (Windows 7, Python 3.4.3)

Kwpolska commented 8 years ago

Fixed in v7.7.11, please upgrade.