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

How can I remove the /posts/ part in my URL while keeping the posts folder? #265

Open
rob-weiss opened this issue Dec 6, 2016 · 0 comments

Comments

@rob-weiss
Copy link

I want to keep my raw posts, that is the files containing the mere content and simple markup, in the postsfolder, in order to separate them from the other pages. At the same time, I would like to have a URLs like

my-domain/post1/

instead of

my-domain/posts/post1/

How can I achieve that?

I use "prettify": true.

I understand that by changing posts in the following line in blog.py

Global["config"]["path"] = "posts"

to

Global["config"]["path"] = "new-posts"

and changing the name of the posts folder to new-posts I would get something like

my-domain/new-posts/post1/

like explained in #152. But that does not solve my problem.

@rob-weiss rob-weiss changed the title How can I remove the posts folder? How can I remove the /posts/ part in my URL while keeping the posts folder? Dec 6, 2016
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