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:
authorbickhaus <bickhaus@users.noreply.github.com>2018-03-07 23:40:05 +0300
committerGyorgy Orban <o.gyorgy@gmail.com>2018-08-23 22:01:27 +0300
commitc012e095091ac8212c792b4d6f23c5570d02a431 (patch)
tree03aa2bfb9542ae52ae40f2542fc9333cad7d912f
parent332a3ce551090590b7bd9844ee1ba07e93326e31 (diff)
added robots.txt
-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