Skip to content

Commit

Permalink
Fix indexation error
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Sep 10, 2023
1 parent 10c2d65 commit 257182f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
{{ hugo.Generator }}
<meta name="generated" content="{{ now.Format "2006-01-02T15:04:05-07:00" }}">
<meta name="referrer" content="same-origin">
{{ if .Params.robotsdisallow -}}
<meta name="robots" content="noindex">
{{- else -}}
<meta name="robots" content="all,follow">
{{- end }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-title" content="MoodleBox">
<meta name="application-name" content="MoodleBox">
Expand Down
5 changes: 0 additions & 5 deletions layouts/_default/robots.txt
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit 257182f

Please sign in to comment.