diff options
author | Sanjay T. Sharma <sanjay.t.sharma@gmail.com> | 2017-09-17 12:42:08 +0100 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-17 19:42:08 +0800 |
commit | 176751a5d8154e066c0b4c56a5f812a1ac01b72e (patch) | |
tree | ee2ff9f958842c8779903ca5d8efc5732aa5b086 | |
parent | fba1d6b9c5bc72745368f63c67c027dd0070cb6b (diff) |
fix: use `absURL` to be agnostic of `baseURL` used in config.toml (#7)
Make robots.txt agnostic of trailing slash in baseURL
Closes #6
-rw-r--r-- | layouts/robots.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |