Skip to content

Commit

Permalink
web spider control (#741)
Browse files Browse the repository at this point in the history
* add setting to be added to article frontmatter to block web crawlers

Signed-off-by: pcnorth <120174435+pcnorth@users.noreply.github.com>

* remove sitewide whitelist from robot.txt

Signed-off-by: pcnorth <120174435+pcnorth@users.noreply.github.com>

---------

Signed-off-by: pcnorth <120174435+pcnorth@users.noreply.github.com>
Signed-off-by: Phil North <120174435+pcnorth@users.noreply.github.com>
  • Loading branch information
pcnorth committed Dec 14, 2023
1 parent c81fb13 commit 8e93a0a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
User-agent: *
{{ if eq (hugo.Environment) "production" -}}
Allow: /
{{ else -}}
{{ range where .Data.Pages "Params.robotsdisallow" true }}
Disallow: {{ .RelPermalink }}{{ end }}
{{ end }}
Sitemap: {{ "sitemap.xml" | absURL -}}

0 comments on commit 8e93a0a

Please sign in to comment.