From 046c8b8fb02867c91074db8a41cea8a4d93dfadc Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 4 May 2022 06:57:18 -0400 Subject: themes/default/layouts/_default: Add robots.txt --- config.json | 1 + config.toml | 1 + config.yaml | 1 + themes/default/layouts/_default/robots.txt | 4 ++++ 4 files changed, 7 insertions(+) create mode 100644 themes/default/layouts/_default/robots.txt 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 -- cgit v1.2.3