1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Use jekyll-sitemap instead of our custom solution.

This commit is contained in:
XhmikosR 2015-09-08 08:13:48 +03:00
parent 36e4c9bffc
commit 0113ecc6c4
4 changed files with 4 additions and 23 deletions

View file

@ -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'

View file

@ -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)

View file

@ -20,6 +20,7 @@ exclude: [assets/scss/]
gems:
- jekyll-redirect-from
- jekyll-sitemap
# Custom vars
current_version: 4.0.0-alpha

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>