From f2e7b49acfaeab4e1a28cb1096f6461b555900fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 15 Feb 2022 15:26:18 +0100 Subject: Add --printUnusedTemplates Fixes #9502 --- docs/content/en/commands/hugo.md | 1 + docs/content/en/commands/hugo_mod.md | 1 + docs/content/en/commands/hugo_new.md | 1 + docs/content/en/commands/hugo_server.md | 1 + 4 files changed, 4 insertions(+) (limited to 'docs/content/en') diff --git a/docs/content/en/commands/hugo.md b/docs/content/en/commands/hugo.md index 088a8102f..0aa81719a 100644 --- a/docs/content/en/commands/hugo.md +++ b/docs/content/en/commands/hugo.md @@ -53,6 +53,7 @@ hugo [flags] --printI18nWarnings print missing translations --printMemoryUsage print memory usage to screen at intervals --printPathWarnings print warnings on duplicate target paths etc. + --printUnusedTemplates print warnings on unused templates. --quiet build in quiet mode --renderToMemory render to memory (only useful for benchmark testing) -s, --source string filesystem path to read files relative from diff --git a/docs/content/en/commands/hugo_mod.md b/docs/content/en/commands/hugo_mod.md index b0860f299..afcda9823 100644 --- a/docs/content/en/commands/hugo_mod.md +++ b/docs/content/en/commands/hugo_mod.md @@ -49,6 +49,7 @@ See https://gohugo.io/hugo-modules/ for more information. --printI18nWarnings print missing translations --printMemoryUsage print memory usage to screen at intervals --printPathWarnings print warnings on duplicate target paths etc. + --printUnusedTemplates print warnings on unused templates. --templateMetrics display metrics about template executions --templateMetricsHints calculate some improvement hints when combined with --templateMetrics -t, --theme strings themes to use (located in /themes/THEMENAME/) diff --git a/docs/content/en/commands/hugo_new.md b/docs/content/en/commands/hugo_new.md index e8a7d3b08..a8b084963 100644 --- a/docs/content/en/commands/hugo_new.md +++ b/docs/content/en/commands/hugo_new.md @@ -50,6 +50,7 @@ hugo new [path] [flags] --printI18nWarnings print missing translations --printMemoryUsage print memory usage to screen at intervals --printPathWarnings print warnings on duplicate target paths etc. + --printUnusedTemplates print warnings on unused templates. --templateMetrics display metrics about template executions --templateMetricsHints calculate some improvement hints when combined with --templateMetrics -t, --theme strings themes to use (located in /themes/THEMENAME/) diff --git a/docs/content/en/commands/hugo_server.md b/docs/content/en/commands/hugo_server.md index abdb64a5e..c224c4a52 100644 --- a/docs/content/en/commands/hugo_server.md +++ b/docs/content/en/commands/hugo_server.md @@ -63,6 +63,7 @@ hugo server [flags] --printI18nWarnings print missing translations --printMemoryUsage print memory usage to screen at intervals --printPathWarnings print warnings on duplicate target paths etc. + --printUnusedTemplates print warnings on unused templates. --renderToDisk render to Destination path (default is render to memory & serve from there) --templateMetrics display metrics about template executions --templateMetricsHints calculate some improvement hints when combined with --templateMetrics -- cgit v1.2.3