-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When hosting on github the theme is not rendered correctly. #89
Comments
I see you had |
I can't try on github right now I promise I will do tomorrow and let you know. But the local index.html file that is generated in the public folder gives again the same undesired result. I tried both |
I just updated both files. I added the baseUrl as you mentioned: https://github.com/MariosKaramanis/marioskaramanis-blog/blob/main/config.yml Then I built the project with hugo -t PaperMod, and then I updated the files of the website repository Again it does not work :( |
You see all the codes. How is it possible that it does not work ? I followed exactly the instructions. I am not complaining. I just asked a question. If you don't know the answer it is totally fine. Btw I just posted a question on stackoverflow: https://stackoverflow.com/questions/65040931/hugo-site-renders-locally-but-not-on-github |
@MariosKaramanis You should look at what the error is, instead asking me to find out the error ! Have you seen the error in your browser dev tools ? console..!? ig not DEMO is itself hosted on github pages ! |
Please check the errors in the update section of my question: |
This is what papermod uses by default
hugo-PaperMod/layouts/partials/head.html Lines 23 to 26 in ad11fe1
your resource file conflicts with generated hash by hugo, thus browser denies loading it as per the rule ! what you can do is rm your whole gh pages repo and rebuild it/ re deploy it ! |
if I replace Because I just replaced manually from every index.html file with removing and redeploy does not make sense since I have done it at least 5 times so far. Like I said, removing the integrity part worked. Could you please confirm that? |
I confirm my last comment. It worked ! Thanks for all your help! |
in site config => params: assets: disableFingerprinting: true
Hey @MariosKaramanis, |
Thanks, I am sure this will benefit some future readers. Thanks for the theme and for your help. |
This bug still exists. |
Yes this is still an issue. If you do this fix before sure to clear your cache. lxndrblz/anatole#114 (comment) |
issue still exists but removing setting integrity="" works |
in site config => params: assets: disableFingerprinting: true
Holy cow 2023 and it's still a prevailing issue. |
I have the following code:
https://github.com/MariosKaramanis?tab=repositories
Here you can see the two repositories I am using.
marioskaramanis.github.io contains the public contents after running
hugo -t PaperMod
and marioskaramanis-blog contains the files I used to build the hugo website.
When I run the code locally using
hugo server
I am getting the desired format: https://prnt.sc/vqxj5jbut when I host it in github, I am getting this: https://marioskaramanis.github.io/
I checked my yaml file and there is a correct mapping between the baseUrl and the host url.
It seems that it does not find the css correctly or I am missing some configurations. Could you please help me out?
Thanks a lot!
The text was updated successfully, but these errors were encountered: