Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gyorb/hugo-dusk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/robots.txt3
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