This fixes #3.
Zola already skips draft pages by default, and includes then when the --drafts flag is set.
This PR also fixes that the DRAFTS label only appeared when a date is set. It was also missing from the posts list so I added it inside the pages_list macro.
This fixes #3. Zola already skips draft pages by default, and includes then when the
--drafts
flag is set.This PR also fixes that the DRAFTS label only appeared when a date is set. It was also missing from the posts list so I added it inside the pages_list macro.
I also added a missing {% if page.date %} check.