diff options
author | amzrk2 | 2020-04-20 17:25:15 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-20 17:25:15 +0800 |
commit | 5ac03bbcf2b31fbc279a26eb7889668cb07c8298 (patch) | |
tree | bddc9783b976d2c2da6ef6d8933f0a10530cd648 | |
parent | ab5bb96c27dae05d187a566d56d2ff4adafada51 (diff) | |
download | hugo-theme-fuji-5ac03bbcf2b31fbc279a26eb7889668cb07c8298.tar.gz hugo-theme-fuji-5ac03bbcf2b31fbc279a26eb7889668cb07c8298.tar.bz2 hugo-theme-fuji-5ac03bbcf2b31fbc279a26eb7889668cb07c8298.zip |
Enable robots.txt by default
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/robots.txt | 3 |
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 |