aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2015-09-08 08:13:48 +0300
committerXhmikosR <[email protected]>2015-09-08 08:18:52 +0300
commit0113ecc6c45a928cb9ee51db96fbd87f0c000021 (patch)
tree41147fe1e1b1268cc084f6f4904e8fc86aecbd32
parent36e4c9bffcae40cde42b6baa28961a8979cc24d0 (diff)
downloadbootstrap-0113ecc6c45a928cb9ee51db96fbd87f0c000021.tar.xz
bootstrap-0113ecc6c45a928cb9ee51db96fbd87f0c000021.zip
Use jekyll-sitemap instead of our custom solution.
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock2
-rw-r--r--_config.yml1
-rw-r--r--docs/sitemap.xml23
4 files changed, 4 insertions, 23 deletions
diff --git a/Gemfile b/Gemfile
index 555a28166..0d7de115a 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 419591d3b..168255b38 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 0d47d652b..d0219c5ff 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 0d59915de..000000000
--- a/docs/sitemap.xml
+++ /dev/null
@@ -1,23 +0,0 @@
----
----
-
-
-<?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url>
- <loc>{{ site.url }}/</loc>
- <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
- <changefreq>daily</changefreq>
- <priority>1.0</priority>
- </url>
- {% for page in site.html_pages %}
- {% if page.layout != "home" %}
- <url>
- <loc>{{ site.url }}{{ page.url }}</loc>
- <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
- <changefreq>weekly</changefreq>
- <priority>0.7</priority>
- </url>
- {% endif %}
- {% endfor %}
-</urlset>