Solved: Blog's post shows wrong url. #908
Closed
liuh886
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am using my domian and I leave empty
baseurl
in_config.yml
, which leads some problem after deploy to github.io.The post is accessible if I add site url in the front of the short url, which means jkyll works peoperly.
Solution:
Change
site.baseurl
intosite.url
in/blog/index.html
and_includes/header.html
If you get Blog post problem (not showing, or wrong url)
if using self defined domain, make
baseurl = ""
. Then can do the solution here. Here is another case.If using username.github.io, changed
baseurl
in_config.yml
to the name of the GitHub repository.Hope this discussion can help someone.
Beta Was this translation helpful? Give feedback.
All reactions