Mitrichius / hugo-theme-anubis

Anubis is a simple minimalist theme for Hugo blog engine
https://hugo-theme-anubis.netlify.app/
MIT License
397 stars 152 forks source link

Using baseURL breaks down website in production #174

Closed eviscerat closed 1 year ago

eviscerat commented 1 year ago

I host my blog on aws s3. I had to comment baseURL in config.toml because the js and css paths would be broken in production. The paths would be generated like this if I leave baseURL: <a class="u-url" href="https://example.com/posts/post/">

Without base URL the paths are generated in a relative way - THIS is working: <a class="u-url" href="/posts/post/">

Please come with a more robust solution

W0CHP commented 1 year ago

Please come with a more robust solution

LMFAO demanding! Submit a bloody PR!

eviscerat commented 1 year ago

Please come with a more robust solution

LMFAO demanding! Submit a bloody PR!

Submit deez nuts

Mitrichius commented 1 year ago

@eviscerat Can you show an example of this behaviour?
And what's the main problem - links to JS and CSS / links to posts / all of them?

eviscerat commented 1 year ago

Ok, just re-tested this on a fresh copy of your repo using the exampleWebsite provided, re-uploaded to s3, no changes to config, the website renders paths correctly. My apologies for wasting your time, I ll close this issue, whatever issue it is, it is from my changes.