-
Hello GitHub community, I’m having trouble publishing a site using GitHub pages and none of the forum articles seemed to provide a solution, so far. I’m a beginner, so my apologies, if this is a duplicate. The source for my page is the gh-pages branch of my repository:
I have changed the settings to use the gh-pages branch to build the site (-> Your site is published at https://nicoleeic.github.io/Brain_and_Code/) However, when I navigate to the URL shown above, I can only access the ‘home’ site, which looks like something was wrong with the layout. Also, the link to the individual posts gives me a 404 error. I suspect that the problem has something to do with the theme and layout. I’m using the ‘minima’ theme, so I have the following line in my Gemfile:
and in my _config.yml file:
I don’t have a _layouts subfolder, because I understood that this is not needed, when I use the default themes. The local build of the page on my computer works fine:
Any comments on what I might be doing wrong would be greatly appreciated! Thanks, Nicole |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Seems to be working fine for me. |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into this! Actually, with the help of alvinsight I found the problem, which were relative URLs. The ‘baseurl’ in the _config.yml file was not defined. I have changed it to:
and updated all relative paths to images, etc. and everything looks fine now. |
Beta Was this translation helpful? Give feedback.
Thanks for looking into this!
Actually, with the help of alvinsight I found the problem, which were relative URLs.
The ‘baseurl’ in the _config.yml file was not defined.
I have changed it to:
and updated all relative paths to images, etc. and everything looks fine now.