mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Re-add --printUnusedTemplates and --printPathWarnings
And now with tests. Updates #10953
This commit is contained in:
11
testscripts/commands/hugo_printunusedtemplates.txt
Normal file
11
testscripts/commands/hugo_printunusedtemplates.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
hugo --printUnusedTemplates
|
||||
|
||||
stdout 'Template _default/list.html is unused'
|
||||
|
||||
-- hugo.toml --
|
||||
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section", "page"]
|
||||
baseURL = "https://example.org/"
|
||||
-- layouts/index.html --
|
||||
Home.
|
||||
-- layouts/_default/list.html --
|
||||
{{ errorf "unused template: %s" .Kind }}
|
Reference in New Issue
Block a user