aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.json1
-rw-r--r--config.toml1
-rw-r--r--config.yaml1
-rw-r--r--themes/default/layouts/_default/robots.txt4
4 files changed, 7 insertions, 0 deletions
diff --git a/config.json b/config.json
index acd2e1f..9189bde 100644
--- a/config.json
+++ b/config.json
@@ -7,6 +7,7 @@
"enableEmoji": true,
"buildDrafts": true,
"languageCode": "en-us",
+ "enableRobotsTXT": true,
"author": {
"default": {
"user": "default",
diff --git a/config.toml b/config.toml
index f54c945..c16f72e 100644
--- a/config.toml
+++ b/config.toml
@@ -5,6 +5,7 @@ summaryLength = 1
enableEmoji = true
buildDrafts = true
languageCode = "en-us"
+enableRobotsTXT = true
[author]
footer = "A Micro Blog\n"
diff --git a/config.yaml b/config.yaml
index 56888f5..c95c1dc 100644
--- a/config.yaml
+++ b/config.yaml
@@ -8,6 +8,7 @@ summaryLength: 1
enableEmoji: true
buildDrafts: true
languageCode: en-us
+enableRobotsTXT: true
author:
default:
diff --git a/themes/default/layouts/_default/robots.txt b/themes/default/layouts/_default/robots.txt
new file mode 100644
index 0000000..7ed0150
--- /dev/null
+++ b/themes/default/layouts/_default/robots.txt
@@ -0,0 +1,4 @@
+User-agent: *
+Disallow:
+
+Sitemap: {{ .Site.BaseURL }}/sitemap.xml