From 5564142d93252771ff7935f5e7d35bca51f22c89 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 4 Mar 2016 19:38:57 +0200 Subject: [PATCH] Use jekyll-sitemap instead of our custom solution. --- Gemfile | 1 + Gemfile.lock | 2 ++ _config.yml | 3 +++ docs/sitemap.xml | 23 ----------------------- 4 files changed, 6 insertions(+), 23 deletions(-) delete mode 100644 docs/sitemap.xml diff --git a/Gemfile b/Gemfile index 719b61a0c..832d45f9f 100644 --- a/Gemfile +++ b/Gemfile @@ -2,4 +2,5 @@ source 'https://rubygems.org' group :development, :test do gem 'jekyll', '~> 3.1.2' + gem 'jekyll-sitemap', '~> 0.10.0' end diff --git a/Gemfile.lock b/Gemfile.lock index f496d72ac..cddfec5b6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,6 +14,7 @@ GEM safe_yaml (~> 1.0) jekyll-sass-converter (1.4.0) sass (~> 3.4) + jekyll-sitemap (0.10.0) jekyll-watch (1.3.1) listen (~> 3.0) kramdown (1.10.0) @@ -34,6 +35,7 @@ PLATFORMS DEPENDENCIES jekyll (~> 3.1.2) + jekyll-sitemap (~> 0.10.0) BUNDLED WITH 1.11.2 diff --git a/_config.yml b/_config.yml index 8f0dc8577..38f21b86c 100644 --- a/_config.yml +++ b/_config.yml @@ -13,6 +13,9 @@ port: 9001 url: http://getbootstrap.com encoding: UTF-8 +gems: + - jekyll-sitemap + # Custom vars current_version: 3.3.6 repo: https://github.com/twbs/bootstrap diff --git a/docs/sitemap.xml b/docs/sitemap.xml deleted file mode 100644 index 0d59915de..000000000 --- a/docs/sitemap.xml +++ /dev/null @@ -1,23 +0,0 @@ ---- ---- - - - - - - {{ site.url }}/ - {{ site.time | date_to_xmlschema }} - daily - 1.0 - - {% for page in site.html_pages %} - {% if page.layout != "home" %} - - {{ site.url }}{{ page.url }} - {{ site.time | date_to_xmlschema }} - weekly - 0.7 - - {% endif %} - {% endfor %} -