-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Description
In hugo v0.20, when doing partial rebuild, e.g. hugo -w, file list containing changed files does not honor the behavior of full rebuild. Files matching ignoreFiles config setting or directories will be proceed by hugo.
$ cat config.yaml
baseurl: "http://127.0.0.1:1313" languagecode: en-us
title: a test title
theme: test
MetaDataFormat: yaml
ignoreFiles: [ "\\.foo$" ]
$ ls -l content
total 0
$ hugo_0.20_linux_amd64 -w
WARNING: Site config's rssURI is deprecated and will be removed in a future release. Set baseName in outputFormats.RSS.
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
0 regular pages created
6 other pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
total in 1 ms
Watching for changes in /home/anb/tmp/hugo/content
Press Ctrl+C to stop
Create some files that shouldn't be pickup by hugo:
$ touch content/bar.foo
$ mkdir content/baz
$ ls public
bar.foo baz categories/ index.html index.xml sitemap.xml tags/