mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
11.35.2020 7c99c86e914277f202ff1e4a2c1608a3ff62a89e
🕷 Added robots.txt support
2 files modified
8 ■■■■■ changed files
README.md 7 ●●●●● patch | view | raw | blame | history
exampleSite/config.toml 1 ●●●● patch | view | raw | blame | history
README.md
@@ -159,6 +159,13 @@
[params]
  mainSections = ["post", "docs"]
```
### Robots.txt
If you want Hugo to generate a robots.txt, you will have to set the `enableRobotsTXT` in the `config.toml` to `true`. By default a robots.txt, which allows search engine crawlers to access to any page, will be generated. It will look like this:
```
User-agent: *
```
If certain sites shoud be excluded from being accessed, you might want to setup a custom robots.txt file within your `static` folder of your site.
## License
Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE).
exampleSite/config.toml
@@ -5,6 +5,7 @@
theme = "anatole"
summarylength = 10
enableEmoji = true
enableRobotsTXT = true
# Enable Disqus
#disqusShortname = ""