diff options
author | tdro <tdro@noreply.example.com> | 2022-05-04 06:57:18 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-04 06:57:18 -0400 |
commit | 046c8b8fb02867c91074db8a41cea8a4d93dfadc (patch) | |
tree | 09b8de72b6bb6a22260fa1e5f4a1444c5005357f | |
parent | 73b147f2b93cc76297e6e0516d518640a2d4cf57 (diff) | |
download | canory-046c8b8fb02867c91074db8a41cea8a4d93dfadc.tar.gz canory-046c8b8fb02867c91074db8a41cea8a4d93dfadc.tar.bz2 canory-046c8b8fb02867c91074db8a41cea8a4d93dfadc.zip |
themes/default/layouts/_default: Add robots.txt
-rw-r--r-- | config.json | 1 | ||||
-rw-r--r-- | config.toml | 1 | ||||
-rw-r--r-- | config.yaml | 1 | ||||
-rw-r--r-- | themes/default/layouts/_default/robots.txt | 4 |
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 |