When uploading a Hugo site to Github pages, the site looks like it's partially loaded with many of its content missing. What can be the reason for this?
One primary cause would be that the baseURL in your config file might be set wrong.
Set it to baseURL = "https://<your-username>.github.io/ if it is a user/organization page or baseURL = "https://<your-username>.github.io/<your-project-name> if it is a project page.
You can usually find the config file in the root of your Hugo project with the name config.toml
Related
I made my own page in github but it doesn’t open it's only showing 404 not found. All this for coursera HTML, CSS, Java Script course.
https://felixking554.github.io/coursera-test/site/
Here's my page
The default Jekyll configuration would generate a site in _site, not site.
Try and set in config.yml your destination : ./site, and see if the site/ folder would be now recognized as GitHub pages.
If not, try and follow the documentation, like this step by step tutorial.
I have a site hosted on GitHub Pages:
https://mcbridebr.github.io/mysite-hugo/
I have it setup to publish to pages from the docs/ directory in the master branch. When I run hugo it will publish to docs/.
I can bring up the home page just fine. But when I click on Blog it goes to 404. I have a blog post that is blank under content/post/. If I run this locally and access it with localhost:1313 the BLOG link works. I am not sure what is happening here, any advice would be greatly appreciated.
Source Repo: https://github.com/mcbridebr/mysite-hugo
I had to go back and add additional layout index.html files to accommodate for the blog section.
I created a static website using Hugo and I don't know how to host it on github. The documentation on their website didn't help me.
After finishing my website, I created the public folder which contains in theory all the files needed for the website (whith this command : hudo -t hyde-hyde). When I open index.html with chrome I only see the content of my website without the theme. Is it normal ?
Then I moved all the files within the public folder into my gihub repo username.github.io/ , but I can't see any result (I can only see my previous commit which is a simple Hello World).
How should I porceed to generate correctly my website and host it on github ? Thanks.
How to create with HUGO
If you have a problem while creating your site, check this tutorial.
How to Host HUGO website on GitHub (Pages)
Check this LINK where it shows you step by step all the procedures to host HUGO on GitHub, on both User/Organization Pages and on Project Pages.
Check list:
When I open index.html with chrome I only see the content of my website without the theme. Is it normal ?
I know it might seem a little too obvious, but check the spelling. Sometimes you spend hours trying to find the error and it's just a typo, this case in the theme you wanted to.
Have you tried another browser? It might not be the case, but checking it will get you out of doubt, also remember to delete the cache just in case.
Then I moved all the files within the public folder into my gihub repo username.github.io/ , but I can't see any result (I can only see my previous commit which is a simple Hello World).
Do you have a User/Organization Page (syntax: username.github.io) or a Project Page (syntax: username.github.io/project)?
UPDATE 1: Follow the instructions on this video for hosting on GitHub if unclear.
Could you add a link to your repo? Thanks.
I've just set up a new GitHub Pages page: https://philipnye.github.io/ainfo. I'm not using Jekyll.
My GitHub repo has a web folder that itself contains a number of sub-folders, e.g. web/2044. Within each is an html file, with a name such as Abbey-Academies-Trust.html.
I was expecting to be able to view the relevant page at https://philipnye.github.io/ainfo/web/2044/Abbey-Academies-trust.html, but I'm getting a 404 error.
In that particular folder - web/2044 - I've also created an index.html file, but I'm getting a 404 error for https://philipnye.github.io/ainfo/web/2044/index.html too.
I'm clearly missing something, but I can't see anything in the documentation that suggests why this isn't working.
For the first url, it's a caps problem on Trust : https://philipnye.github.io/ainfo/web/2044/Abbey-Academies-Trust.html.
For the second url everything is ok. The problem was certainly that you have near 2000 pages and that Github page took a while to generate your site.
I've deployed my blog to github pages. Index page works fine, but when I click on post page, it forces browser to download file instead of rendering post.
I want to use pretty urls so I've followed middleman docs.
I get this error 'Failed to load resource: frame loading interrupted'
In my config file I have:
activate :directory_indexes
set :relative_links, true
activate :blog do |blog|
blog.prefix = "blog"
blog.permalink = ":year/:month/:title"
end
It works fine locally though. Any idea?
ok so the issue was that files generated after build process were missing extension (html).
Since directory_indexes option is on, you should end up with directory/index.html, where directory's name is actually your blog post name.
To fix it, make sure you add the extension to permalink settings, just like that.
blog.permalink = "{year}/{month}/{title}.html"