Support Forums

Unable to Build Hugo File From Github

I created a new site by linking my github repository

But my site is not loading ( white page).

I have already added the index.html

Please help.

The site was created through wordpress to hugo plugin recommended by hugo at their official site.

Also, I already have this site ( functioning on netlify, with custom domain) built through drag-drop feature.

However, I would like to try hugo ( as it is fast).

Deploy log is as follows

11:37:14 AM: Build ready to start
11:37:16 AM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
11:37:16 AM: build-image tag: v3.7.6
11:37:16 AM: buildbot version: 023721623c5855032464c288dddd2ca7576c4b2f
11:37:17 AM: Fetching cached dependencies
11:37:17 AM: Failed to fetch cache, continuing with build
11:37:17 AM: Starting to prepare the repo for build
11:37:17 AM: No cached dependencies found. Cloning fresh repo
11:37:17 AM: git clone https://github.com/bharatsharma08/gha
11:37:23 AM: Preparing Git Reference refs/heads/main
11:37:24 AM: Parsing package.json dependencies
11:37:25 AM: No build steps found, continuing to publishing
11:37:25 AM: Starting to deploy site from '/'
11:37:25 AM: Creating deploy tree asynchronously
11:37:25 AM: Creating deploy upload records
11:37:26 AM: Starting post processing
11:37:26 AM: Post processing - HTML
11:37:26 AM: Post processing - header rules
11:37:26 AM: Post processing - redirect rules
11:37:26 AM: Post processing done
11:37:26 AM: Site is live ✨
11:37:27 AM: 0 new files to upload
11:37:27 AM: 0 new functions to upload
11:37:42 AM: Finished processing build request in 25.251947455s```

It’s because, your index.html has no content:


Change your Publish directory to hugo-export:

It still won’t work because even that index.html is blank. You need some content there.

I copied index.html from previou build ( drag and drop), and home page is now working.
However, internal pages, posts, and all other links are still 404.
Does that mean I will have to create index.html for all pages?

Or, if there is a work around ?

You’ll have to recreate the entire website properly for it to work fine.

Yeah. It looks like will have to dive deep.