even icon indicating copy to clipboard operation
even copied to clipboard

Draft pages break build

Open danny-andrews opened this issue 6 years ago • 2 comments
trafficstars

I have a few pages with draft = true in their front matter, and it breaks in templates/index.html with the following error:

Error: Failed to render page '/../my-blog/content/my-draft-article.md'
Reason: Failed to render 'even/templates/page.html'
Reason: `get_taxonomy_url`: couldn't find `TIL` in `tags` taxonomy

Not sure if this is an error in the get_taxonomy_url helper method or in this theme, but it looks like tags on pages in draft state, do not get added to the global taxonomies object.

danny-andrews avatar Jan 18 '19 20:01 danny-andrews

For anyone else experiencing this issue, a workaround is to remove draft = true from the front matter of all your articles.

danny-andrews avatar Jan 18 '19 20:01 danny-andrews

Rrelated issue: getzola/zola#319 Something like {% if not page.draft ... should fix this.

peng1999 avatar Feb 04 '19 02:02 peng1999