digitalcraftsman / hugo-cactus-theme

Port of Nick Balestra's Cactus theme to Hugo.
MIT License
198 stars 111 forks source link

Make easier to develop with ngrok #55

Closed leighmcculloch closed 6 years ago

leighmcculloch commented 6 years ago

What

Replace uses of absURL with relURL.

Why

absURL inserts an absolute URL in the form of http://localhost:1313/path/to/style.css which makes it impossible to develop on a non-localhost hostname. For example if I'm using ngrok to serve my localhost to a domain like https://8863fbca4.grok.io/ resources linked with absURL will still incorrectly reference localhost. Using relURL removes the hostname from the links. Relative links generally make it easier to work with a website during development.