jekyll / jekyll-admin

A Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites.
https://jekyll.github.io/jekyll-admin/
MIT License
2.82k stars 357 forks source link

Process site only if not in `watch` mode #700

Closed rpeyron closed 1 year ago

rpeyron commented 1 year ago

Fix mentioned in #699

Will avoid duplicate site processing: either we are in watch mode and jekyll-admin do not need to trigger site.process, or we are not in watch mode and jekyll-admin will trigger site.process

Note that it does not work when using --livereload --no-watch options simultaneously, which has little interest, as livereload option will force config{"watch"]=1.

Closes #699

ashmaroli commented 1 year ago

Thank you for submitting this pull request, @rpeyron.

Leaving a few points as feedback:

rpeyron commented 1 year ago

Hello @ashmaroli ; thanks for your feedback

ashmaroli commented 1 year ago

Thank you @rpeyron