Skip to content

Commit df7578c

Browse files
authored
Merge pull request #13 from sscargal/robots-txt
Enabled robots.txt
2 parents 2d07902 + 00ff061 commit df7578c

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)