hexojs / hexo-generator-feed

Feed generator for Hexo.
http://hexo.io
MIT License
576 stars 105 forks source link

Option to disable feed generation when using hexo server #140

Closed Buzut closed 4 years ago

Buzut commented 4 years ago

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).

tomap commented 4 years ago

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 :)

Buzut commented 4 years ago

That's sooo neat. Thank you very much 👍