summaryrefslogtreecommitdiffstats
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 90e6a87..fd7113c 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -3,6 +3,7 @@ title = "Fuji Demo"
theme = "fuji"
hasCJKLanguage = true
enableEmoji = true
+enableRobotsTXT = true
disableKinds = ["RSS", "taxonomyTerm"]
## Change this two to switch between different language
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