diff options
author | XhmikosR <xhmikosr@gmail.com> | 2015-09-09 09:44:40 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2015-09-09 09:44:40 +0300 |
commit | a91d267a213241a81fcbdf524b08a71208951bd6 (patch) | |
tree | a9a36464be2f8815da1338deba630641eeacebab | |
parent | d84c15f1d03bcbbf6701c9ea9dd2807a585d2f9b (diff) | |
parent | 0113ecc6c45a928cb9ee51db96fbd87f0c000021 (diff) |
Merge pull request #17519 from twbs/v4-dev-xmr-jekyll-sitemap
Use jekyll-sitemap instead of our custom solution.
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 2 | ||||
-rw-r--r-- | _config.yml | 1 | ||||
-rw-r--r-- | docs/sitemap.xml | 23 |
4 files changed, 4 insertions, 23 deletions
@@ -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 @@ ---- ---- - - -<?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> |