apvarun / showfolio-hugo-theme

Modern portfolio theme for your Hugo site
https://showfolio.vercel.app/
MIT License
102 stars 41 forks source link

CSS not loading when built on Netlify #4

Closed OliverStenning closed 2 years ago

OliverStenning commented 3 years ago

When running a server locally the link to the CSS is generated correctly, however, when built on Netlify the link to the CSS includes the baseURL string. E.g: Running local server: localhost:1313/css/styles.css

Built on Netlify: example.com/example.com/css/styles.css

The workaround I am currently using is to set the baseURL to "/" which fixes it but doesn't address the issue.

apvarun commented 3 years ago

Hey @OliverStenning

Can you set the baseURL value to the domain of your netlify website? That should solve this issue ex: my-website.netlify.app

OliverStenning commented 3 years ago

I've changed the baseURL to my-website.netlify.app and then when I look at the html of the website the link to the CSS is: https://my-website.netlify.app/my-website.netlify.app/css/styles.css

apvarun commented 3 years ago

I think this can be solved by adding "https://" at the start

riseekrthakur commented 3 years ago

I have trouble locally getting errors and I have no idea how to resolve it. the error says failed to transform "css/styles.css" tried unsuccessful attempts but no luck.

apvarun commented 3 years ago

@riseekrthakur Can you try following the instructions here? → #1

apvarun commented 2 years ago

Closing due to inactivity