Skip to content

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

@rob-weiss

Description

@rob-weiss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions