My Blog Posts Don't Show Up When Link is Clicked

Hello! I’m new in Netlify, so I wanted to try out a static site generator that I could use as a blog. I used Hugo and tested a template, which worked well on a local server. I hosted it on Netlify, and it built properly. It’s currently hosted at https://elastic-clarke-4d4e20.netlify.app/.

My problem is that for some reason, the links don’t load? When you click a link to a blog post, the About part, or any other link, it’ll go to a blank page. The links work in the local server so I’m not sure what’s wrong. Can anyone help? Thank you!

Your assets are loaded with a relative path and only work at the root at your site:

<link rel="stylesheet" href="plugins/bootstrap/bootstrap.min.css ">

Try switching to an absolute path like so (notice the slash before plugins):

<link rel="stylesheet" href="/plugins/bootstrap/bootstrap.min.css ">
1 Like

It works! Thank you so much :grin:

1 Like