Skip to content

Commit 289009c

Browse files
committed
fix: add privacy to robots.txt
Signed-off-by: lennartrommeiss <[email protected]>
1 parent 7da1917 commit 289009c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
User-agent: *
22
{{ $imprintPage := site.GetPage "imprint" }}{{ if $imprintPage }}Disallow: {{ $imprintPage.RelPermalink }}{{ range $imprintPage.Translations }}
3+
Disallow: {{ .RelPermalink }}{{ end }}{{ end }}{{ $imprintPage := site.GetPage "privacy" }}{{ if $imprintPage }}
4+
Disallow: {{ $imprintPage.RelPermalink }}{{ range $imprintPage.Translations }}
35
Disallow: {{ .RelPermalink }}{{ end }}{{ end }}

0 commit comments

Comments
 (0)