From 176751a5d8154e066c0b4c56a5f812a1ac01b72e Mon Sep 17 00:00:00 2001 From: "Sanjay T. Sharma" Date: Sun, 17 Sep 2017 12:42:08 +0100 Subject: fix: use `absURL` to be agnostic of `baseURL` used in config.toml (#7) Make robots.txt agnostic of trailing slash in baseURL Closes #6 --- layouts/robots.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/robots.txt b/layouts/robots.txt index 319bc3a..e89778e 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Sitemap: {{ .Site.BaseURL }}sitemap.xml +Sitemap: {{ "sitemap.xml" | absURL }} -- cgit v1.2.3