jekyll-postfiles
jekyll-postfiles copied to clipboard
jekyll-postfiles generated asset link will be broken after restart jekyll server
I host my Jekyll locally with "bundle exec jekyll server", as a local LAN team blog. jekyll-postfiles works fine, I made modifications, add new files... when jekyll server is running but if I stopped the "jekyll server", then restart it again every url link to those asset files are messed.
it seems when jekyll server restarts, it won't invoke jekyll-postfiles to correct those asset link again.
I‘ve accidentally found a workaround solution. 😄
Run jekyll server with "incremental" option instead:
bundle exec jekyll server --host=0.0.0.0 --incremental
So even I restart the server, it won't rebuild the unmodified content, so it WON'T break the asset link url that has been tweaked by jekyll-postfile before restarting server.
I would not call this a solution, but it's good to know, it might help find a proper solution. Thanks!
so this issue should be fixed by Jekyll itself, right? 😕 Because when restarting server, it seems to regenerate all _site html files without invoking jekyll-postfiles plugin first.
could you clarify what you mean by "messed"? are the links incorrect?