diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 900c9c8..0aa9a70 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,11 @@ {{ hugo.Generator }} + {{ if .Params.robotsdisallow -}} + + {{- else -}} + {{- end }} diff --git a/layouts/_default/robots.txt b/layouts/_default/robots.txt index e1d1191..423624a 100644 --- a/layouts/_default/robots.txt +++ b/layouts/_default/robots.txt @@ -1,9 +1,4 @@ User-agent: * -{{ range site.Home.AllTranslations -}} -{{ range where .RegularPages "Params.robotsdisallow" true }} -Disallow: {{ .RelPermalink }} -{{- end -}} -{{- end }} Sitemap: {{ "sitemap.xml" | absURL -}} {{- if site.IsMultiLingual }}