page.md included in empty entries:listing

Hi!

In my _content folder I have another folder "concerts" that contains a few entries (2015-01-01-foo.md, ...), a page.md and a fields.yaml.

Here is what I have in my theme's "concerts" template:

<ul>
    {{ entries:listing show_future="true" show_past="false" }}
      <li> {{date format="l j F Y"}} {{title}} </li>
    {{ /entries:listing }}
</ul>

If there are entries that match the condition it works well but if there are none it displays the data from the page.md instead. So instead of an empty list I get one element with {{title}} replaced by the title in page.md so "Concerts".

Is this expected behavior?

Thank you!

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
5 Replies
3 Followers