How to remove jekyll/update from your Jekyll website URL

 Using Jekyll to maintain your website documentation or blog is super easy. It’s very configurable making it powerful yet sometimes frustrating. If you’re new to Jekyll, you’ll may notice the initial post has jekyll/update in the URL. I’ve seen a lot of questions asking how to remove it. It’s super easy so let’s get to it.

Jekyll has a default configuration for your permalinks. In the default install, you don’t find it in your _config.yml file. As you can see from the config below, it has :categories followed by a date pattern :year/:month/:day/ and a filename pattern :title:output_ext.

It’s the :categories setting which is createing the jekyll/update in your post URL.

permalink: /:categories/:year/:month/:day/:title:output_ext

Edit your post and look at the front matter settings at the top. You may have already noticed the categories setting.

categories: jekyll update

Change those 2 categories to something else and presto, you’ve removed jekyll/update from your URL.

Alternatively, if you don’t want your page categories to ever show up in your URL you can change the permalink setting in the _config.yml.

permalink: /:year/:month/:day/:title:output_ext

For more information about Jekyll and Permlinks refer to the documentation.

Comments

Popular posts from this blog

Max Upload File Size in Spring Framework

Use Java Enums with JPA

Spring Security part 3 - OidcUser