feat(seo): add default robots.txt with sitemap

Help automate adding new site to Google Search Console
This commit is contained in:
George Cushen 2020-09-02 20:28:21 +01:00
commit 514907d534
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,7 @@ removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issu
summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
paginate = 10 # Number of items per page in paginated lists.
enableEmoji = true
enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]

3
layouts/robots.txt Normal file
View file

@ -0,0 +1,3 @@
User-agent: *
Sitemap: {{ "sitemap.xml" | absURL }}