Jekyll Blog Contact Page Permalink not Working

429 views Asked by At

I have my Jekyll blog set up here: My blog

I forked this blog theme from https://github.com/johnotander/pixyll

and created a github pages for it using the Master branch and changed the name of the repository to 'blog'.

My github.io repo is used for my personal site and uses the CNAME: edsonmendieta.com

So, my blog is at edsonmendieta.com/blog.

In my _config.yml: https://github.com/edsonmendieta/blog/blob/master/_config.yml

I've set the url to: 'http://edsonmendieta.com/blog/'

My blog theme, has a contact page which had 'permalink' set to /contact/, but after clicking it, the url path was edsonmendieta.com/contact, and I got a github 404.

I changed the permalink to blog/contact/ and now I still get a 404 but one that's themed by my blog theme.

I don't know why I'm getting a 404.

The 'baseurl' in my config.yml file is empty ("").

Should I change the 'baseurl' and 'url' in the _config.yml file?

Should I change the 'permalink' in the contact file?

Help is GREATLY appreciated, thank you.

2

There are 2 answers

3
Mauricio Gonzalez On

Just change the permalink on the contact page and it should work. You can even remove it, jekyll will take care of it for you.

0
David Jacquel On

In config, set :

url: http://edsonmendieta.com
baseurl: /blog

And it's supposed to work out of the box.