From 9beaa26023c31241a78adf3e54aadd0b77c49c42 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 14 Mar 2019 21:30:53 +0100 Subject: [PATCH] Add link to sitemap to robots.txt --- CHANGELOG.md | 1 + components/templates/src/builtins/robots.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15da4c0e..b04cb341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ rendering it and not anymore on the `page`/`section` variable - Fix using inline styles in headers - Fix sections with render=false being shown in sitemap - Sitemap is now split when there are more than 30 000 links in it +- Add link to sitemap in robots.txt ## 0.5.1 (2018-12-14) diff --git a/components/templates/src/builtins/robots.txt b/components/templates/src/builtins/robots.txt index 7d329b1d..451ba120 100644 --- a/components/templates/src/builtins/robots.txt +++ b/components/templates/src/builtins/robots.txt @@ -1 +1,2 @@ User-agent: * +Sitemap: {{ get_url(path="sitemap.xml") }}