summaryrefslogtreecommitdiffstats
path: root/testscripts/commands/hugo_printunusedtemplates.txt
diff options
context:
space:
mode:
Diffstat (limited to 'testscripts/commands/hugo_printunusedtemplates.txt')
-rw-r--r--testscripts/commands/hugo_printunusedtemplates.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/testscripts/commands/hugo_printunusedtemplates.txt b/testscripts/commands/hugo_printunusedtemplates.txt
new file mode 100644
index 000000000..312e4920d
--- /dev/null
+++ b/testscripts/commands/hugo_printunusedtemplates.txt
@@ -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 }}