Skip to content

Commit 00ff061

Browse files
committed
Enabled robots.txt
Signed-off-by: Steve Scargall <[email protected]>
1 parent 2d07902 commit 00ff061

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

hugo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ theme = 'memmachine'
66
defaultContentLanguage = "en"
77
defaultContentLanguageInSubdir = false
88

9+
enableRobotsTXT = true
10+
911
[permalinks]
1012
blogs = "/blog/:year/:month/:title/"
1113

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
User-agent: *
2+
Allow: /
3+
4+
# Sitemap links for the site including multilingual variants
5+
Sitemap: {{ "sitemap.xml" | absURL }}
6+
{{ range .Site.Languages }}
7+
Sitemap: {{ printf "/%s/sitemap.xml" .Lang | absURL }}
8+
{{ end }}

0 commit comments

Comments
 (0)