jekyll-postfiles icon indicating copy to clipboard operation
jekyll-postfiles copied to clipboard

jekyll-postfiles generated asset link will be broken after restart jekyll server

Open phoenixwu opened this issue 5 years ago • 4 comments

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.

phoenixwu avatar Jun 14 '19 03:06 phoenixwu

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.

phoenixwu avatar Jun 14 '19 04:06 phoenixwu

I would not call this a solution, but it's good to know, it might help find a proper solution. Thanks!

nhoizey avatar Jun 14 '19 08:06 nhoizey

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.

phoenixwu avatar Jun 14 '19 15:06 phoenixwu

could you clarify what you mean by "messed"? are the links incorrect?

mohkale avatar Jan 03 '20 16:01 mohkale