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] Incorrect behavior when pages have different extensions #337

Open
uyar opened this issue May 15, 2020 · 0 comments
Open

Comments

@uyar
Copy link

uyar commented May 15, 2020

In the example given for this extension, change the extensions of the files for the /about/team/ page to html:

about/team.html
about/team.de.html

Now when you run nikola build you get the following URLs in the German section:

/de/ueber/
/de/ueber/firma/
/de/ueber/team/
/de/ueber/team/nikola-tesla/
/de/ueber/team/roberto-alsina/

I've checked the code of the plugin to find out why and how to solve it but I couldn't be confident enough to implement a change. I think this comes from the way the globs are generated. I mean, during scanning the about/team/nikola-tesla.rst is encountered before about/team.html (because rst comes before html in conf.py) and sets an incorrect slug for about/team. Maybe scanning level-by-level first would solve the issue.

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

1 participant