mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 10:02:12 -05:00
d6197a41fa
And now with tests. Updates #10953
11 lines
325 B
Text
11 lines
325 B
Text
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 }}
|