How can I access the host and port that jekyll serve
runs the site on from inside a jekyll plugin or so, to load my assets with absolute links from the right place?
When I run jekyll serve --host example.local --port 1234
I want to change the url
var (set to example.com in _config.yml) to the given host and port so that I can use {{ site.url }}/css/site.css
without getting my production assets. Also it would be nice to get the default localhost:4000
when nothing else is specified.