Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

Page not showing the theme

Solved! Go to Solution.
Hi all, my page at http://big616.github.io isn't showing my theme. I read all the documentation, and couldn't find why. Already spend a day looking and now i'm calling for helpppp. I went thru the the set up, but can't seem to pin point my problem. I replaced my readme file tinkering around... Also any suggestions on my site that would help me land a dev job would be great! I applied yesterday and they should be checking it out next week or so.
2 Replies
Copilot Lvl 2
Message 2 of 3

Re: Page not showing the theme

I should apologize for the noob question first i guess, but please, anyone care to help?
Highlighted
Solution
Pilot Lvl 2
Message 3 of 3

Re: Page not showing the theme

Hi @big616!

 

No need to apologize for the "noob question", we've all been there at some point.

 

The reason you're not seeing your theme show up is because of the way that Jekyll handles HTML files. Since you're trying to get your theme to apply to your `index.html` file, you'll need to tell Jekyll explicitly what theme to use for your HTML file.

 

To do this, delete everything from your HTML file except what's between the `<body`> tags in your repository. Your theme will take care of the other HTML, so you just need to worry about the content of the page, which will always be in the `<body>` of your theme.

 

Once you've done that, at the very top of your `index.html` file, you'll need to add some Jekyll front matter to select the theme layout your page uses. Since you're using the GitHub Pages "Dinky" theme, you'll want to use the "default" layout.

 

 

---
layout: default
---

 

Once you've added the three lines above to the top of your HTML file, you can commit your changes and your Pages site should start building again. Once it's done being built, you should be all set. You may need to clear your browser's cache to see the changes, but your site should now have a theme applied to it.

 

Let me know if you have any additional questions!