user1371254
user1371254

Reputation: 91

How can I change the blog post URL of a Jekyll website?

I'm using Jekyll to create a blog/website. I have it setup so that it displays the URLs like this:

http://example.com/blog/title-of-post

I want to modify it to change the the "blog" part of the URL. For example:

http://example.com/writing/title-of-post

How can I do this?

Upvotes: 9

Views: 3293

Answers (1)

Alan W. Smith
Alan W. Smith

Reputation: 25425

You can do this by setting the permalink in your _config.yml file. For example:

permalink: /writing/:title

Note that this assumes that jekyll is building your entire site and isn't just powering the "blog" directory. If jekyll is only writing to your "blog" directory, then all you would need to do is rename that to "writing".

Upvotes: 13

Related Questions