diff options
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/robots.txt | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cf56bbb..6c248eb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,6 +5,7 @@ languageCode = "en-US" canonifyurls = true paginate = 3 theme = "hugo-dusk" +enableRobotsTXT = true googleAnalytics = "" disqusShortname = "" diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..4c807e2 --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,3 @@ +User-agent: * + +Sitemap: {{ .Site.BaseURL }}/sitemap.xml |