- The content of the document. If no YAML front-matter is provided,
+ The (unrendered) content of the document. If no YAML front-matter is provided,
this is the entirety of the file contents. If YAML front-matter
is used, then this is all the contents of the file after the terminating
`---` of the front-matter.
+
+
+
output
+
+
+
+ The rendered output of the document, based on the content.
+
+
+
path
From 11dcdf4fef9f614c1e6c2dd8567caf7e2a29263b Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Sat, 3 May 2014 00:23:50 +0200
Subject: [PATCH 010/160] Change Travis extension
---
README.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.markdown b/README.markdown
index f920db286..91f51258a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -2,7 +2,7 @@
[](http://badge.fury.io/rb/jekyll)
-[](https://travis-ci.org/jekyll/jekyll)
+[](https://travis-ci.org/jekyll/jekyll)
[](https://codeclimate.com/github/jekyll/jekyll)
[](https://gemnasium.com/jekyll/jekyll)
[](https://coveralls.io/r/jekyll/jekyll)
From ddda89c33ef2343605b84f82808f8189ed1b600b Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Sat, 3 May 2014 00:25:34 +0200
Subject: [PATCH 011/160] Change Fury extension
---
README.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.markdown b/README.markdown
index 91f51258a..b36e6c611 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,6 +1,6 @@
# [Jekyll](http://jekyllrb.com/)
-[](http://badge.fury.io/rb/jekyll)
+[](http://badge.fury.io/rb/jekyll)
[](https://travis-ci.org/jekyll/jekyll)
[](https://codeclimate.com/github/jekyll/jekyll)
From e4b4b6e103c55956e2c337f4f4e9481a1d810af0 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Sat, 3 May 2014 00:26:33 +0200
Subject: [PATCH 012/160] Change Gemnasium extension
---
README.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.markdown b/README.markdown
index b36e6c611..704a66b95 100644
--- a/README.markdown
+++ b/README.markdown
@@ -4,7 +4,7 @@
[](https://travis-ci.org/jekyll/jekyll)
[](https://codeclimate.com/github/jekyll/jekyll)
-[](https://gemnasium.com/jekyll/jekyll)
+[](https://gemnasium.com/jekyll/jekyll)
[](https://coveralls.io/r/jekyll/jekyll)
By Tom Preston-Werner, Nick Quaranto, and many [awesome contributors](https://github.com/jekyll/jekyll/graphs/contributors)!
From eade742b32256ea4bf371d147e1f8db9bb899d84 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Sat, 3 May 2014 09:49:13 +0200
Subject: [PATCH 013/160] Switch to 2.1
---
.travis.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 01ebd9286..5225cba03 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,9 +4,14 @@ install:
- script/rebund download
- travis_retry bundle install --path vendor/bundle
rvm:
-- 2.1.0
+# 2.1, not 2.1.0 until fixed https://github.com/travis-ci/travis-ci/issues/2220
+- 2.1
- 2.0.0
- 1.9.3
+matrix:
+ allow_failures:
+ # until fixed https://github.com/travis-ci/travis-ci/issues/2220
+ - rvm: 2.1
script: script/cibuild
after_script:
- script/rebund upload
From c17bdf951d3714a26a226497ec9aac3e005e2a6d Mon Sep 17 00:00:00 2001
From: Chezou
Date: Sat, 3 May 2014 22:42:50 +0900
Subject: [PATCH 014/160] Fix typo in documentation
---
site/docs/deployment-methods.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/docs/deployment-methods.md b/site/docs/deployment-methods.md
index d10aabc74..97bbdefa6 100644
--- a/site/docs/deployment-methods.md
+++ b/site/docs/deployment-methods.md
@@ -27,7 +27,7 @@ There are also a number of ways to easily automate the deployment of a Jekyll si
### Git post-update hook
-If you store your jekyll site in [Git](http://git-scm.com/) (you are using version control, right?), it’s pretty easy to automate the
+If you store your Jekyll site in [Git](http://git-scm.com/) (you are using version control, right?), it’s pretty easy to automate the
deployment process by setting up a post-update hook in your Git
repository, [like
this](http://web.archive.org/web/20091223025644/http://www.taknado.com/en/2009/03/26/deploying-a-jekyll-generated-site/).
From 4ae8fefb9519fe81d27b742b63dbebbedd60c8e9 Mon Sep 17 00:00:00 2001
From: Valery Tolstov
Date: Sat, 3 May 2014 20:23:28 +0400
Subject: [PATCH 015/160] Remove literal lang name from class, fix #2284
If code language is C classes for comment and language are the same
---
lib/jekyll/converters/markdown/redcarpet_parser.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/jekyll/converters/markdown/redcarpet_parser.rb b/lib/jekyll/converters/markdown/redcarpet_parser.rb
index d43eb140a..df18327b9 100644
--- a/lib/jekyll/converters/markdown/redcarpet_parser.rb
+++ b/lib/jekyll/converters/markdown/redcarpet_parser.rb
@@ -6,7 +6,7 @@ module Jekyll
module CommonMethods
def add_code_tags(code, lang)
code = code.to_s
- code = code.sub(/
/, "
")
+ code = code.sub(/
/, "
")
code = code.sub(/<\/pre>/,"
")
end
end
From c3e858443f051aae16e615d66331a0e1e5df45ad Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sat, 3 May 2014 12:55:14 -0400
Subject: [PATCH 016/160] Update history to reflect merge of #2291 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 8dacc2e9e..5be4ac50b 100644
--- a/History.markdown
+++ b/History.markdown
@@ -201,6 +201,7 @@
* Add `jekyll-live-tiles` to list of third-party plugins (#2250)
* Fixed broken link to GitHub training material site source (#2257)
* Update link to help repo, now called `jekyll-help` (#2277)
+ * Fix capitalization of 'Jekyll' on Deployment Methods page (#2291)
## 1.5.1 / 2014-03-27
From cf4304ab2b8424b5c33dc2bcfc0fa76b7cac7124 Mon Sep 17 00:00:00 2001
From: Valery Tolstov
Date: Sat, 3 May 2014 21:46:16 +0400
Subject: [PATCH 017/160] Update tests
Remove language literal from class in test/test_redcarpet.rb
---
test/test_redcarpet.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/test_redcarpet.rb b/test/test_redcarpet.rb
index dabcd62cd..ebf3b187f 100644
--- a/test/test_redcarpet.rb
+++ b/test/test_redcarpet.rb
@@ -32,7 +32,7 @@ class TestRedcarpet < Test::Unit::TestCase
end
should "render fenced code blocks with syntax highlighting" do
- assert_equal "
puts"Hello world"\n
", @markdown.convert(
+ assert_equal "
puts"Hello world"\n
", @markdown.convert(
<<-EOS
```ruby
puts "Hello world"
@@ -48,7 +48,7 @@ puts "Hello world"
end
should "render fenced code blocks with syntax highlighting" do
- assert_equal "
puts\"Hello world\"\n
", @markdown.convert(
+ assert_equal "
puts\"Hello world\"\n
", @markdown.convert(
<<-EOS
```ruby
puts "Hello world"
@@ -64,7 +64,7 @@ puts "Hello world"
end
should "render fenced code blocks without syntax highlighting" do
- assert_equal "
puts "Hello world"\n
", @markdown.convert(
+ assert_equal "
puts "Hello world"\n
", @markdown.convert(
<<-EOS
```ruby
puts "Hello world"
From c48da38b14805e71de7e5e27e2eec4f52c0a0861 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Sat, 3 May 2014 21:31:00 +0200
Subject: [PATCH 018/160] Switch 2.1 to 2.1.1
---
.travis.yml | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 5225cba03..2c99fda9d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,14 +4,9 @@ install:
- script/rebund download
- travis_retry bundle install --path vendor/bundle
rvm:
-# 2.1, not 2.1.0 until fixed https://github.com/travis-ci/travis-ci/issues/2220
-- 2.1
+- 2.1.1
- 2.0.0
- 1.9.3
-matrix:
- allow_failures:
- # until fixed https://github.com/travis-ci/travis-ci/issues/2220
- - rvm: 2.1
script: script/cibuild
after_script:
- script/rebund upload
From c0fa8702af59956cc9983ab559298c13b22e28bb Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sat, 3 May 2014 18:21:04 -0400
Subject: [PATCH 019/160] Update history to reflect merge of #2290 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 5be4ac50b..b1ad1f742 100644
--- a/History.markdown
+++ b/History.markdown
@@ -130,6 +130,7 @@
* Refactor `Commands::Serve`. (#2269)
* Refactor `highlight` tag (#2154)
* Update `Util` hash functions with latest from Rails (#2273)
+ * Workaround for Travis bug (#2290)
### Site Enhancements
* Document Kramdown's GFM parser option (#1791)
From adfd9091f8e8087f5d415051e60f23ee4ee5dee6 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sat, 3 May 2014 18:27:00 -0400
Subject: [PATCH 020/160] Update history to reflect merge of #2292 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index b1ad1f742..c4d709d9e 100644
--- a/History.markdown
+++ b/History.markdown
@@ -64,6 +64,7 @@
* Add the ability for pages to be marked as `published: false` (#1492)
* Add `Jekyll::LiquidExtensions` with `.lookup_variable` method for easy
looking up of variable values in a Liquid context. (#2253)
+ * Remove literal lang name from class (#2292)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
From 3af22f12bf177de440e7aba40751e7878a8d5a1c Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sat, 3 May 2014 18:51:55 -0400
Subject: [PATCH 021/160] Set content-type to text/html with utf-8 charset.
Fixes #2289
---
lib/jekyll/commands/serve.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/jekyll/commands/serve.rb b/lib/jekyll/commands/serve.rb
index 316524904..0f6c6d371 100644
--- a/lib/jekyll/commands/serve.rb
+++ b/lib/jekyll/commands/serve.rb
@@ -44,8 +44,6 @@ module Jekyll
Jekyll.logger.info "Server address:", server_address(s, options)
- p s
-
if options['detach'] # detach the server
pid = Process.fork { s.start }
Process.detach(pid)
@@ -66,6 +64,7 @@ module Jekyll
if File.exist?(File.join(destination, '404.html'))
WEBrick::HTTPResponse.class_eval do
def create_error_page
+ @header['content-type'] = "text/html; charset=UTF-8"
@body = IO.read(File.join(@config[:DocumentRoot], '404.html'))
end
end
From 8cad40a124de7e28dc199948ecf416893458b4bc Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sat, 3 May 2014 18:54:09 -0400
Subject: [PATCH 022/160] Update history to reflect merge of #2289 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index c4d709d9e..6fdda7309 100644
--- a/History.markdown
+++ b/History.markdown
@@ -65,6 +65,7 @@
* Add `Jekyll::LiquidExtensions` with `.lookup_variable` method for easy
looking up of variable values in a Liquid context. (#2253)
* Remove literal lang name from class (#2292)
+ * Return `utf-8` encoding in header for webrick error page response (#2289)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
From f2849ac269d72ee505f165bc03323ca9b0275694 Mon Sep 17 00:00:00 2001
From: TheTomThorogood
Date: Mon, 5 May 2014 00:12:07 +0930
Subject: [PATCH 023/160] Add :short_year to url_placeholders
---
lib/jekyll/post.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb
index 8ebe92b5c..13217bf0d 100644
--- a/lib/jekyll/post.rb
+++ b/lib/jekyll/post.rb
@@ -225,6 +225,7 @@ module Jekyll
:i_month => date.strftime("%m").to_i.to_s,
:categories => (categories || []).map { |c| c.to_s }.join('/'),
:short_month => date.strftime("%b"),
+ :short_year => date.strftime("%y"),
:y_day => date.strftime("%j"),
:output_ext => output_ext
}
From 94ccd42c73776e51ab8ea3cd9656f22cc85973f7 Mon Sep 17 00:00:00 2001
From: TheTomThorogood
Date: Mon, 5 May 2014 00:12:51 +0930
Subject: [PATCH 024/160] Add short_year description to /docs/permalinks/
---
site/docs/permalinks.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/site/docs/permalinks.md b/site/docs/permalinks.md
index c38ad945b..155432bd4 100644
--- a/site/docs/permalinks.md
+++ b/site/docs/permalinks.md
@@ -67,6 +67,14 @@ permalink is defined as `/:categories/:year/:month/:day/:title.html`.
Day from the Post’s filename without leading zeros.
+
+
+
short_year
+
+
+
Year from the Post’s filename without the century.
+
+
title
From e04e11c84d6d4d0698b251cdc165286ad3317904 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sun, 4 May 2014 21:05:14 -0400
Subject: [PATCH 025/160] Swap env of maruku and kramdown dependencies.
Maruku is now sunsetted, i.e. a dev dep, not a runtime dep.
Kramdown is now the default, i.e. a runtime dep, not a dev dep.
Closes #2285.
---
jekyll.gemspec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jekyll.gemspec b/jekyll.gemspec
index 3dfb3cd0a..d61264a7b 100644
--- a/jekyll.gemspec
+++ b/jekyll.gemspec
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('liquid', "~> 2.5.5")
s.add_runtime_dependency('classifier', "~> 1.3")
s.add_runtime_dependency('listen', "~> 2.5")
- s.add_runtime_dependency('maruku', "0.7.0")
+ s.add_runtime_dependency('kramdown', "~> 1.3")
s.add_runtime_dependency('pygments.rb', "~> 0.5.0")
s.add_runtime_dependency('mercenary', "~> 0.3.1")
s.add_runtime_dependency('safe_yaml', "~> 1.0")
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('rr', "~> 1.1")
s.add_development_dependency('cucumber', "1.3.11")
s.add_development_dependency('RedCloth', "~> 4.2")
- s.add_development_dependency('kramdown', "~> 1.3")
+ s.add_development_dependency('maruku', "0.7.0")
s.add_development_dependency('rdiscount', "~> 1.6")
s.add_development_dependency('launchy', "~> 2.3")
s.add_development_dependency('simplecov', "~> 0.7")
From a0bbf7703bdda67ba7ef6fb94a22d29d1a676c4b Mon Sep 17 00:00:00 2001
From: Ben Balter
Date: Sun, 27 Apr 2014 15:34:01 -0400
Subject: [PATCH 026/160] make template site easier to customize
---
lib/site_template/_config.yml | 13 +++++++++----
lib/site_template/_includes/footer.html | 18 +++++++++---------
lib/site_template/_includes/head.html | 6 +++---
lib/site_template/_includes/header.html | 9 +++++----
lib/site_template/{about/index.md => about.md} | 3 ++-
lib/site_template/feed.xml | 10 +++++-----
lib/site_template/index.html | 9 ++++++---
lib/site_template/projects/index.md | 14 --------------
8 files changed, 39 insertions(+), 43 deletions(-)
rename lib/site_template/{about/index.md => about.md} (87%)
delete mode 100644 lib/site_template/projects/index.md
diff --git a/lib/site_template/_config.yml b/lib/site_template/_config.yml
index d9fdcfc00..15256bf71 100644
--- a/lib/site_template/_config.yml
+++ b/lib/site_template/_config.yml
@@ -1,5 +1,10 @@
+# Site settings
name: Dat site title tho
-markdown: redcarpet
-highlighter: pygments
-description: "Write an awesome description for your new site here. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
-url: "http://yourdomain.com"
+title: Your awesome title
+email: your-email@domain.com
+description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
+baseurl: "http://yourdomain.com"
+
+# Build settings
+markdown: kramdown
+permalinks: pretty
diff --git a/lib/site_template/_includes/footer.html b/lib/site_template/_includes/footer.html
index 6c5dae3e4..9a286ecec 100644
--- a/lib/site_template/_includes/footer.html
+++ b/lib/site_template/_includes/footer.html
@@ -2,19 +2,19 @@
-
Bart Simpson
+
{{ site.name }}
-
\ No newline at end of file
+
diff --git a/lib/site_template/_includes/head.html b/lib/site_template/_includes/head.html
index 9f676224e..d54756159 100644
--- a/lib/site_template/_includes/head.html
+++ b/lib/site_template/_includes/head.html
@@ -4,9 +4,9 @@
{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}
-
+
-
+
-
\ No newline at end of file
+
diff --git a/lib/site_template/_includes/header.html b/lib/site_template/_includes/header.html
index 9c605cdef..f8045cbe5 100644
--- a/lib/site_template/_includes/header.html
+++ b/lib/site_template/_includes/header.html
@@ -2,7 +2,7 @@
-
\ No newline at end of file
+
diff --git a/lib/site_template/about/index.md b/lib/site_template/about.md
similarity index 87%
rename from lib/site_template/about/index.md
rename to lib/site_template/about.md
index 09ac935c4..3ed64bb62 100644
--- a/lib/site_template/about/index.md
+++ b/lib/site_template/about.md
@@ -1,10 +1,11 @@
---
layout: page
title: About
+permalink: /about/
---
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
You can find the source code for the Jekyll new theme at: [github.com/jglovier/jekyll-new](https://github.com/jglovier/jekyll-new)
-You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll)
\ No newline at end of file
+You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll)
diff --git a/lib/site_template/feed.xml b/lib/site_template/feed.xml
index 15b90dd65..252a0bd11 100644
--- a/lib/site_template/feed.xml
+++ b/lib/site_template/feed.xml
@@ -6,16 +6,16 @@ layout: none
{{ site.name | xml_escape }}{{ site.description | xml_escape }}
- {{ site.url }}
-
+ {{ site.baseurl }}
+
{% for post in site.posts limit:10 %}
{{ post.title | xml_escape }}{{ post.content | xml_escape }}{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}
- {{ site.url }}/{{ post.url }}
- {{ site.url }}/{{ post.url }}
+ {{ post.url | prepend: site.baseurl }}
+ {{ post.url | prepend: site.baseurl }}
{% endfor %}
-
\ No newline at end of file
+
diff --git a/lib/site_template/index.html b/lib/site_template/index.html
index a14fd240f..a9f5097c6 100644
--- a/lib/site_template/index.html
+++ b/lib/site_template/index.html
@@ -8,10 +8,13 @@ layout: default
-
\ No newline at end of file
+
diff --git a/lib/site_template/projects/index.md b/lib/site_template/projects/index.md
deleted file mode 100644
index c45871341..000000000
--- a/lib/site_template/projects/index.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-layout: page
-title: Projects
----
-
-Just a sample of another page that you could include for some purpose in the primary navigation.
-
-This could be a great place to list your own projects. But to get you started, here's some handy links:
-
-- [List of Jekyll-powered websites](https://github.com/jekyll/jekyll/wiki/Sites)
-- [Octopress, a Jekyll based blog framework](https://github.com/octopress/)
-- [Jekyll documentation](http://jekyllrb.com/)
-- [Jekyll source on GitHub](https://github.com/jekyll/jekyll)
-- [Available plugins](http://jekyllrb.com/docs/plugins/#available_plugins)
\ No newline at end of file
From a2169bf0c4170e9dfae53e51ce07d508a745c3a5 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sun, 4 May 2014 21:19:09 -0400
Subject: [PATCH 027/160] Have separate methods for all docs and just the docs
that are being written.
---
lib/jekyll/site.rb | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb
index ccc6d2c60..3f57a83fd 100644
--- a/lib/jekyll/site.rb
+++ b/lib/jekyll/site.rb
@@ -405,7 +405,7 @@ module Jekyll
end
end
- def documents
+ def docs_to_write
collections.reduce(Set.new) do |docs, (_, collection)|
if collection.write?
docs.merge(collection.docs)
@@ -415,8 +415,14 @@ module Jekyll
end
end
+ def documents
+ collections.reduce(Set.new) do |docs, (_, collection)|
+ docs.merge(collection.docs)
+ end
+ end
+
def each_site_file
- %w(posts pages static_files documents).each do |type|
+ %w(posts pages static_files docs_to_write).each do |type|
send(type).each do |item|
yield item
end
From 54b74fafba7d42d54a22abf4cb41033900a9aa0e Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sun, 4 May 2014 21:22:51 -0400
Subject: [PATCH 028/160] Add documents to site payload
---
lib/jekyll/document.rb | 9 +++++++++
lib/jekyll/site.rb | 1 +
2 files changed, 10 insertions(+)
diff --git a/lib/jekyll/document.rb b/lib/jekyll/document.rb
index 0a75fe966..3b2b6eeb2 100644
--- a/lib/jekyll/document.rb
+++ b/lib/jekyll/document.rb
@@ -228,5 +228,14 @@ module Jekyll
path <=> anotherDocument.path
end
+ # Determine whether this document should be written.
+ # Based on the Collection to which it belongs.
+ #
+ # True if the document has a collection and if that collection's #write?
+ # method returns true, otherwise false.
+ def write?
+ collection && collection.write?
+ end
+
end
end
diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb
index 3f57a83fd..0b785e512 100644
--- a/lib/jekyll/site.rb
+++ b/lib/jekyll/site.rb
@@ -325,6 +325,7 @@ module Jekyll
"categories" => post_attr_hash('categories'),
"tags" => post_attr_hash('tags'),
"collections" => collections,
+ "documents" => documents,
"data" => site_data
}))
}
From fc98f06ed718d0c077de888e4417c5a0e6b0a674 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sun, 4 May 2014 21:22:57 -0400
Subject: [PATCH 029/160] Refactor docs_to_write
---
lib/jekyll/site.rb | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb
index 0b785e512..5350edecc 100644
--- a/lib/jekyll/site.rb
+++ b/lib/jekyll/site.rb
@@ -407,13 +407,7 @@ module Jekyll
end
def docs_to_write
- collections.reduce(Set.new) do |docs, (_, collection)|
- if collection.write?
- docs.merge(collection.docs)
- else
- docs
- end
- end
+ documents.select(&:write?)
end
def documents
From cb22320ae618db375f372d1b1243fcd1b46e586b Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Sun, 4 May 2014 21:23:47 -0400
Subject: [PATCH 030/160] Update history to reflect merge of #2268 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 6fdda7309..e0bd35a11 100644
--- a/History.markdown
+++ b/History.markdown
@@ -66,6 +66,7 @@
looking up of variable values in a Liquid context. (#2253)
* Remove literal lang name from class (#2292)
* Return `utf-8` encoding in header for webrick error page response (#2289)
+ * Make template site easier to customize (#2268)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
From bcb88a4bc508e44a1f8db7ca6263b6304bd7fbda Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 03:00:00 -0400
Subject: [PATCH 031/160] Add Jekyll 2.0.0 release post.
---
.../2014-05-05-jekyll-2-0-0-released.markdown | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
new file mode 100644
index 000000000..972adb5a5
--- /dev/null
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -0,0 +1,25 @@
+---
+layout: news_item
+title: 'Jekyll 2.0.0 Released'
+date: 2014-05-05 02:50:09 -0400
+author: parkr
+version: 2.0.0
+categories: [release]
+---
+
+It's here. After nearly 1,000 commits and about 5 months, the Jekyll team is excited to announce the release of Jekyll 2.0! Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Notable changes:
+
+1. [Collections](/docs/collections/)
+2. Brand new site template for `jekyll new` (thanks [@jglovier][]!)
+3. [Native Sass & CoffeeScript support](/docs/assets/)
+4. [YAML Front-Matter defaults](/docs/configuration/#frontmatter_defaults)
+5. Custom markdown processors
+6. Addition of `where` and `sort_by` Liquid filters
+7. Switch from Maruku to Kramdown as default markdown converter
+
+Check out our [changelog][] for a complete list of all (200+) changes.
+
+Happy developing!
+
+[changelog]: /docs/history/
+[@jglovier]: https://github.com/jglovier
From 7f88f80d8e99f83943bea7dcc6de52f0674fa9fc Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 03:01:28 -0400
Subject: [PATCH 032/160] Add nostalgia.
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index 972adb5a5..1d1293834 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -7,7 +7,9 @@ version: 2.0.0
categories: [release]
---
-It's here. After nearly 1,000 commits and about 5 months, the Jekyll team is excited to announce the release of Jekyll 2.0! Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Notable changes:
+One year ago, [we release Jekyll 1.0.0][]. One year later, we present to you the next major version: Jekyll 2.0.
+
+Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Some notable changes:
1. [Collections](/docs/collections/)
2. Brand new site template for `jekyll new` (thanks [@jglovier][]!)
From 491b3f8b1acff82fe92033f0f404aa09ce0893fa Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 03:05:37 -0400
Subject: [PATCH 033/160] Curse you, timezones.
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index 1d1293834..c0386c5fc 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -7,7 +7,7 @@ version: 2.0.0
categories: [release]
---
-One year ago, [we release Jekyll 1.0.0][]. One year later, we present to you the next major version: Jekyll 2.0.
+One year ago, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.
Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Some notable changes:
@@ -25,3 +25,4 @@ Happy developing!
[changelog]: /docs/history/
[@jglovier]: https://github.com/jglovier
+[jekyll-1]: {% post_url 2013-05-05-jekyll-1-0-0-released %}
From 19e704f408268f037e9d612ae85adbf253583254 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Mon, 5 May 2014 10:26:46 +0200
Subject: [PATCH 034/160] Override the sort filter
---
lib/jekyll/filters.rb | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb
index 997a0f5d8..ced9623fa 100644
--- a/lib/jekyll/filters.rb
+++ b/lib/jekyll/filters.rb
@@ -190,6 +190,29 @@ module Jekyll
input.select { |object| object[key] == value }
end
+ # Sort an array of objects
+ #
+ # input - the object array
+ # key - key within each object to filter by
+ # nils_last - nils appear after non-nil values in the sort ordering
+ #
+ # Returns the filtered array of objects
+ def sort(input, key = nil, nils_last = false)
+ if key.nil?
+ input.sort
+ else
+ input.sort { |a, b|
+ if a[key].nil? and !b[key].nil?
+ nils_last ? +1 : -1
+ elsif !a[key].nil? and b[key].nil?
+ nils_last ? -1 : +1
+ else
+ a[key] <=> b[key]
+ end
+ }
+ end
+ end
+
private
def time(input)
case input
From 3517b9f4e2d2f7d38d448d49b9bb59f2419f875e Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Mon, 5 May 2014 10:35:19 +0200
Subject: [PATCH 035/160] Add scenario
---
features/embed_filters.feature | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/features/embed_filters.feature b/features/embed_filters.feature
index 27f5f1df5..e0d85cbda 100644
--- a/features/embed_filters.feature
+++ b/features/embed_filters.feature
@@ -73,3 +73,19 @@ Feature: Embed filters
Then the _site directory should exist
And I should see exactly "Page-2, Page-1" in "_site/page-1.html"
And I should see exactly "Page-2, Page-1" in "_site/page-2.html"
+
+ Scenario: Sort pages by the title
+ Given I have a _layouts directory
+ And I have the following page:
+ | title | layout | content |
+ | Dog | default | Run |
+ And I have the following page:
+ | title | layout | content |
+ | Bird | default | Fly |
+ And I have the following page:
+ | layout | content |
+ | default | Jump |
+ And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
+ When I run jekyll build
+ Then the _site directory should exist
+ And I should see exactly "The rule of 3: Jump, Fly, Run," in "_site/bird.html"
From 367a818c267408f364427e0e7eba1d2a4ea9ea14 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Mon, 5 May 2014 10:37:21 +0200
Subject: [PATCH 036/160] Fallback title based on time
---
features/support/env.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/features/support/env.rb b/features/support/env.rb
index 800206909..298756298 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -28,7 +28,11 @@ def run_jekyll(args)
end
def slug(title)
- title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
+ if title
+ title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
+ else
+ Time.now.strftime("%s%9N") # nanoseconds since the Epoch
+ end
end
def location(folder, direction)
From 12d9f8b02bffb0cc779d78216d302758c7a4eb09 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Mon, 5 May 2014 10:49:29 +0200
Subject: [PATCH 037/160] Add scenario for ordering pages without title last
---
features/embed_filters.feature | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/features/embed_filters.feature b/features/embed_filters.feature
index e0d85cbda..b1a420f58 100644
--- a/features/embed_filters.feature
+++ b/features/embed_filters.feature
@@ -89,3 +89,19 @@ Feature: Embed filters
When I run jekyll build
Then the _site directory should exist
And I should see exactly "The rule of 3: Jump, Fly, Run," in "_site/bird.html"
+
+ Scenario: Sort pages by the title ordering pages without title last
+ Given I have a _layouts directory
+ And I have the following page:
+ | title | layout | content |
+ | Dog | default | Run |
+ And I have the following page:
+ | title | layout | content |
+ | Bird | default | Fly |
+ And I have the following page:
+ | layout | content |
+ | default | Jump |
+ And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title', true %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
+ When I run jekyll build
+ Then the _site directory should exist
+ And I should see exactly "The rule of 3: Fly, Run, Jump," in "_site/bird.html"
From cc80aab1919ece7872af24f1ca735dea1e500464 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Mon, 5 May 2014 11:14:07 +0200
Subject: [PATCH 038/160] Add generic tests
---
test/test_filters.rb | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/test/test_filters.rb b/test/test_filters.rb
index 67bcd0962..0d3d8deff 100644
--- a/test/test_filters.rb
+++ b/test/test_filters.rb
@@ -152,5 +152,24 @@ class TestFilters < Test::Unit::TestCase
end
end
+ context "sort filter" do
+ should "return sorted array" do
+ assert_equal [1, 2, 3, 4], @filter.sort([4, 3, 2, 1])
+ end
+ should "return sorted by property array" do
+ assert_equal [{"a" => 1}, {"a" => 2}, {"a" => 3}, {"a" => 4}],
+ @filter.sort([{"a" => 4}, {"a" => 3}, {"a" => 1}, {"a" => 2}], "a")
+ end
+ should "return sorted by property array with nils first" do
+ ary = [{"a" => 2}, {"b" => 1}, {"a" => 1}]
+ assert_equal [{"b" => 1}, {"a" => 1}, {"a" => 2}], @filter.sort(ary, "a")
+ assert_equal @filter.sort(ary, "a"), @filter.sort(ary, "a", false)
+ end
+ should "return sorted by property array with nils last" do
+ assert_equal [{"a" => 1}, {"a" => 2}, {"b" => 1}],
+ @filter.sort([{"a" => 2}, {"b" => 1}, {"a" => 1}], "a", true)
+ end
+ end
+
end
end
From fe696991461df0a08bc48335ee798e32a7bd6438 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 13:33:18 -0400
Subject: [PATCH 039/160] Remove date, better title props @benbalter
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index c0386c5fc..0c95f765c 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -1,7 +1,6 @@
---
layout: news_item
-title: 'Jekyll 2.0.0 Released'
-date: 2014-05-05 02:50:09 -0400
+title: 'Jekyll turns 2.0.0'
author: parkr
version: 2.0.0
categories: [release]
From 4c3c3a3f90e5c50dd3465a4aad58c38013bf9497 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 13:33:23 -0400
Subject: [PATCH 040/160] group_by not sort_by
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index 0c95f765c..b22c7ed68 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -15,7 +15,7 @@ Jam-packed with some [highly-requested features and bugfixes galore][changelog],
3. [Native Sass & CoffeeScript support](/docs/assets/)
4. [YAML Front-Matter defaults](/docs/configuration/#frontmatter_defaults)
5. Custom markdown processors
-6. Addition of `where` and `sort_by` Liquid filters
+6. Addition of `where` and `group_by` Liquid filters
7. Switch from Maruku to Kramdown as default markdown converter
Check out our [changelog][] for a complete list of all (200+) changes.
From 6b54b715d7ce0cdb33dd3f49135096ca1867a571 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 22:38:37 -0400
Subject: [PATCH 041/160] MAXIMUM NOSTALGIA
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index b22c7ed68..b5ed83e3f 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -6,7 +6,7 @@ version: 2.0.0
categories: [release]
---
-One year ago, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.
+Almost a year later to the day, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.
Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Some notable changes:
From 7056da079de8360b0d2a1bfdbd4277b4798ff115 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 22:41:33 -0400
Subject: [PATCH 042/160] Add list of 2.0.0 contributors.
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index b5ed83e3f..556d46d8b 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -20,6 +20,10 @@ Jam-packed with some [highly-requested features and bugfixes galore][changelog],
Check out our [changelog][] for a complete list of all (200+) changes.
+Many thanks to these 183 contributors for making Jekyll 2.0.0 happen!
+
+Parker Moore, Matt Rogers, maul.esel, Anatol Broder, Zach Gersh, Joel Glovier, Ben Balter, XhmikosR, Coby Chapple, John Piasetzki, Aidan Feldman, Robin Dupret, Pascal Borreli, Troy Swanson, Erik Michaels-Ober, albertogg, Lucas Jenss, Matt Rogers & Persa Zula, Eric Mill, Shigeya Suzuki, Jens Nazarenus, ddavison, Pat Hawks, Rob Wierzbowski, MURAOKA Taro, Casey Lang, Fabian Rodriguez, Greg Karékinian, Zlatan Vasović, Christopher Nicotera, Dmitry Chestnykh, Ryan Morrissey, Jordon, John Hughes, akira yamada, Matt Swanson, Jashank Jeremy, Matthew Iversen, Meeka, liufengyun, Anand Narayan, nitoyon, Geoff Shannon, Benjamin J. Balter, Juan Ignacio Donoso, David Briggs, Benjamin Esham, Slava Pavlutin, Assaf Gelber, Josh Brown, Nick Fagerlund, Davide Ficano, pilosus, Anthony Smith, André Arko, Mikael Konutgan, Matthew Scharley, Dan Tao, scribu, Mort Yao, m, Stephen McDonald, Marcus Stollsteimer, Thomas Torsney-Weir, Jordon Bedwell, Tom Preston-Werner, Lincoln Mullen, Philip Poots, Ivan Tse, Christopher Giroir, Valery Tolstov, Wlodek Bzyl, Xavier Noria, Yi Zeng, Persa Zula, Phil Leggetter, Pirogov Evgenij, Rafael Revi, Rob McGuire-Dale, Rob Muhlestein, Robin Mehner, Roland Warmerdam, Rusty Geldmacher, Sam Rayner, Santeri Paavolainen, Sebastian Morr, Stephan Groß, Steven Spasbo, Tobias Brunner, Tuomas Kareinen, Tyler Margison, Uwe Dauernheim, Yihang Ho, Zach Leatherman, Zequez, andrew morton, andrewhavens, imathis, jannypie, jaybe@jekyll, kk_Ataka, markets, redwallhp, schneems, szymzet, thomasdao, tomsugden, wǒ_is神仙, 张君君, Noah Slater, Abhi Yerra, Adam Heckler, Ahmed Hazem, Aigars Dzerviniks, Aleksey V. Zapparov, Andreas Möller, Andy Lindeman, Arlen Cuss, Aziz Shamim, Ben Baker-Smith, Ben Hanzl, Ben Hildred, Brian Kim, Brice, Carol Nichols, Chezou, Chris Jones, Christian Grobmeier, Christoph Hochstrasser, Christoph Schiessl, Clint Shryock, Colin Dean, Corey Ward, Damian Lettie, Daniel Schauenberg, David Ensinger, David Paschich, David Sawyer, David Silva Smith, Donald Perry, Doug Johnston, Edward Ball, Eric Dobson, Erik Dungan, Florent Guilleux, Francis, Frederic ROS, GSI2013, Garen Torikian, George Anderson, Giuseppe Capizzi, Ishibashi Hideto, Jarrod Birch, Jeff Kolesky, Jens Bissinger, Jens Krause, John Firebaugh, John Papandriopoulos, Josh Branchaud, Katy DeCorah, Lachlan Holden, Mark Prins, Markus Roth, Martin Charles, Matt Iversen, Matt Sheehan, Matt Swensen, Matthias Vogelgesang, Michael Parker, Miha Rekar, Nathan Youngman, Nick Quaranto, Nick Quinlan, Nick Schonning, Nicolas Alpi, Nicolás Reynolds, Nikkau, 4ensicLog, Octavian Damiean, Olov Lassus, PatrickC8t, Paul Annesley, Paul Oppenheim,
+
Happy developing!
[changelog]: /docs/history/
From f1a00a01cf6f4780654908a552ce57d0d849b52b Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 23:37:17 -0400
Subject: [PATCH 043/160] Give them a 1/4" hole, which is what they want
---
.../2014-05-05-jekyll-2-0-0-released.markdown | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index 556d46d8b..d6cdd7953 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -10,19 +10,19 @@ Almost a year later to the day, [we released Jekyll 1.0.0][jekyll-1]. One year l
Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Some notable changes:
-1. [Collections](/docs/collections/)
-2. Brand new site template for `jekyll new` (thanks [@jglovier][]!)
-3. [Native Sass & CoffeeScript support](/docs/assets/)
-4. [YAML Front-Matter defaults](/docs/configuration/#frontmatter_defaults)
-5. Custom markdown processors
-6. Addition of `where` and `group_by` Liquid filters
-7. Switch from Maruku to Kramdown as default markdown converter
+1. [Collections](/docs/collections/) - Collections allow you to define an unlimited number of custom document types (beyond just posts and pages) for different types of content you may want to author in Jekyll such as API documentation or a cookbook!
+2. [Brand new site template](https://github.com/jekyll/jekyll/pull/2050#issuecomment-35938016) (thanks [@jglovier][]!) - Getting started with Jekyll just got a lot easier and a lot more beautiful. Just run `jekyll new ` and you're good to go.
+3. [Native Sass & CoffeeScript support](/docs/assets/) - We love CSS and JavaScript as much as the next guy, but there will always be a special place in our hearts for Sass and CoffeeScript. We now offer native support for these file types — no more messing around with Rake or Grunt!
+4. [YAML Front-Matter defaults](/docs/configuration/#frontmatter_defaults) - If you've set `layout: post` more than once in your life, you'll love this new feature: set front-matter defaults for a given directory or type.
+5. [Custom markdown processors](/docs/configuration/#custom_markdown_processors) - Always wanted to use your favourite home-grown Markdown converter, but couldn't with Jekyll? Now you can. Simply specify `markdown: MyConverterClass` and you're on your way.
+6. [Addition of `where` and `group_by` Liquid filters](/docs/templates/#filters) - Simplifying your Liquid templates one filter at a time. The `where` filter selects from an array all items within which have a given value for a property. The `group_by` filter groups all items in an array which have the same value for a given property.
+7. [Switch from Maruku to Kramdown as default markdown converter](https://github.com/jekyll/jekyll/pull/1988) - Maruku is dead. We've replaced it with the converter which has the closest feature parity: Kramdown!
Check out our [changelog][] for a complete list of all (200+) changes.
-Many thanks to these 183 contributors for making Jekyll 2.0.0 happen!
+Many thanks to these 183 contributors for making Jekyll 2.0.0 happen:
-Parker Moore, Matt Rogers, maul.esel, Anatol Broder, Zach Gersh, Joel Glovier, Ben Balter, XhmikosR, Coby Chapple, John Piasetzki, Aidan Feldman, Robin Dupret, Pascal Borreli, Troy Swanson, Erik Michaels-Ober, albertogg, Lucas Jenss, Matt Rogers & Persa Zula, Eric Mill, Shigeya Suzuki, Jens Nazarenus, ddavison, Pat Hawks, Rob Wierzbowski, MURAOKA Taro, Casey Lang, Fabian Rodriguez, Greg Karékinian, Zlatan Vasović, Christopher Nicotera, Dmitry Chestnykh, Ryan Morrissey, Jordon, John Hughes, akira yamada, Matt Swanson, Jashank Jeremy, Matthew Iversen, Meeka, liufengyun, Anand Narayan, nitoyon, Geoff Shannon, Benjamin J. Balter, Juan Ignacio Donoso, David Briggs, Benjamin Esham, Slava Pavlutin, Assaf Gelber, Josh Brown, Nick Fagerlund, Davide Ficano, pilosus, Anthony Smith, André Arko, Mikael Konutgan, Matthew Scharley, Dan Tao, scribu, Mort Yao, m, Stephen McDonald, Marcus Stollsteimer, Thomas Torsney-Weir, Jordon Bedwell, Tom Preston-Werner, Lincoln Mullen, Philip Poots, Ivan Tse, Christopher Giroir, Valery Tolstov, Wlodek Bzyl, Xavier Noria, Yi Zeng, Persa Zula, Phil Leggetter, Pirogov Evgenij, Rafael Revi, Rob McGuire-Dale, Rob Muhlestein, Robin Mehner, Roland Warmerdam, Rusty Geldmacher, Sam Rayner, Santeri Paavolainen, Sebastian Morr, Stephan Groß, Steven Spasbo, Tobias Brunner, Tuomas Kareinen, Tyler Margison, Uwe Dauernheim, Yihang Ho, Zach Leatherman, Zequez, andrew morton, andrewhavens, imathis, jannypie, jaybe@jekyll, kk_Ataka, markets, redwallhp, schneems, szymzet, thomasdao, tomsugden, wǒ_is神仙, 张君君, Noah Slater, Abhi Yerra, Adam Heckler, Ahmed Hazem, Aigars Dzerviniks, Aleksey V. Zapparov, Andreas Möller, Andy Lindeman, Arlen Cuss, Aziz Shamim, Ben Baker-Smith, Ben Hanzl, Ben Hildred, Brian Kim, Brice, Carol Nichols, Chezou, Chris Jones, Christian Grobmeier, Christoph Hochstrasser, Christoph Schiessl, Clint Shryock, Colin Dean, Corey Ward, Damian Lettie, Daniel Schauenberg, David Ensinger, David Paschich, David Sawyer, David Silva Smith, Donald Perry, Doug Johnston, Edward Ball, Eric Dobson, Erik Dungan, Florent Guilleux, Francis, Frederic ROS, GSI2013, Garen Torikian, George Anderson, Giuseppe Capizzi, Ishibashi Hideto, Jarrod Birch, Jeff Kolesky, Jens Bissinger, Jens Krause, John Firebaugh, John Papandriopoulos, Josh Branchaud, Katy DeCorah, Lachlan Holden, Mark Prins, Markus Roth, Martin Charles, Matt Iversen, Matt Sheehan, Matt Swensen, Matthias Vogelgesang, Michael Parker, Miha Rekar, Nathan Youngman, Nick Quaranto, Nick Quinlan, Nick Schonning, Nicolas Alpi, Nicolás Reynolds, Nikkau, 4ensicLog, Octavian Damiean, Olov Lassus, PatrickC8t, Paul Annesley, Paul Oppenheim,
+Parker Moore, Matt Rogers, maul.esel, Anatol Broder, Zach Gersh, Joel Glovier, Ben Balter, XhmikosR, Coby Chapple, John Piasetzki, Aidan Feldman, Robin Dupret, Pascal Borreli, Troy Swanson, Erik Michaels-Ober, albertogg, Lucas Jenss, Matt Rogers & Persa Zula, Eric Mill, Shigeya Suzuki, Jens Nazarenus, ddavison, Pat Hawks, Rob Wierzbowski, MURAOKA Taro, Casey Lang, Fabian Rodriguez, Greg Karékinian, Zlatan Vasović, Christopher Nicotera, Dmitry Chestnykh, Ryan Morrissey, Jordon, John Hughes, akira yamada, Matt Swanson, Jashank Jeremy, Matthew Iversen, Meeka, liufengyun, Anand Narayan, nitoyon, Geoff Shannon, Benjamin J. Balter, Juan Ignacio Donoso, David Briggs, Benjamin Esham, Slava Pavlutin, Assaf Gelber, Josh Brown, Nick Fagerlund, Davide Ficano, pilosus, Anthony Smith, André Arko, Mikael Konutgan, Matthew Scharley, Dan Tao, scribu, Mort Yao, m, Stephen McDonald, Marcus Stollsteimer, Thomas Torsney-Weir, Jordon Bedwell, Tom Preston-Werner, Lincoln Mullen, Philip Poots, Ivan Tse, Christopher Giroir, Valery Tolstov, Wlodek Bzyl, Xavier Noria, Yi Zeng, Persa Zula, Phil Leggetter, Pirogov Evgenij, Rafael Revi, Rob McGuire-Dale, Rob Muhlestein, Robin Mehner, Roland Warmerdam, Rusty Geldmacher, Sam Rayner, Santeri Paavolainen, Sebastian Morr, Stephan Groß, Steven Spasbo, Tobias Brunner, Tuomas Kareinen, Tyler Margison, Uwe Dauernheim, Yihang Ho, Zach Leatherman, Zequez, andrew morton, andrewhavens, imathis, jannypie, jaybe@jekyll, kk_Ataka, markets, redwallhp, schneems, szymzet, thomasdao, tomsugden, wǒ_is神仙, 张君君, Noah Slater, Abhi Yerra, Adam Heckler, Ahmed Hazem, Aigars Dzerviniks, Aleksey V. Zapparov, Andreas Möller, Andy Lindeman, Arlen Cuss, Aziz Shamim, Ben Baker-Smith, Ben Hanzl, Ben Hildred, Brian Kim, Brice, Carol Nichols, Chezou, Chris Jones, Christian Grobmeier, Christoph Hochstrasser, Christoph Schiessl, Clint Shryock, Colin Dean, Corey Ward, Damian Lettie, Daniel Schauenberg, David Ensinger, David Paschich, David Sawyer, David Silva Smith, Donald Perry, Doug Johnston, Edward Ball, Eric Dobson, Erik Dungan, Florent Guilleux, Francis, Frederic ROS, GSI2013, Garen Torikian, George Anderson, Giuseppe Capizzi, Ishibashi Hideto, Jarrod Birch, Jeff Kolesky, Jens Bissinger, Jens Krause, John Firebaugh, John Papandriopoulos, Josh Branchaud, Katy DeCorah, Lachlan Holden, Mark Prins, Markus Roth, Martin Charles, Matt Iversen, Matt Sheehan, Matt Swensen, Matthias Vogelgesang, Michael Parker, Miha Rekar, Nathan Youngman, Nick Quaranto, Nick Quinlan, Nick Schonning, Nicolas Alpi, Nicolás Reynolds, Nikkau, 4ensicLog, Octavian Damiean, Olov Lassus, PatrickC8t, Paul Annesley, and Paul Oppenheim.
Happy developing!
From 2f660674c3044a818170209aea4803d3ecf31ea0 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 23:37:25 -0400
Subject: [PATCH 044/160] Add docs for group_by and where filters
---
site/docs/templates.md | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/site/docs/templates.md b/site/docs/templates.md
index a4c791845..12ae5d418 100644
--- a/site/docs/templates.md
+++ b/site/docs/templates.md
@@ -79,6 +79,32 @@ common tasks easier.
+
+
+
Where
+
Select all the object in an array where the key has the given.
From 581b07d09674c327dd2d6401f3cbebdc7d4f3ebe Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 23:45:18 -0400
Subject: [PATCH 045/160] Add docs about custom markdown processor
---
.../2014-05-05-jekyll-2-0-0-released.markdown | 2 +-
site/docs/configuration.md | 27 +++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index d6cdd7953..b5a15e694 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -14,7 +14,7 @@ Jam-packed with some [highly-requested features and bugfixes galore][changelog],
2. [Brand new site template](https://github.com/jekyll/jekyll/pull/2050#issuecomment-35938016) (thanks [@jglovier][]!) - Getting started with Jekyll just got a lot easier and a lot more beautiful. Just run `jekyll new ` and you're good to go.
3. [Native Sass & CoffeeScript support](/docs/assets/) - We love CSS and JavaScript as much as the next guy, but there will always be a special place in our hearts for Sass and CoffeeScript. We now offer native support for these file types — no more messing around with Rake or Grunt!
4. [YAML Front-Matter defaults](/docs/configuration/#frontmatter_defaults) - If you've set `layout: post` more than once in your life, you'll love this new feature: set front-matter defaults for a given directory or type.
-5. [Custom markdown processors](/docs/configuration/#custom_markdown_processors) - Always wanted to use your favourite home-grown Markdown converter, but couldn't with Jekyll? Now you can. Simply specify `markdown: MyConverterClass` and you're on your way.
+5. [Custom markdown processors](/docs/configuration/#custom-markdown-processors) - Always wanted to use your favourite home-grown Markdown converter, but couldn't with Jekyll? Now you can. Simply specify `markdown: MyConverterClass` and you're on your way.
6. [Addition of `where` and `group_by` Liquid filters](/docs/templates/#filters) - Simplifying your Liquid templates one filter at a time. The `where` filter selects from an array all items within which have a given value for a property. The `group_by` filter groups all items in an array which have the same value for a given property.
7. [Switch from Maruku to Kramdown as default markdown converter](https://github.com/jekyll/jekyll/pull/1988) - Maruku is dead. We've replaced it with the converter which has the closest feature parity: Kramdown!
diff --git a/site/docs/configuration.md b/site/docs/configuration.md
index b93f973e9..c273ca6a4 100644
--- a/site/docs/configuration.md
+++ b/site/docs/configuration.md
@@ -454,3 +454,30 @@ For example, in your `_config.yml`:
kramdown:
input: GFM
+
+### Custom Markdown Processors
+
+If you're interested in creating a custom markdown processor, you're in luck! Create a new class in the `Jekyll::Converters::Markdown` namespace:
+
+{% highlight ruby %}
+class Jekyll::Converters::Markdown::MyCustomProcessor
+ def initialize(config)
+ require 'funky_markdown'
+ @config = config
+ rescue LoadError
+ STDERR.puts 'You are missing a library required for Markdown. Please run:'
+ STDERR.puts ' $ [sudo] gem install funky_markdown'
+ raise FatalException.new("Missing dependency: funky_markdown")
+ end
+
+ def convert(content)
+ ::FunkyMarkdown.new(content).convert
+ end
+end
+{% endhighlight %}
+
+Once you've created your class and have it properly setup either as a plugin in the `_plugins` folder or as a gem, specify it in your `_config.yml`:
+
+{% highlight yaml %}
+markdown: MyCustomProcessor
+{% endhighlight %}
From 851d17e028bed84c1a004437333c37da080abc00 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 5 May 2014 23:46:41 -0400
Subject: [PATCH 046/160] Update history to reflect merge of #2297 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index e0bd35a11..c724b59d8 100644
--- a/History.markdown
+++ b/History.markdown
@@ -206,6 +206,7 @@
* Fixed broken link to GitHub training material site source (#2257)
* Update link to help repo, now called `jekyll-help` (#2277)
* Fix capitalization of 'Jekyll' on Deployment Methods page (#2291)
+ * Include plugins by sonnym in list of third-party plugins (#2297)
## 1.5.1 / 2014-03-27
From d002ebd3737bc7aa04c8a336003da92642baef76 Mon Sep 17 00:00:00 2001
From: kzykbys
Date: Mon, 5 May 2014 20:53:02 -0700
Subject: [PATCH 047/160] Add Deprecated articles keeper plugin
---
site/docs/plugins.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/site/docs/plugins.md b/site/docs/plugins.md
index 571f4b8f2..90ac813eb 100644
--- a/site/docs/plugins.md
+++ b/site/docs/plugins.md
@@ -462,6 +462,7 @@ You can find a few useful plugins at the following locations:
- [Table of Content Generator](https://github.com/dafi/jekyll-toc-generator): Generate the HTML code containing a table of content (TOC), the TOC can be customized in many way, for example you can decide which pages can be without TOC.
- [jekyll-humanize](https://github.com/23maverick23/jekyll-humanize): This is a port of the Django app humanize which adds a "human touch" to data. Each method represents a Fluid type filter that can be used in your Jekyll site templates. Given that Jekyll produces static sites, some of the original methods do not make logical sense to port (e.g. naturaltime).
- [Jekyll-Ordinal](https://github.com/PatrickC8t/Jekyll-Ordinal): Jekyll liquid filter to output a date ordinal such as "st", "nd", "rd", or "th".
+- [Deprecated articles keeper](https://github.com/kzykbys/JekyllPlugins) by [Kazuya Kobayashi](http://blog.kazuya.co/): A simple Jekyll filter which monitor how old an article is.
#### Tags
From 3755437d089674102289edea4dab5c0c99c96ea5 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 00:11:35 -0400
Subject: [PATCH 048/160] Write test for site.documents.
---
features/collections.feature | 12 ++++++++++++
lib/jekyll/site.rb | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/features/collections.feature b/features/collections.feature
index 32e9161cd..402e7daba 100644
--- a/features/collections.feature
+++ b/features/collections.feature
@@ -70,3 +70,15 @@ Feature: Collections
When I run jekyll build
Then the _site directory should exist
And I should see "Collections: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
+
+ Scenario: All the documents
+ Given I have an "index.html" page that contains "All documents: {% for doc in site.documents %}{{ doc.relative_path }} {% endfor %}"
+ And I have fixture collections
+ And I have a "_config.yml" file with content:
+ """
+ collections:
+ - methods
+ """
+ When I run jekyll build
+ Then the _site directory should exist
+ And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb
index 5350edecc..5ebf3c20a 100644
--- a/lib/jekyll/site.rb
+++ b/lib/jekyll/site.rb
@@ -413,7 +413,7 @@ module Jekyll
def documents
collections.reduce(Set.new) do |docs, (_, collection)|
docs.merge(collection.docs)
- end
+ end.to_a
end
def each_site_file
From 9c9e96cfa7bfe73f41e2d35a71f822907000c554 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Tue, 6 May 2014 07:48:33 +0200
Subject: [PATCH 049/160] Add lexicographical sort test
---
test/test_filters.rb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/test_filters.rb b/test/test_filters.rb
index 0d3d8deff..940932591 100644
--- a/test/test_filters.rb
+++ b/test/test_filters.rb
@@ -169,6 +169,12 @@ class TestFilters < Test::Unit::TestCase
assert_equal [{"a" => 1}, {"a" => 2}, {"b" => 1}],
@filter.sort([{"a" => 2}, {"b" => 1}, {"a" => 1}], "a", true)
end
+ should "return lexicographical sorted array" do
+ assert_equal [2, 10], @filter.sort([10, 2])
+ assert_equal [{"a" => 2}, {"a" => 10}], @filter.sort([{"a" => 10}, {"a" => 2}], "a")
+ assert_equal ["10", "2"], @filter.sort(["10", "2"])
+ assert_equal [{"a" => "10"}, {"a" => "2"}], @filter.sort([{"a" => "10"}, {"a" => "2"}], "a")
+ end
end
end
From 5bf40983564ffe85a21eee9048f5339fc3ca4913 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 12:14:50 -0400
Subject: [PATCH 050/160] Update history to reflect merge of #2301 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index c724b59d8..7ae25c843 100644
--- a/History.markdown
+++ b/History.markdown
@@ -67,6 +67,7 @@
* Remove literal lang name from class (#2292)
* Return `utf-8` encoding in header for webrick error page response (#2289)
* Make template site easier to customize (#2268)
+ * Add two-digit year to permalink template option (#2301)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
From b2d7938cec6dab0ad9f0db00689166d66a45f2ff Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 12:18:00 -0400
Subject: [PATCH 051/160] Speak English properly.
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index b5a15e694..35ab3d43e 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -6,7 +6,7 @@ version: 2.0.0
categories: [release]
---
-Almost a year later to the day, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.
+Almost a year ago to the day, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.0.
Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Some notable changes:
From 79fb58713516f904fc67431800c1a3973f936674 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 12:28:24 -0400
Subject: [PATCH 052/160] Update history to reflect merge of #2300 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 7ae25c843..6900cfd76 100644
--- a/History.markdown
+++ b/History.markdown
@@ -208,6 +208,7 @@
* Update link to help repo, now called `jekyll-help` (#2277)
* Fix capitalization of 'Jekyll' on Deployment Methods page (#2291)
* Include plugins by sonnym in list of third-party plugins (#2297)
+ * Add deprecated articles keeper filter to list of third-party plugins (#2300)
## 1.5.1 / 2014-03-27
From 3eafb29eb8ab7eafb01373c078ab92866fb975b7 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 12:29:42 -0400
Subject: [PATCH 053/160] Update history to reflect merge of #2295 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 6900cfd76..fe3945736 100644
--- a/History.markdown
+++ b/History.markdown
@@ -68,6 +68,7 @@
* Return `utf-8` encoding in header for webrick error page response (#2289)
* Make template site easier to customize (#2268)
* Add two-digit year to permalink template option (#2301)
+ * Add `site.documents` to Liquid payload (list of all docs) (#2295)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
From 1a38207fafbc3eb5145f8edba122535ac77194ba Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 12:31:33 -0400
Subject: [PATCH 054/160] Add docs for site.documents.
Ref: #2295.
---
site/docs/variables.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/site/docs/variables.md b/site/docs/variables.md
index d6c7390b4..8e6c22c7b 100644
--- a/site/docs/variables.md
+++ b/site/docs/variables.md
@@ -125,6 +125,17 @@ following is a reference of the available data.
From ea054ef1491843ad78846b85b115fb3eba7e5f88 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 15:27:13 -0400
Subject: [PATCH 079/160] Add test for document.output.
Test for ref: 00f21ee93ca28913ef027caef893488d2f93ff75
Closes #2232.
---
features/collections.feature | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/features/collections.feature b/features/collections.feature
index 402e7daba..821ae64f1 100644
--- a/features/collections.feature
+++ b/features/collections.feature
@@ -82,3 +82,15 @@ Feature: Collections
When I run jekyll build
Then the _site directory should exist
And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
+
+ Scenario: Documents have an output attribute, which is the converted HTML
+ Given I have an "index.html" page that contains "First document's output: {{ site.documents.first.output }}"
+ And I have fixture collections
+ And I have a "_config.yml" file with content:
+ """
+ collections:
+ - methods
+ """
+ When I run jekyll build
+ Then the _site directory should exist
+ And I should see "First document's output:
Use Jekyll.configuration to build a full configuration for use w/Jekyll.
\n\n
Whatever: foo.bar
" in "_site/index.html"
From 7c1709fab4b0ef1ce9957cbcc6635f538850ae3c Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Tue, 6 May 2014 21:36:13 +0200
Subject: [PATCH 080/160] Change nils argument to string
---
features/embed_filters.feature | 2 +-
lib/jekyll/filters.rb | 8 ++++----
site/docs/templates.md | 5 +++--
test/test_filters.rb | 4 ++--
4 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/features/embed_filters.feature b/features/embed_filters.feature
index b1a420f58..889a1fc7b 100644
--- a/features/embed_filters.feature
+++ b/features/embed_filters.feature
@@ -101,7 +101,7 @@ Feature: Embed filters
And I have the following page:
| layout | content |
| default | Jump |
- And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title', true %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
+ And I have a default layout that contains "{% assign sorted_pages = site.pages | sort: 'title', 'last' %}The rule of {{ sorted_pages.size }}: {% for p in sorted_pages %}{{ p.content | strip_html | strip_newlines }}, {% endfor %}"
When I run jekyll build
Then the _site directory should exist
And I should see exactly "The rule of 3: Fly, Run, Jump," in "_site/bird.html"
diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb
index ced9623fa..fe438834e 100644
--- a/lib/jekyll/filters.rb
+++ b/lib/jekyll/filters.rb
@@ -194,18 +194,18 @@ module Jekyll
#
# input - the object array
# key - key within each object to filter by
- # nils_last - nils appear after non-nil values in the sort ordering
+ # nils ('first' | 'last') - nils appear before or after non-nil values
#
# Returns the filtered array of objects
- def sort(input, key = nil, nils_last = false)
+ def sort(input, key = nil, nils = 'first')
if key.nil?
input.sort
else
input.sort { |a, b|
if a[key].nil? and !b[key].nil?
- nils_last ? +1 : -1
+ nils == 'first' ? -1 : +1
elsif !a[key].nil? and b[key].nil?
- nils_last ? -1 : +1
+ nils == 'first' ? +1 : -1
else
a[key] <=> b[key]
end
diff --git a/site/docs/templates.md b/site/docs/templates.md
index 460e4d329..dd8c81071 100644
--- a/site/docs/templates.md
+++ b/site/docs/templates.md
@@ -187,12 +187,13 @@ common tasks easier.
Sort
-
Sort array. Optional arguments: property, nils last.
+
Sort array. Optional arguments: property name; nils order (*first* or *last*).
From 21ab72b4da3ad2fbec82bdcd87a5421afd700517 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 16:29:49 -0400
Subject: [PATCH 086/160] Update history to reflect merge of #2310 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 3e6e24589..e2004dfce 100644
--- a/History.markdown
+++ b/History.markdown
@@ -104,6 +104,7 @@
* Modify configuration key for Collections and reset properly. (#2238)
* Avoid duplicated output using `highlight` tag (#2264)
* Only use Jekyll.logger for output (#2307)
+ * Close the file descriptor in `has_yaml_header?` (#2310)
### Development Fixes
* Add a link to the site in the README.md file (#1795)
From 4f1708092923cd73bf2994e28167b01244fbd2f7 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 16:31:04 -0400
Subject: [PATCH 087/160] Update history to reflect merge of #2309 [ci skip]
---
History.markdown | 2 ++
1 file changed, 2 insertions(+)
diff --git a/History.markdown b/History.markdown
index e2004dfce..1122e33fa 100644
--- a/History.markdown
+++ b/History.markdown
@@ -105,6 +105,7 @@
* Avoid duplicated output using `highlight` tag (#2264)
* Only use Jekyll.logger for output (#2307)
* Close the file descriptor in `has_yaml_header?` (#2310)
+ * Add `output` to `Document` liquid output hash (#2309)
### Development Fixes
* Add a link to the site in the README.md file (#1795)
@@ -221,6 +222,7 @@
* Add 2.0.0 release post (#2298)
* Add docs for custom markdown processors (#2298)
* Add docs for `where` and `group_by` Liquid filters (#2298)
+ * Remove notes in docs for unreleased features (#2309)
## 1.5.1 / 2014-03-27
From 1e0d9f899b5f81da7e2dbe7c324e34352dba4fd9 Mon Sep 17 00:00:00 2001
From: Anatol Broder
Date: Tue, 6 May 2014 22:49:49 +0200
Subject: [PATCH 088/160] Follow Ruby Styleguide
---
lib/jekyll/filters.rb | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb
index fe438834e..10c1aa415 100644
--- a/lib/jekyll/filters.rb
+++ b/lib/jekyll/filters.rb
@@ -197,15 +197,26 @@ module Jekyll
# nils ('first' | 'last') - nils appear before or after non-nil values
#
# Returns the filtered array of objects
- def sort(input, key = nil, nils = 'first')
+ def sort(input, key = nil, nils = "first")
if key.nil?
input.sort
else
+ case
+ when nils == "first"
+ order = - 1
+ when nils == "last"
+ order = + 1
+ else
+ Jekyll.logger.error "Invalid nils order:",
+ "'#{nils}' is not a valid nils order. It must be 'first' or 'last'."
+ exit(1)
+ end
+
input.sort { |a, b|
- if a[key].nil? and !b[key].nil?
- nils == 'first' ? -1 : +1
- elsif !a[key].nil? and b[key].nil?
- nils == 'first' ? +1 : -1
+ if !a[key].nil? && b[key].nil?
+ - order
+ elsif a[key].nil? && !b[key].nil?
+ + order
else
a[key] <=> b[key]
end
From e7e67ad235d5b7c9afcef5010821fb42b00d63ca Mon Sep 17 00:00:00 2001
From: Matt Rogers
Date: Tue, 6 May 2014 16:49:40 -0500
Subject: [PATCH 089/160] Update history to reflect merge of #2299 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 1122e33fa..9dd3a8965 100644
--- a/History.markdown
+++ b/History.markdown
@@ -71,6 +71,7 @@
* Make template site easier to customize (#2268)
* Add two-digit year to permalink template option (#2301)
* Add `site.documents` to Liquid payload (list of all docs) (#2295)
+ * Take into account missing values in the Liquid sort filter (#2299)
### Bug Fixes
* Don't allow nil entries when loading posts (#1796)
From 344906deb9f26895dc3e87cc0f6b639433f0817c Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 20:11:44 -0400
Subject: [PATCH 090/160] Release 2.0.0.
---
jekyll.gemspec | 2 +-
lib/jekyll/version.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/jekyll.gemspec b/jekyll.gemspec
index d61264a7b..c56dec17c 100644
--- a/jekyll.gemspec
+++ b/jekyll.gemspec
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('redcarpet', "~> 3.1")
s.add_runtime_dependency('toml', '~> 0.1.0')
s.add_runtime_dependency('jekyll-coffeescript', '~> 1.0')
- s.add_runtime_dependency('jekyll-sass-converter', '~> 1.0.0.rc4')
+ s.add_runtime_dependency('jekyll-sass-converter', '~> 1.0')
s.add_development_dependency('rake', "~> 10.1")
s.add_development_dependency('rdoc', "~> 3.11")
diff --git a/lib/jekyll/version.rb b/lib/jekyll/version.rb
index c6de14f66..88f264aba 100644
--- a/lib/jekyll/version.rb
+++ b/lib/jekyll/version.rb
@@ -1,3 +1,3 @@
module Jekyll
- VERSION = '2.0.0.rc1'
+ VERSION = '2.0.0'
end
From 13f19ea21ae622f7291e9aa9e2f70d4c7417b899 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:06:27 -0400
Subject: [PATCH 091/160] Update histories to reflect 2.0.0 release.
---
History.markdown | 12 +++
site/docs/history.md | 227 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 239 insertions(+)
diff --git a/History.markdown b/History.markdown
index 9dd3a8965..ad060fff2 100644
--- a/History.markdown
+++ b/History.markdown
@@ -1,5 +1,17 @@
## HEAD
+### Major Enhancements
+
+### Minor Enhancements
+
+### Bug Fixes
+
+### Development Fixes
+
+### Site Enhancements
+
+## 2.0.0 / 2014-05-06
+
### Major Enhancements
* Add "Collections" feature (#2199)
* Add gem-based plugin whitelist to safe mode (#1657)
diff --git a/site/docs/history.md b/site/docs/history.md
index 87b13d413..ef817e113 100644
--- a/site/docs/history.md
+++ b/site/docs/history.md
@@ -5,6 +5,233 @@ permalink: "/docs/history/"
prev_section: contributing
---
+## 2.0.0 / 2014-05-06
+
+### Major Enhancements
+- Add "Collections" feature ([#2199]({{ site.repository }}/issues/2199))
+- Add gem-based plugin whitelist to safe mode ([#1657]({{ site.repository }}/issues/1657))
+- Replace the commander command line parser with a more robust
+ solution for our needs called `mercenary` ([#1706]({{ site.repository }}/issues/1706))
+- Remove support for Ruby 1.8.x ([#1780]({{ site.repository }}/issues/1780))
+- Move to jekyll/jekyll from mojombo/jekyll ([#1817]({{ site.repository }}/issues/1817))
+- Allow custom markdown processors ([#1872]({{ site.repository }}/issues/1872))
+- Provide support for the Rouge syntax highlighter ([#1859]({{ site.repository }}/issues/1859))
+- Provide support for Sass ([#1932]({{ site.repository }}/issues/1932))
+- Provide a 300% improvement when generating sites that use
+ `Post#next` or `Post#previous` ([#1983]({{ site.repository }}/issues/1983))
+- Provide support for CoffeeScript ([#1991]({{ site.repository }}/issues/1991))
+- Replace Maruku with Kramdown as Default Markdown Processor ([#1988]({{ site.repository }}/issues/1988))
+- Expose `site.static_files` to Liquid ([#2075]({{ site.repository }}/issues/2075))
+- Complete redesign of the template site generated by `jekyll new` ([#2050]({{ site.repository }}/issues/2050))
+- Update Listen from 1.x to 2.x ([#2097]({{ site.repository }}/issues/2097))
+- Front-matter defaults ([#2205]({{ site.repository }}/issues/2205))
+- Deprecate `relative_permalinks` configuration option (default to `false`) ([#2307]({{ site.repository }}/issues/2307))
+- Exclude files based on prefix as well as `fnmatch?` ([#2303]({{ site.repository }}/issues/2303))
+
+### Minor Enhancements
+- Move the EntryFilter class into the Jekyll module to avoid polluting the
+ global namespace ([#1800]({{ site.repository }}/issues/1800))
+- Add `group_by` Liquid filter create lists of items grouped by a common
+ property's value ([#1788]({{ site.repository }}/issues/1788))
+- Add support for Maruku's `fenced_code_blocks` option ([#1799]({{ site.repository }}/issues/1799))
+- Update Redcarpet dependency to ~> 3.0 ([#1815]({{ site.repository }}/issues/1815))
+- Automatically sort all pages by name ([#1848]({{ site.repository }}/issues/1848))
+- Better error message when time is not parseable ([#1847]({{ site.repository }}/issues/1847))
+- Allow `include` tag variable arguments to use filters ([#1841]({{ site.repository }}/issues/1841))
+- `post_url` tag should raise `ArgumentError` for invalid name ([#1825]({{ site.repository }}/issues/1825))
+- Bump dependency `mercenary` to `~> 0.2.0` ([#1879]({{ site.repository }}/issues/1879))
+- Bump dependency `safe_yaml` to `~> 1.0` ([#1886]({{ site.repository }}/issues/1886))
+- Allow sorting of content by custom properties ([#1849]({{ site.repository }}/issues/1849))
+- Add `--quiet` flag to silence output during build and serve ([#1898]({{ site.repository }}/issues/1898))
+- Add a `where` filter to filter arrays based on a key/value pair
+ ([#1875]({{ site.repository }}/issues/1875))
+- Route 404 errors to a custom 404 page in development ([#1899]({{ site.repository }}/issues/1899))
+- Excludes are now relative to the site source ([#1916]({{ site.repository }}/issues/1916))
+- Bring MIME Types file for `jekyll serve` to complete parity with GH Pages
+ servers ([#1993]({{ site.repository }}/issues/1993))
+- Adding Breakpoint to make new site template more responsive ([#2038]({{ site.repository }}/issues/2038))
+- Default to using the UTF-8 encoding when reading files. ([#2031]({{ site.repository }}/issues/2031))
+- Update Redcarpet dependency to ~> 3.1 ([#2044]({{ site.repository }}/issues/2044))
+- Remove support for Ruby 1.9.2 ([#2045]({{ site.repository }}/issues/2045))
+- Add `.mkdown` as valid Markdown extension ([#2048]({{ site.repository }}/issues/2048))
+- Add `index.xml` to the list of WEBrick directory index files ([#2041]({{ site.repository }}/issues/2041))
+- Make the `layouts` config key relative to CWD or to source ([#2058]({{ site.repository }}/issues/2058))
+- Update Kramdown to `~> 1.3` ([#1894]({{ site.repository }}/issues/1894))
+- Remove unnecessary references to `self` ([#2090]({{ site.repository }}/issues/2090))
+- Update to Mercenary v0.3.x ([#2085]({{ site.repository }}/issues/2085))
+- Ship Sass support as a separate gem ([#2098]({{ site.repository }}/issues/2098))
+- Extract core extensions into a Utils module ([#2112]({{ site.repository }}/issues/2112))
+- Refactor CLI & Commands For Greater Happiness ([#2143]({{ site.repository }}/issues/2143))
+- Provide useful error when Pygments returns `nil` and error out ([#2148]({{ site.repository }}/issues/2148))
+- Add support for unpublished drafts ([#2164]({{ site.repository }}/issues/2164))
+- Add `force_polling` option to the `serve` command ([#2165]({{ site.repository }}/issues/2165))
+- Clean up the `` in the site template ([#2186]({{ site.repository }}/issues/2186))
+- Permit YAML blocks to end with three dots to better conform with the
+ YAML spec ([#2110]({{ site.repository }}/issues/2110))
+- Use `File.exist?` instead of deprecated `File.exists?` ([#2214]({{ site.repository }}/issues/2214))
+- Require newline after start of YAML front-matter header ([#2211]({{ site.repository }}/issues/2211))
+- Add the ability for pages to be marked as `published: false` ([#1492]({{ site.repository }}/issues/1492))
+- Add `Jekyll::LiquidExtensions` with `.lookup_variable` method for easy
+ looking up of variable values in a Liquid context. ([#2253]({{ site.repository }}/issues/2253))
+- Remove literal lang name from class ([#2292]({{ site.repository }}/issues/2292))
+- Return `utf-8` encoding in header for webrick error page response ([#2289]({{ site.repository }}/issues/2289))
+- Make template site easier to customize ([#2268]({{ site.repository }}/issues/2268))
+- Add two-digit year to permalink template option ([#2301]({{ site.repository }}/issues/2301))
+- Add `site.documents` to Liquid payload (list of all docs) ([#2295]({{ site.repository }}/issues/2295))
+- Take into account missing values in the Liquid sort filter ([#2299]({{ site.repository }}/issues/2299))
+
+### Bug Fixes
+- Don't allow nil entries when loading posts ([#1796]({{ site.repository }}/issues/1796))
+- Remove the scrollbar that's always displayed in new sites generated
+ from the site template ([#1805]({{ site.repository }}/issues/1805))
+- Add `#path` to required methods in `Jekyll::Convertible` ([#1866]({{ site.repository }}/issues/1866))
+- Default Maruku fenced code blocks to ON for 2.0.0-dev ([#1831]({{ site.repository }}/issues/1831))
+- Change short opts for host and port for `jekyll docs` to be consistent with
+ other subcommands ([#1877]({{ site.repository }}/issues/1877))
+- Fix typos ([#1910]({{ site.repository }}/issues/1910))
+- Lock Maruku at 0.7.0 to prevent bugs caused by Maruku 0.7.1 ([#1958]({{ site.repository }}/issues/1958))
+- Fixes full path leak to source directory when using include tag ([#1951]({{ site.repository }}/issues/1951))
+- Don't generate pages that aren't being published ([#1931]({{ site.repository }}/issues/1931))
+- Use `SafeYAML.load` to avoid conflicts with other projects ([#1982]({{ site.repository }}/issues/1982))
+- Relative posts should never fail to build ([#1976]({{ site.repository }}/issues/1976))
+- Remove executable bits of non executable files ([#2056]({{ site.repository }}/issues/2056))
+- `#path` for a draft is now `_drafts` instead of `_posts` ([#2042]({{ site.repository }}/issues/2042))
+- Patch a couple show-stopping security vulnerabilities ([#1946]({{ site.repository }}/issues/1946))
+- Sanitize paths uniformly, in a Windows-friendly way ([#2065]({{ site.repository }}/issues/2065), [#2109]({{ site.repository }}/issues/2109))
+- Update gem build steps to work correctly on Windows ([#2118]({{ site.repository }}/issues/2118))
+- Remove obsolete `normalize_options` method call from `bin/jekyll` ([#2121]({{ site.repository }}/issues/2121)).
+- Remove `+` characters from Pygments lexer names when adding as a CSS
+ class ([#994]({{ site.repository }}/issues/994))
+- Remove some code that caused Ruby interpreter warnings ([#2178]({{ site.repository }}/issues/2178))
+- Only strip the drive name if it begins the string ([#2175]({{ site.repository }}/issues/2175))
+- Remove default post with invalid date from site template ([#2200]({{ site.repository }}/issues/2200))
+- Fix `Post#url` and `Page#url` escape ([#1568]({{ site.repository }}/issues/1568))
+- Strip newlines from the {% raw %}`{% highlight %}`{% endraw %} block content ([#1823]({{ site.repository }}/issues/1823))
+- Load in `rouge` only when it's been requested as the highlighter ([#2189]({{ site.repository }}/issues/2189))
+- Convert input to string before XML escaping (`xml_escape` liquid filter) ([#2244]({{ site.repository }}/issues/2244))
+- Modify configuration key for Collections and reset properly. ([#2238]({{ site.repository }}/issues/2238))
+- Avoid duplicated output using `highlight` tag ([#2264]({{ site.repository }}/issues/2264))
+- Only use Jekyll.logger for output ([#2307]({{ site.repository }}/issues/2307))
+- Close the file descriptor in `has_yaml_header?` ([#2310]({{ site.repository }}/issues/2310))
+- Add `output` to `Document` liquid output hash ([#2309]({{ site.repository }}/issues/2309))
+
+### Development Fixes
+- Add a link to the site in the README.md file ([#1795]({{ site.repository }}/issues/1795))
+- Add in History and site changes from `v1-stable` branch ([#1836]({{ site.repository }}/issues/1836))
+- Testing additions on the Excerpt class ([#1893]({{ site.repository }}/issues/1893))
+- Fix the `highlight` tag feature ([#1859]({{ site.repository }}/issues/1859))
+- Test Jekyll under Ruby 2.1.0 ([#1900]({{ site.repository }}/issues/1900))
+- Add script/cibuild for fun and profit ([#1912]({{ site.repository }}/issues/1912))
+- Use `Forwardable` for delegation between `Excerpt` and `Post`
+ ([#1927]({{ site.repository }}/issues/1927))
+- Rename `read_things` to `read_content` ([#1928]({{ site.repository }}/issues/1928))
+- Add `script/branding` script for ASCII art lovin' ([#1936]({{ site.repository }}/issues/1936))
+- Update the README to reflect the repo move ([#1943]({{ site.repository }}/issues/1943))
+- Add the project vision to the README ([#1935]({{ site.repository }}/issues/1935))
+- Speed up Travis CI builds by using Rebund ([#1985]({{ site.repository }}/issues/1985))
+- Use Yarp as a Gem proxy for Travis CI ([#1984]({{ site.repository }}/issues/1984))
+- Remove Yarp as a Gem proxy for Travis CI ([#2004]({{ site.repository }}/issues/2004))
+- Move the reading of layouts into its own class ([#2020]({{ site.repository }}/issues/2020))
+- Test Sass import ([#2009]({{ site.repository }}/issues/2009))
+- Switch Maruku and Kramdown in lists of Runtime vs. Development dependencies ([#2049]({{ site.repository }}/issues/2049))
+- Clean up the gemspec for the project ([#2095]({{ site.repository }}/issues/2095))
+- Add Japanese translation of README and CONTRIBUTING docs. ([#2081]({{ site.repository }}/issues/2081))
+- Re-align the tables in Cucumber ([#2108]({{ site.repository }}/issues/2108))
+- Trim trailing spaces and convert tabs to spaces ([#2122]({{ site.repository }}/issues/2122))
+- Fix the failing Travis scenarios due to Cucumber issues ([#2155]({{ site.repository }}/issues/2155))
+- Wrap `bundle install` in `travis_retry` to retry when RubyGems fails ([#2160]({{ site.repository }}/issues/2160))
+- Refactor tags and categories ([#1639]({{ site.repository }}/issues/1639))
+- Extract plugin management into its own class ([#2197]({{ site.repository }}/issues/2197))
+- Add missing tests for `Command` ([#2216]({{ site.repository }}/issues/2216))
+- Update `rr` link in CONTRIBUTING doc ([#2247]({{ site.repository }}/issues/2247))
+- Streamline cucumber execution of `jekyll` subcommands ([#2258]({{ site.repository }}/issues/2258))
+- Refactor `Commands::Serve`. ([#2269]({{ site.repository }}/issues/2269))
+- Refactor `highlight` tag ([#2154]({{ site.repository }}/issues/2154))
+- Update `Util` hash functions with latest from Rails ([#2273]({{ site.repository }}/issues/2273))
+- Workaround for Travis bug ([#2290]({{ site.repository }}/issues/2290))
+
+### Site Enhancements
+- Document Kramdown's GFM parser option ([#1791]({{ site.repository }}/issues/1791))
+- Move CSS to includes & update normalize.css to v2.1.3 ([#1787]({{ site.repository }}/issues/1787))
+- Minify CSS only in production ([#1803]({{ site.repository }}/issues/1803))
+- Fix broken link to installation of Ruby on Mountain Lion blog post on
+ Troubleshooting docs page ([#1797]({{ site.repository }}/issues/1797))
+- Fix issues with 1.4.1 release blog post ([#1804]({{ site.repository }}/issues/1804))
+- Add note about deploying to OpenShift ([#1812]({{ site.repository }}/issues/1812))
+- Collect all Windows-related docs onto one page ([#1818]({{ site.repository }}/issues/1818))
+- Fixed typo in datafiles doc page ([#1854]({{ site.repository }}/issues/1854))
+- Clarify how to access `site` in docs ([#1864]({{ site.repository }}/issues/1864))
+- Add closing `` tag to `context.registers[:site]` note ([#1867]({{ site.repository }}/issues/1867))
+- Fix link to [@mojombo](https://github.com/mojombo)'s site source ([#1897]({{ site.repository }}/issues/1897))
+- Add `paginate: nil` to default configuration in docs ([#1896]({{ site.repository }}/issues/1896))
+- Add link to our License in the site footer ([#1889]({{ site.repository }}/issues/1889))
+- Add a charset note in "Writing Posts" doc page ([#1902]({{ site.repository }}/issues/1902))
+- Disallow selection of path and prompt in bash examples
+- Add jekyll-compass to the plugin list ([#1923]({{ site.repository }}/issues/1923))
+- Add note in Posts docs about stripping `
` tags from excerpt ([#1933]({{ site.repository }}/issues/1933))
+- Add additional info about the new exclude behavior ([#1938]({{ site.repository }}/issues/1938))
+- Linkify 'awesome contributors' to point to the contributors graph on
+ GitHub ([#1940]({{ site.repository }}/issues/1940))
+- Update `docs/sites.md` link to GitHub Training materials ([#1949]({{ site.repository }}/issues/1949))
+- Update `master` with the release info from 1.4.3 ([#1947]({{ site.repository }}/issues/1947))
+- Define docs nav in datafile ([#1953]({{ site.repository }}/issues/1953))
+- Clarify the docs around the naming convention for posts ([#1971]({{ site.repository }}/issues/1971))
+- Add missing `next` and `previous` docs for post layouts and templates ([#1970]({{ site.repository }}/issues/1970))
+- Add note to `Writing posts` page about how to strip html from excerpt ([#1962]({{ site.repository }}/issues/1962))
+- Add `jekyll-humanize` plugin to plugin list ([#1998]({{ site.repository }}/issues/1998))
+- Add `jekyll-font-awesome` plugin to plugin list ([#1999]({{ site.repository }}/issues/1999))
+- Add `sublime-jekyll` to list of Editor plugins ([#2001]({{ site.repository }}/issues/2001))
+- Add `vim-jekyll` to the list of Editor plugins ([#2005]({{ site.repository }}/issues/2005))
+- Fix non-semantic nesting of `p` tags in `news_item` layout ([#2013]({{ site.repository }}/issues/2013))
+- Document destination folder cleaning ([#2016]({{ site.repository }}/issues/2016))
+- Updated instructions for NearlyFreeSpeech.NET installation ([#2015]({{ site.repository }}/issues/2015))
+- Update link to rack-jekyll on "Deployment Methods" page ([#2047]({{ site.repository }}/issues/2047))
+- Fix typo in /docs/configuration ([#2073]({{ site.repository }}/issues/2073))
+- Fix count in docs for `site.static_files` ([#2077]({{ site.repository }}/issues/2077))
+- Update configuration docs to indicate utf-8 is the default for 2.0.0
+ and ASCII for 1.9.3 ([#2074]({{ site.repository }}/issues/2074))
+- Add info about unreleased feature to the site ([#2061]({{ site.repository }}/issues/2061))
+- Add whitespace to liquid example in GitHub Pages docs ([#2084]({{ site.repository }}/issues/2084))
+- Clarify the way Sass and CoffeeScript files are read in and output ([#2067]({{ site.repository }}/issues/2067))
+- Add lyche gallery tag plugin link to list of plugins ([#2094]({{ site.repository }}/issues/2094))
+- Add Jekyll Pages Directory plugin to list of plugins ([#2096]({{ site.repository }}/issues/2096))
+- Update Configuration docs page with new markdown extension ([#2102]({{ site.repository }}/issues/2102))
+- Add `jekyll-image-set` to the list of third-party plugins ([#2105]({{ site.repository }}/issues/2105))
+- Losslessly compress images ([#2128]({{ site.repository }}/issues/2128))
+- Update normalize.css to 3.0.0 ([#2126]({{ site.repository }}/issues/2126))
+- Update modernizr to v2.7.1 ([#2129]({{ site.repository }}/issues/2129))
+- Add `jekyll-ordinal` to list of third-party plugins ([#2150]({{ site.repository }}/issues/2150))
+- Add `jekyll_figure` to list of third-party plugins ([#2158]({{ site.repository }}/issues/2158))
+- Clarify the documentation for safe mode ([#2163]({{ site.repository }}/issues/2163))
+- Some HTML tidying ([#2130]({{ site.repository }}/issues/2130))
+- Remove modernizr and use html5shiv.js directly for IE less than v9 ([#2131]({{ site.repository }}/issues/2131))
+- Remove unused images ([#2187]({{ site.repository }}/issues/2187))
+- Use `array_to_sentence_string` filter when outputting news item
+ categories ([#2191]({{ site.repository }}/issues/2191))
+- Add link to Help repo in primary navigation bar ([#2177]({{ site.repository }}/issues/2177))
+- Switch to using an ico file for the shortcut icon ([#2193]({{ site.repository }}/issues/2193))
+- Use numbers to specify font weights and only bring in font weights used ([#2185]({{ site.repository }}/issues/2185))
+- Add a link to the list of all tz database time zones ([#1824]({{ site.repository }}/issues/1824))
+- Clean-up and improve documentation `feed.xml` ([#2192]({{ site.repository }}/issues/2192))
+- Remove duplicate entry in list of third-party plugins ([#2206]({{ site.repository }}/issues/2206))
+- Reduce the whitespace in the favicon. ([#2213]({{ site.repository }}/issues/2213))
+- Add `jekyll-page-collections` to list of third-party plugins ([#2215]({{ site.repository }}/issues/2215))
+- Add a cross-reference about `post_url` ([#2243]({{ site.repository }}/issues/2243))
+- Add `jekyll-live-tiles` to list of third-party plugins ([#2250]({{ site.repository }}/issues/2250))
+- Fixed broken link to GitHub training material site source ([#2257]({{ site.repository }}/issues/2257))
+- Update link to help repo, now called `jekyll-help` ([#2277]({{ site.repository }}/issues/2277))
+- Fix capitalization of 'Jekyll' on Deployment Methods page ([#2291]({{ site.repository }}/issues/2291))
+- Include plugins by sonnym in list of third-party plugins ([#2297]({{ site.repository }}/issues/2297))
+- Add deprecated articles keeper filter to list of third-party plugins ([#2300]({{ site.repository }}/issues/2300))
+- Simplify and improve our CSS. ([#2127]({{ site.repository }}/issues/2127))
+- Use black text color for the mobile navbar ([#2306]({{ site.repository }}/issues/2306))
+- Use the built in date filter and `site.time` for the copyright year. ([#2305]({{ site.repository }}/issues/2305))
+- Update html5shiv to v3.7.2 ([#2304]({{ site.repository }}/issues/2304))
+- Add 2.0.0 release post ([#2298]({{ site.repository }}/issues/2298))
+- Add docs for custom markdown processors ([#2298]({{ site.repository }}/issues/2298))
+- Add docs for `where` and `group_by` Liquid filters ([#2298]({{ site.repository }}/issues/2298))
+- Remove notes in docs for unreleased features ([#2309]({{ site.repository }}/issues/2309))
+
## 1.5.1 / 2014-03-27
### Bug Fixes
From aef2134128d2012381f48f06c4c374d81296aa1a Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:09:51 -0400
Subject: [PATCH 092/160] Remove unneeded tests for the sass converter plugin.
---
test/test_sass.rb | 41 -----------------------------------------
1 file changed, 41 deletions(-)
diff --git a/test/test_sass.rb b/test/test_sass.rb
index b39c8eea2..b03b1137d 100644
--- a/test/test_sass.rb
+++ b/test/test_sass.rb
@@ -1,47 +1,6 @@
require 'helper'
class TestSass < Test::Unit::TestCase
- def converter(overrides = {})
- Jekyll::Converters::Sass.new(site_configuration({"sass" => overrides}))
- end
-
- def sass_content
- <<-SASS
-$font-stack: Helvetica, sans-serif
-body
- font-family: $font-stack
- font-color: fuschia
-SASS
- end
-
- def scss_content
- <<-SCSS
-$font-stack: Helvetica, sans-serif;
-body {
- font-family: $font-stack;
- font-color: fuschia;
-}
-SCSS
- end
-
- def css_output
- <<-CSS
-body {\n font-family: Helvetica, sans-serif;\n font-color: fuschia; }
-CSS
- end
-
- context "converting sass" do
- should "produce CSS" do
- assert_equal css_output, converter.convert(sass_content)
- end
- end
-
- context "converting SCSS" do
- should "produce CSS" do
- assert_equal css_output, converter.convert(scss_content)
- end
- end
-
context "importing partials" do
setup do
@site = Jekyll::Site.new(Jekyll.configuration({
From 41b69d6c8a48df08d704c5786e7fa85635d58f57 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:12:59 -0400
Subject: [PATCH 093/160] A year ago to the day. [ci skip]
---
site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
index 35ab3d43e..6cb52449f 100644
--- a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
+++ b/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
@@ -6,7 +6,7 @@ version: 2.0.0
categories: [release]
---
-Almost a year ago to the day, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.0.
+A year ago to the day, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.0.
Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is the best Jekyll yet. Some notable changes:
From 0a5ca5aaf00b78562961aecd4c5e871838748325 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:13:38 -0400
Subject: [PATCH 094/160] Rename 2.0.0 release post to match title. [ci skip]
---
...0-released.markdown => 2014-05-06-jekyll-turns-2-0-0.markdown} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename site/_posts/{2014-05-05-jekyll-2-0-0-released.markdown => 2014-05-06-jekyll-turns-2-0-0.markdown} (100%)
diff --git a/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown b/site/_posts/2014-05-06-jekyll-turns-2-0-0.markdown
similarity index 100%
rename from site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
rename to site/_posts/2014-05-06-jekyll-turns-2-0-0.markdown
From d4bc707ba0f206080afc909f1f8a596e3477f6ec Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:22:48 -0400
Subject: [PATCH 095/160] Release 2.0.0
From 25b5651f9deaafde47e379e8947abab0ae9e8a6e Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:31:05 -0400
Subject: [PATCH 096/160] Add some Google Analytics magic.
---
site/_config.yml | 1 +
site/_includes/analytics.html | 18 ++++++++----------
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/site/_config.yml b/site/_config.yml
index 497f5d01a..ddc91b11c 100644
--- a/site/_config.yml
+++ b/site/_config.yml
@@ -5,3 +5,4 @@ permalink: /news/:year/:month/:day/:title/
excerpt_separator: noifniof3nioaniof3nioafafinoafnoif
repository: https://github.com/jekyll/jekyll
help_url: https://github.com/jekyll/jekyll-help
+google_analytics_id: UA-50755011-1
diff --git a/site/_includes/analytics.html b/site/_includes/analytics.html
index 6bd86b1f0..4ef9ea0f2 100644
--- a/site/_includes/analytics.html
+++ b/site/_includes/analytics.html
@@ -18,15 +18,13 @@
{% if site.google_analytics_id %}
{% endif %}
From 64cce065e666decbb04db991ecbd01926756229f Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:55:11 -0400
Subject: [PATCH 097/160] Require kramdown instead of maruku.
CRAP CRAP CRAP whoops.
---
lib/jekyll.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/jekyll.rb b/lib/jekyll.rb
index b9bf4f67e..941084d59 100644
--- a/lib/jekyll.rb
+++ b/lib/jekyll.rb
@@ -24,7 +24,7 @@ require 'pathname'
# 3rd party
require 'liquid'
-require 'maruku'
+require 'kramdown'
require 'colorator'
require 'toml'
From 0a0d7858c6d249189a7c94eed985dbff1e93acce Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 21:57:33 -0400
Subject: [PATCH 098/160] Release 2.0.1
---
History.markdown | 6 ++++++
lib/jekyll/version.rb | 2 +-
site/docs/history.md | 4 ++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/History.markdown b/History.markdown
index ad060fff2..591ce9adb 100644
--- a/History.markdown
+++ b/History.markdown
@@ -10,6 +10,12 @@
### Site Enhancements
+## 2.0.1 / 2014-05-06
+
+### Bug Fixes
+
+* Require `kramdown` gem instead of `maruku` gem
+
## 2.0.0 / 2014-05-06
### Major Enhancements
diff --git a/lib/jekyll/version.rb b/lib/jekyll/version.rb
index 88f264aba..0ed41bca5 100644
--- a/lib/jekyll/version.rb
+++ b/lib/jekyll/version.rb
@@ -1,3 +1,3 @@
module Jekyll
- VERSION = '2.0.0'
+ VERSION = '2.0.1'
end
diff --git a/site/docs/history.md b/site/docs/history.md
index ef817e113..59cf0d2b3 100644
--- a/site/docs/history.md
+++ b/site/docs/history.md
@@ -5,6 +5,10 @@ permalink: "/docs/history/"
prev_section: contributing
---
+## 2.0.1 / 2014-05-06
+
+### Bug Fixes- Require `kramdown` gem instead of `maruku` gem
+
## 2.0.0 / 2014-05-06
### Major Enhancements
From 0dffe26cfe055b04f40af26495698bddd4913733 Mon Sep 17 00:00:00 2001
From: Troy Swanson
Date: Tue, 6 May 2014 21:25:34 -0500
Subject: [PATCH 099/160] Update docs for different gist behavior
---
site/docs/templates.md | 27 ++++++++-------------------
1 file changed, 8 insertions(+), 19 deletions(-)
diff --git a/site/docs/templates.md b/site/docs/templates.md
index 820e108a1..7ee0d58e5 100644
--- a/site/docs/templates.md
+++ b/site/docs/templates.md
@@ -359,24 +359,7 @@ You can also use this tag to create a link to a post in Markdown as follows:
### Gist
-Use the `gist` tag to easily embed a GitHub Gist onto your site:
-
-{% highlight text %}
-{% raw %}
-{% gist 5555251 %}
-{% endraw %}
-{% endhighlight %}
-
-You may also optionally specify the filename in the gist to display:
-
-{% highlight text %}
-{% raw %}
-{% gist 5555251 result.md %}
-{% endraw %}
-{% endhighlight %}
-
-The `gist` tag also works with private gists, which require the gist owner's
-github username:
+Use the `gist` tag to easily embed a GitHub Gist onto your site. This works with public or secret gists:
{% highlight text %}
{% raw %}
@@ -384,4 +367,10 @@ github username:
{% endraw %}
{% endhighlight %}
-The private gist syntax also supports filenames.
+You may also optionally specify the filename in the gist to display:
+
+{% highlight text %}
+{% raw %}
+{% gist parkr/931c1c8d465a04042403 jekyll-private-gist.markdown %}
+{% endraw %}
+{% endhighlight %}
From b5dc6283572e45151cc710ad524c50082bfe04cb Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 22:40:15 -0400
Subject: [PATCH 100/160] Update history to reflect merge of #2314 [ci skip]
---
History.markdown | 2 ++
1 file changed, 2 insertions(+)
diff --git a/History.markdown b/History.markdown
index 591ce9adb..9f41b8e4c 100644
--- a/History.markdown
+++ b/History.markdown
@@ -10,6 +10,8 @@
### Site Enhancements
+* Correct docs for the `gist` plugin so it always includes the username. (#2314)
+
## 2.0.1 / 2014-05-06
### Bug Fixes
From 3498cc99479fd7b8f6d9bbbd770afcf4283fc747 Mon Sep 17 00:00:00 2001
From: Kevin Ingersoll
Date: Wed, 7 May 2014 14:48:35 +1200
Subject: [PATCH 101/160] Add a little clarity to docs
---
site/docs/configuration.md | 2 +-
site/docs/templates.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/site/docs/configuration.md b/site/docs/configuration.md
index e43518479..9e8e275b7 100644
--- a/site/docs/configuration.md
+++ b/site/docs/configuration.md
@@ -284,7 +284,7 @@ defaults for your custom variables. Of course, any variable actually specified i
the front matter overrides the defaults.
All defaults go under the `defaults` key, which holds a list of scope-values combinations ("default sets").
-The `scope` key defines for which files the defaults apply, limiting them by their `path` and
+The `scope` key defines for which files the defaults apply, limiting them by their source file `path` and
optionally by their `type` (`page`, `post` or `draft`). The `values` key holds the actual list of defaults.
For example:
diff --git a/site/docs/templates.md b/site/docs/templates.md
index 7ee0d58e5..79cdfc8b9 100644
--- a/site/docs/templates.md
+++ b/site/docs/templates.md
@@ -82,7 +82,7 @@ common tasks easier.
Where
-
Select all the object in an array where the key has the given.
+
Select all the objects in an array where the key has the given value.
From 2dec333910b06f8c3ca3916a0dea833a14463000 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 23:50:58 -0400
Subject: [PATCH 102/160] Set baseurl to nothing in new template site.
Previously, it caused all sorts of errors.
Fixes #2317.
---
lib/site_template/_config.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/site_template/_config.yml b/lib/site_template/_config.yml
index 15256bf71..217515073 100644
--- a/lib/site_template/_config.yml
+++ b/lib/site_template/_config.yml
@@ -3,7 +3,8 @@ name: Dat site title tho
title: Your awesome title
email: your-email@domain.com
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
-baseurl: "http://yourdomain.com"
+baseurl: ""
+url: "http://yourdomain.com"
# Build settings
markdown: kramdown
From 832860bcb50fe67a194721057a9fc83ab204914b Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 23:52:03 -0400
Subject: [PATCH 103/160] Update history to reflect the fixing of #2317
---
History.markdown | 2 ++
1 file changed, 2 insertions(+)
diff --git a/History.markdown b/History.markdown
index 9f41b8e4c..e5fb00e8c 100644
--- a/History.markdown
+++ b/History.markdown
@@ -6,6 +6,8 @@
### Bug Fixes
+* Correct use of `url` and `baseurl` in the site template. (#2317)
+
### Development Fixes
### Site Enhancements
From 97e9fb29b09fcd67f960000bea3af88f8d5bfab2 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 23:54:14 -0400
Subject: [PATCH 104/160] Default baseurl to "" rather than to "/"
Also a fix for #2317
---
History.markdown | 1 +
lib/jekyll/configuration.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/History.markdown b/History.markdown
index e5fb00e8c..349bc7e48 100644
--- a/History.markdown
+++ b/History.markdown
@@ -7,6 +7,7 @@
### Bug Fixes
* Correct use of `url` and `baseurl` in the site template. (#2317)
+* Default `baseurl` to `""` (#2317)
### Development Fixes
diff --git a/lib/jekyll/configuration.rb b/lib/jekyll/configuration.rb
index 7089c7793..0c68365af 100644
--- a/lib/jekyll/configuration.rb
+++ b/lib/jekyll/configuration.rb
@@ -32,7 +32,7 @@ module Jekyll
'markdown' => 'kramdown',
'highlighter' => 'pygments',
'permalink' => 'date',
- 'baseurl' => '/',
+ 'baseurl' => '',
'include' => ['.htaccess'],
'exclude' => [],
'paginate_path' => '/page:num',
From 3cc439a1ccb26335d68111b87f7903c3a0c9dab3 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 23:57:53 -0400
Subject: [PATCH 105/160] Update history to reflect merge of #2316 [ci skip]
---
History.markdown | 1 +
1 file changed, 1 insertion(+)
diff --git a/History.markdown b/History.markdown
index 349bc7e48..e9636ad5f 100644
--- a/History.markdown
+++ b/History.markdown
@@ -14,6 +14,7 @@
### Site Enhancements
* Correct docs for the `gist` plugin so it always includes the username. (#2314)
+* Clarify new (defaults, `where` filter) features in docs (#2316)
## 2.0.1 / 2014-05-06
From ac666490d240dde7593503e72d82d60fce78bfed Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Tue, 6 May 2014 23:59:49 -0400
Subject: [PATCH 106/160] Release 2.0.2
---
History.markdown | 12 +++++++++---
lib/jekyll/version.rb | 2 +-
site/docs/history.md | 2 +-
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/History.markdown b/History.markdown
index e9636ad5f..1aecc3471 100644
--- a/History.markdown
+++ b/History.markdown
@@ -6,11 +6,17 @@
### Bug Fixes
+### Development Fixes
+
+### Site Enhancements
+
+## v2.0.2 / 2014-05-07
+
+### Bug Fixes
+
* Correct use of `url` and `baseurl` in the site template. (#2317)
* Default `baseurl` to `""` (#2317)
-### Development Fixes
-
### Site Enhancements
* Correct docs for the `gist` plugin so it always includes the username. (#2314)
@@ -165,7 +171,7 @@
* Refactor `Commands::Serve`. (#2269)
* Refactor `highlight` tag (#2154)
* Update `Util` hash functions with latest from Rails (#2273)
- * Workaround for Travis bug (#2290)
+ * Workaround for Travis bug (#2290)
### Site Enhancements
* Document Kramdown's GFM parser option (#1791)
diff --git a/lib/jekyll/version.rb b/lib/jekyll/version.rb
index 0ed41bca5..3ef9734a7 100644
--- a/lib/jekyll/version.rb
+++ b/lib/jekyll/version.rb
@@ -1,3 +1,3 @@
module Jekyll
- VERSION = '2.0.1'
+ VERSION = '2.0.2'
end
diff --git a/site/docs/history.md b/site/docs/history.md
index 59cf0d2b3..cdff8808e 100644
--- a/site/docs/history.md
+++ b/site/docs/history.md
@@ -152,7 +152,7 @@ prev_section: contributing
- Refactor `Commands::Serve`. ([#2269]({{ site.repository }}/issues/2269))
- Refactor `highlight` tag ([#2154]({{ site.repository }}/issues/2154))
- Update `Util` hash functions with latest from Rails ([#2273]({{ site.repository }}/issues/2273))
-- Workaround for Travis bug ([#2290]({{ site.repository }}/issues/2290))
+- Workaround for Travis bug ([#2290]({{ site.repository }}/issues/2290))
### Site Enhancements
- Document Kramdown's GFM parser option ([#1791]({{ site.repository }}/issues/1791))
From c71a4717ddc0db65fbdc3244f2bccf9b370de669 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Wed, 7 May 2014 00:09:12 -0400
Subject: [PATCH 107/160] Prepend url, too, in feed.xml.
---
lib/site_template/feed.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/site_template/feed.xml b/lib/site_template/feed.xml
index 252a0bd11..5d4d74023 100644
--- a/lib/site_template/feed.xml
+++ b/lib/site_template/feed.xml
@@ -6,15 +6,15 @@ layout: none
{{ site.name | xml_escape }}{{ site.description | xml_escape }}
- {{ site.baseurl }}
-
+ {{ site.url }}{{ site.baseurl }}
+
{% for post in site.posts limit:10 %}
{{ post.title | xml_escape }}{{ post.content | xml_escape }}{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}
- {{ post.url | prepend: site.baseurl }}
- {{ post.url | prepend: site.baseurl }}
+ {{ post.url | prepend: site.baseurl | prepend: site.url }}
+ {{ post.url | prepend: site.baseurl | prepend: site.url }}
{% endfor %}
From 216f1150cde45f829e9b99e942dfe30c505b2b6e Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Wed, 7 May 2014 00:31:53 -0400
Subject: [PATCH 108/160] The last of the site template prepending.
---
lib/site_template/_includes/head.html | 2 +-
lib/site_template/_includes/header.html | 2 +-
lib/site_template/feed.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/site_template/_includes/head.html b/lib/site_template/_includes/head.html
index d54756159..4d7400dd6 100644
--- a/lib/site_template/_includes/head.html
+++ b/lib/site_template/_includes/head.html
@@ -4,7 +4,7 @@
{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}
-
+
diff --git a/lib/site_template/_includes/header.html b/lib/site_template/_includes/header.html
index f8045cbe5..99dbec6a1 100644
--- a/lib/site_template/_includes/header.html
+++ b/lib/site_template/_includes/header.html
@@ -2,7 +2,7 @@