2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Use jekyll-sitemap instead of our custom solution.

This commit is contained in:
XhmikosR
2016-03-04 19:38:57 +02:00
parent 4265f868ac
commit 5564142d93
4 changed files with 6 additions and 23 deletions
+1
View File
@@ -2,4 +2,5 @@ source 'https://rubygems.org'
group :development, :test do group :development, :test do
gem 'jekyll', '~> 3.1.2' gem 'jekyll', '~> 3.1.2'
gem 'jekyll-sitemap', '~> 0.10.0'
end end
+2
View File
@@ -14,6 +14,7 @@ GEM
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
jekyll-sass-converter (1.4.0) jekyll-sass-converter (1.4.0)
sass (~> 3.4) sass (~> 3.4)
jekyll-sitemap (0.10.0)
jekyll-watch (1.3.1) jekyll-watch (1.3.1)
listen (~> 3.0) listen (~> 3.0)
kramdown (1.10.0) kramdown (1.10.0)
@@ -34,6 +35,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
jekyll (~> 3.1.2) jekyll (~> 3.1.2)
jekyll-sitemap (~> 0.10.0)
BUNDLED WITH BUNDLED WITH
1.11.2 1.11.2
+3
View File
@@ -13,6 +13,9 @@ port: 9001
url: http://getbootstrap.com url: http://getbootstrap.com
encoding: UTF-8 encoding: UTF-8
gems:
- jekyll-sitemap
# Custom vars # Custom vars
current_version: 3.3.6 current_version: 3.3.6
repo: https://github.com/twbs/bootstrap repo: https://github.com/twbs/bootstrap
-23
View File
@@ -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>