Build error with netlify

I am try to upload my website folder on github and try to build with netlify buil eventually website is not build perfectly and not showing the things i add in index.html in themes folder also its not showing me a post i add ( i try to find error but didn’t know whats wrong , its totally work fine in local

In the build report on Netlify (the one that shows you all the logs and the hugo run info) either get the share link and post here or if it’s private then copy paste THE WHOLE UNCHANGED log for the last deployment, then click the cog-wheel in the editor icon bar when you click reply to my response, then click “Hide Details” and put the debugging info between those tags. Then we can see what’s going on at Netlify.

its not shows any error at the run time

this my local view of website

after deploy on netlify (

my github report for website (GitHub - p4r7h/

Click the button next to “Preview” and paste into this topic.

1 Like

netlify build log (netlify -

i notice on thing when i try to build it locally its show me that pages = 14
but when i deploy my site on netlify its shows me number of pages = 9

locall build

That debugging info has nothing about errors, so I am quite sure that you have draft: true in your frontmatter in probably all or most of your posts. Your local hugo server might be configured to create drafts, the LIVE environment (production) won’t create drafts. Remove the drafts-frontmatter and it might work.

If that does not work, then you will have to post your repository (not the link to the result) so we can see what is happening.

i already give a link of my repo ,!! unother how i can post my repositry and where i need to post that ?

also if we can igonre posts things then its still not working perfectly as per you see in prious result i put image of my website its looks broken totally

GitHub - p4r7h/ my repository of website

Screenshot from 2021-05-12 22-18-59

draft: true. Your information is like a blackbox. You say “this does not work” without giving enough information about “this”. Right now I am working on your production page not showing content. That is because of the draft setting of the post.

There are multiple issues with your site, but your original post talks about an empty page, not about images or styles not working.

Look in your config.toml: baseURL = "" – Do you own the domain or is it maybe, ehm, something along the lines of Check your netlify setup and give your testsite a nice domain name ( instead of then add that testing name to your config.toml and see what happens.

1 Like

No, he doesn’t own it. is a reserved domain and always has been.

This is why the app bundle and styles also cannot load, they don’t exist for one but even if they did the cors policy would prevent it.

"" is not eligible for integrity checks since it's neither CORS-enabled nor same-origin.

1 Like

That’s what I mean by multiple issues. I would remove the CSP rules and get the site working and then add successively more rules to see what’s happening.

1 Like

The only issue imho is that baseUrl is set to, it shouldn’t be. The csp warnings are a consequence of that. Removing the security headers would, in this case, not get the site working.

1 Like

modification :

  1. add custom domain
  2. make draft : false

but when i visit website looks like still site is broken

Works just fine of you go to domain you have specified as your baseUrl:

It won’t work if you go to the raw Netlify domain because the security headers prevent the loading of your styles and scripts from another domain ( because that is a violation of your sites Content Security Policy.

The CSP is set with Netlify custom headers, most likely in a netlify.toml file in your sites root directory. You could remove the CSP headers, but I’d advise aginst that; security is a good thing.

The solution is to go to the url that you have told Hugo is the url for your site (and asset bundles).

1 Like

So far i understand that i add image and social media links in statics html directly inside the themes folder that things not work in my live site ,

What is the better way to add custom things in html ?