Chris Brennan
Chris Brennan

Reputation: 191

Baseurl not applying to jekyll posts.

All pages are working correctly with baseurl except my posts.

What I'm getting url https://pizzapgh.github.io/general/2016/08/29/example-post-three/

What I need isntead, "/katietest" before general https://pizzapgh.github.io/katietest/general/2016/08/29/example-post-three/

In my config I have: baseurl: /katietest
url "http://pizzapgh.github.io"

Repo https://github.com/pizzapgh/katietest

Suggestions? I've worked with this before and all I had to do was set the baseurl. I can't seem find out what it is that's not making my post not show.

Thanks.

Upvotes: 2

Views: 255

Answers (1)

David Jacquel
David Jacquel

Reputation: 52829

In _includes/post_list.hmtl you can replace two occurrences of :

<h5><a href="{{ page.url }}"...

by

<h5><a href="{{ site.baseurl }}{{ page.url }}"...

And you can do the same in _includes/post_list.hmtl.

Upvotes: 3

Related Questions