Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft pages break build #21

Open
danny-andrews opened this issue Jan 18, 2019 · 2 comments
Open

Draft pages break build #21

danny-andrews opened this issue Jan 18, 2019 · 2 comments

Comments

@danny-andrews
Copy link

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
Copy link
Author

danny-andrews commented Jan 18, 2019

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

@peng1999
Copy link
Contributor

peng1999 commented Feb 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants