jekyll / jekyll-archives

:books: Archive pages for your Jekyll tags and categories.
https://jekyll.github.io/jekyll-archives/
MIT License
436 stars 99 forks source link

turn off when serving ? #148

Closed maxandersen closed 4 years ago

maxandersen commented 4 years ago

archive generation takes quite some time for our site; without it ~1-2seconds with it 7-10seconds.

any way to have archive generation turned off when rendering in serve mode ?

ashmaroli commented 4 years ago

You can use a second config file to disable the plugin when you are serving. For example, in _config_dev.yml:

jekyll-archives:
  enabled: false

Then run:

bundle exec jekyll serve --config _config.yml,_config_dev.yml
maxandersen commented 4 years ago

that’s a nice trick - thanks!