Browse files

Use jekyll-sitemap instead of our custom solution.

  • Loading branch information...
1 parent 4265f86 commit 5564142d93252771ff7935f5e7d35bca51f22c89 @XhmikosR XhmikosR committed Mar 4, 2016
Showing with 6 additions and 23 deletions.
  1. +1 −0 Gemfile
  2. +2 −0 Gemfile.lock
  3. +3 −0 _config.yml
  4. +0 −23 docs/sitemap.xml
View
1 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
View
2 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
View
3 _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
View
23 docs/sitemap.xml
@@ -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>

0 comments on commit 5564142

Please sign in to comment.