From 0113ecc6c45a928cb9ee51db96fbd87f0c000021 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 8 Sep 2015 08:13:48 +0300 Subject: [PATCH] Use jekyll-sitemap instead of our custom solution. --- Gemfile | 1 + Gemfile.lock | 2 ++ _config.yml | 1 + docs/sitemap.xml | 23 ----------------------- 4 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 docs/sitemap.xml diff --git a/Gemfile b/Gemfile index 555a281669..0d7de115a6 100644 --- a/Gemfile +++ b/Gemfile @@ -6,6 +6,7 @@ source 'https://rubygems.org' group :development, :test do gem 'jekyll', '~> 2.5.3' gem 'jekyll-redirect-from', '~> 0.8.0' + gem 'jekyll-sitemap', '~> 0.8.1' gem 'rouge', '~> 1.9.1' gem 'sass', '~> 3.4.18' gem 'scss_lint', '~> 0.41' diff --git a/Gemfile.lock b/Gemfile.lock index 419591d3be..168255b38a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -38,6 +38,7 @@ GEM jekyll (>= 2.0) jekyll-sass-converter (1.3.0) sass (~> 3.2) + jekyll-sitemap (0.8.1) jekyll-watch (1.2.1) listen (~> 2.7) kramdown (1.8.0) @@ -76,6 +77,7 @@ PLATFORMS DEPENDENCIES jekyll (~> 2.5.3) jekyll-redirect-from (~> 0.8.0) + jekyll-sitemap (~> 0.8.1) rouge (~> 1.9.1) sass (~> 3.4.18) scss_lint (~> 0.41) diff --git a/_config.yml b/_config.yml index 0d47d652ba..d0219c5ff8 100644 --- a/_config.yml +++ b/_config.yml @@ -20,6 +20,7 @@ exclude: [assets/scss/] gems: - jekyll-redirect-from + - jekyll-sitemap # Custom vars current_version: 4.0.0-alpha diff --git a/docs/sitemap.xml b/docs/sitemap.xml deleted file mode 100644 index 0d59915de3..0000000000 --- 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 %} -