From 530d55e2ab0d3b8452f7b2aaa3562948ac224b8a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 16 Oct 2019 16:11:35 +0200 Subject: added sitemap and reduced robots.txt to one file --- config.toml | 6 +++++- static/blog/robots.txt | 2 -- themes/new_theme/layouts/robots.txt | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 static/blog/robots.txt diff --git a/config.toml b/config.toml index 4480992..d53a229 100644 --- a/config.toml +++ b/config.toml @@ -76,4 +76,8 @@ category = "categories" [outputs] home = [ "HTML", "JSON"] page = [ "HTML"] - + +[sitemap] + changefreq = "monthly" + filename = "sitemap.xml" + priority = 0.5 diff --git a/static/blog/robots.txt b/static/blog/robots.txt deleted file mode 100644 index 1f53798..0000000 --- a/static/blog/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/themes/new_theme/layouts/robots.txt b/themes/new_theme/layouts/robots.txt index eb05362..981f0df 100644 --- a/themes/new_theme/layouts/robots.txt +++ b/themes/new_theme/layouts/robots.txt @@ -1,2 +1,3 @@ User-agent: * Disallow: +Sitemap: http://www.andreasbaumann.cc/sitemap.xml -- cgit v1.2.3-54-g00ecf