hawkins
hawkins copied to clipboard
{{site.url}} returns the actual site url instead of localhost:4000
Whenever I'm working on my Jekyll site with livereload, any links using {{site.url}}/page
go to mydomain.com
instead of localhost:4000
, so whenever I click on a link in my site it redirects to the production domain instead of development.
The jekyll docs say that:
site.url: Contains the url of your site as it is configured in the _config.yml. For example, if you have url: http://mysite.com in your configuration file, then it will be accessible in Liquid as site.url. For the development environment there is an exception, if you are running jekyll serve in a development environment site.url will be set to the value of host, port, and SSL-related options. This defaults to url: http://localhost:4000.
Can this be fixed? Thanks.
I am also having this issue, although it wasn't a problem before. Jekyll 3.6.2 and hawkins 2.0.5. Had a quick look through the source code for hawkins but I'm not particularly talented at ruby :)