Skip to content

Commit

Permalink
Generate robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
yochem committed Oct 11, 2024
1 parent 52453da commit 7a4340d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Yochem
disableKinds:
- taxonomy
- term
enableRobotsTXT: true

languageCode: en-US

Expand Down
4 changes: 4 additions & 0 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
{{- range where .Pages "Params.noindex" true }}
Disallow: {{ .RelPermalink -}}
{{ end }}
3 changes: 0 additions & 3 deletions static/robots.txt

This file was deleted.

0 comments on commit 7a4340d

Please sign in to comment.