GitHub pages look different locally #22249
-
Hi there, I managed to get GitHub pages working locally with Jekyll. The last missing peace is that the theme (dinky) is only applied partially. GitHub pages: Locally:
Any help is much appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @ukoehler! From what I can see from your repository it looks like the theme is applying correctly. You’ve made some modifications to the default HTML template that has changed the As for the button issue, it looks like this is because of this section of the template: github.comukoehler/ukoehler.github.io/blob/32167eacbd48333d91ced6ede5c42051172419f4/_layouts/default.html#L21-L29
It’s likely that your local project is mistakenly being seen as a GitHub Project page, but it’s actually a User page on GitHub. This is then triggering the wrong template section to be included in your local environment. If you specifically want one over the other then I’d recommend further modifying your template to only keep the specific HTML from inside the if statement you want to use. |
Beta Was this translation helpful? Give feedback.
-
Hi @ thomasshaped, many thanks for your reply. The screen shot is actually from the GitHub page not the local one. I did indeed change the template from h1 to h2 and found the dark color. That is why I wanted to try it locally for faster turnover. With your help I managed to adapt the local version to behave correctly. Many thanks for your help! Uwe |
Beta Was this translation helpful? Give feedback.
Hi @ukoehler! From what I can see from your repository it looks like the theme is applying correctly. You’ve made some modifications to the default HTML template that has changed the
h1
to anh2
resulting in the dark text color.As for the button issue, it looks like this is because of this section of the template:
github.comukoehler/ukoehler.github.io/blob/32167eacbd48333d91ced6ede5c42051172419f4/_layouts/default.html#L21-L29