-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Match output paths with content paths #2673
Comments
If you remove the settings file changes mentioned above and instead add the following…
… does that result in the output you expect? |
@justinmayer yes, looks like it works with just this: PATH_METADATA= '(?P<path_no_ext>.*)\..*'
ARTICLE_SAVE_AS = '{path_no_ext}.html'
ARTICLE_URL = '{path_no_ext}.html' |
@cup: Yes, but the |
Duplicate of #686. Since the answer should be more visible, I documented the aforementioned solution via b8f2326. @cup: Rather than submitting a flurry of short-lived issues as questions arise, which results in extra noise for maintainers, in the future please consider reaching out via the Pelican IRC channel, as noted in the How to Get Help section of the documentation. Thanks! |
@justinmayer I came up with this one - removes extra part from the URL: PATH_METADATA = '(?P<dirname>.*)/(?P<basename>.*)\..*'
ARTICLE_SAVE_AS = '{dirname}/{basename}.html'
ARTICLE_URL = '{dirname}' |
I have this setup:
and I expect this result:
However I am not sure how to make that happen. First I set this:
and I get this result:
So I change to this setup:
and get this result:
so then I try this:
and get this result:
How can I get Pelican to stop trying to be smart, and just replicate the paths
as I have them?
The text was updated successfully, but these errors were encountered: