testscripts/commands/hugo_printunusedtemplates.txt
raw| 1 | hugo --printUnusedTemplates |
| 2 | |
| 3 | stderr 'Template /list.html is unused' |
| 4 | |
| 5 | -- hugo.toml -- |
| 6 | disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section", "page"] |
| 7 | baseURL = "https://example.org/" |
| 8 | -- layouts/home.html -- |
| 9 | Home. |
| 10 | -- layouts/list.html -- |
| 11 | {{ errorf "unused template: %s" .Kind }} |