2 ms·
FWIW, I achieved something like live reloading in Jekyll using an additional config file. _config_local.yml: html_refresh: true html_refresh_rate: 5
by woodruffw 8y ago
FWIW, I achieved something like live reloading in Jekyll using an additional config file.
_config_local.yml:
html_refresh: true
html_refresh_rate: 5
Then, I appended the config via:
jekyll serve --config _config.yml,_config_local.yml --force-polling
And then did a check in my header include:
{% if site.html_refresh %}
<meta http-equiv="refresh" content="{{ site.html_refresh_rate }}">
{% endif %}
You can find a working example in my blog's repo[1].
[1]: https://github.com/woodruffw/blog https://github.com/woodruffw/blog