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

[hierarchical_pages] nikola new_page doesn't work with hierarchical pages #350

Closed
danshapero opened this issue Sep 10, 2020 · 3 comments · Fixed by #351
Closed

[hierarchical_pages] nikola new_page doesn't work with hierarchical pages #350

danshapero opened this issue Sep 10, 2020 · 3 comments · Fixed by #351

Comments

@danshapero
Copy link
Contributor

I'm using the suggested configuration for the hierarchical pages plugin, where PAGES = () and instead that configuration is moved into a HIERARCHICAL_PAGES variable. When I try to run nikola new_page, I get the following error message:

[2020-09-09T20:51:24Z] ERROR: new_page: Can't find a way, using your configuration, to create a page in format rest. You may want to tweak COMPILERS or PAGES in conf.py

I'm guessing this is because I've removed everything from PAGES, but when I restore to what it was before I get a bunch of errors because it collides with HIERARCHICAL_PAGES. I can always make a new page with the right metadata by hand, but it's more convenient to have the command for it.

@ralsina
Copy link
Member

ralsina commented Sep 10, 2020 via email

@ralsina
Copy link
Member

ralsina commented Sep 10, 2020 via email

@felixfontein
Copy link
Contributor

@ralsina it not only allows to change the filename depending on the language, but also the path leading to that file.

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

Successfully merging a pull request may close this issue.

3 participants