I\'m using Jekyll 3.1.1 to generate a blog and I recently introduced a Git hook to automatically publish changes pre-push.
After introducing this hook, I have starte
The value for exclude parameter in _config.yml should be an array i.e.
exclude: ['_site', 'node_modules', ...]
Source: Jekyll Documentation - Configuration
Try this to your _config.yml
:
keep_files: [node]
where node
is a folder to exclude from the --watch
. What this will do is keeping the folder node
untouched by jekyll build. Then add all files that you want to keep in the site root
but not rendered by Jekyll.