hexojs / hexo-generator-feed

Feed generator for Hexo.

Home Page:http://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to disable feed generation when using hexo server

Buzut opened this issue · comments

commented

As when using Hexo server we often look for speed over everything, it could be a really nice option to be able to disable the feed generation when using the local webserver (watch mode).

You should be able to do that with the hexo command line:

Your current command:

hexo s -o

Your new command:

hexo --config _config.yml,_local.yml s -o

See https://hexo.io/docs/commands.html#Customize-config-file-path

And the content of _local.yml:

feed:
  enable: false

This would disable the feed plugin only locally 👍

Except there is currently no "enable/disable" option. I'll code it and make a MR ASAP :)

commented

That's sooo neat. Thank you very much 👍