Hosting on github not applying the theme
Better-Boy opened this issue · 2 comments
Better-Boy commented
I have hosted the site on github, when I don't include the '_include' and '_layouts' not will show up, but when I include those 2 folders , everything appears distorted. Why is this happening?
My Git Repo - https://github.com/Better-Boy/Blog
My Site URL - https://better-boy.github.io/Blog/
Where am I going wrong?
mmistakes commented
You're not using the theme correctly. When hosting on GitHub Pages you need to install it as a "remote theme".
- In your
_config.yml
changetheme: jekyll-theme-so-simple
toremote_theme: "mmistakes/so-simple-theme"
- Set
url
andbaseurl
correctly in your_config.yml
so the paths are configured correctly and assets resolve properly:url: "https://better-boy.github.io" baseurl: "/Blog"
- Remove the folders and all files in
_layouts
and_includes
Better-Boy commented
Yes, it worked. Simple mistakes. Thanks for your time and effort.