diff --git a/exampleSite/content/basics/configuration/_index.en.md b/exampleSite/content/basics/configuration/_index.en.md
index 02a62663e5..c420f5f84b 100644
--- a/exampleSite/content/basics/configuration/_index.en.md
+++ b/exampleSite/content/basics/configuration/_index.en.md
@@ -36,6 +36,8 @@ Note that some of these parameters are explained in details in other sections of
# Javascript and CSS cache are automatically busted when new version of site is generated.
# Set this to true to disable this behavior (some proxies don't handle well this optimization)
disableAssetsBusting = false
+ # Set this to true if you want to disable generation for generator version meta tags of hugo and the theme
+ disableGeneratorVersion = false
# Set this to true to disable copy-to-clipboard button for inline code.
disableInlineCopyToClipBoard = false
# A title for shortcuts in menu is set by default. Set this to true to disable it.
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 67253c0ff2..cffe51cdcd 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -2,12 +2,14 @@
{{- $c:=""}}{{/* to avoid that user swiping to the left leaves a gap on the right side, we set minimum-scale, even if not advised to */}}
- {{- $gen := hugo.Generator }}
- {{- $gen = replaceRE "\\s*/>$" ">" $gen }}
+ {{- if (ne .Site.Params.disableGeneratorVersion true) }}
+ {{- $gen := hugo.Generator }}
+ {{- $gen = replaceRE "\\s*/>$" ">" $gen }}
{{ $gen | safeHTML }}
- {{- $ver := partial "version.txt" }}
- {{- $ver := printf "" "Relearn" $ver }}
+ {{- $ver := partial "version.txt" }}
+ {{- $ver := printf "" "Relearn" $ver }}
{{ $ver | safeHTML }}
+ {{- end }}
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
{{- end }}