Singlet0n
Singlet0n

Reputation: 11

Changing Jekyll site structure

In my site settings, I have the default

baseurl: ""

My site is a blog and my domain name already includes the word blog (blog.example.com), but when I add posts to my site they end up with the path /blog/yyyy-mm-dd/title-here.

How can I get them to be put in /yyyy-mm-dd/title-here instead (without the initial /blog path)?

I am using GitHub pages to serve my site, so I cannot use mod_rewrite.

Upvotes: 0

Views: 56

Answers (1)

Singlet0n
Singlet0n

Reputation: 11

The baseurlsetting is not relevant for this.

Adding permalink: :year/:month/:day/:title to _config.yml gives the desired permalink style.

Upvotes: 1

Related Questions