jekyll 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jekyll might be problematic. Click here for more details.

@@ -185,9 +185,9 @@ module Jekyll
185
185
  # value - desired value
186
186
  #
187
187
  # Returns the filtered array of objects
188
- def where(input, key, value)
188
+ def where(input, property, value)
189
189
  return input unless input.is_a?(Array)
190
- input.select { |object| object[key] == value }
190
+ input.select { |object| item_property(object, property) == value }
191
191
  end
192
192
 
193
193
  # Sort an array of objects
@@ -230,7 +230,9 @@ module Jekyll
230
230
  when Time
231
231
  input
232
232
  when String
233
- Time.parse(input)
233
+ Time.parse(input) rescue Time.at(input.to_i)
234
+ when Number
235
+ Time.at(input)
234
236
  else
235
237
  Jekyll.logger.error "Invalid Date:", "'#{input}' is not a valid datetime."
236
238
  exit(1)
data/lib/jekyll/plugin.rb CHANGED
@@ -6,22 +6,15 @@ module Jekyll
6
6
  :high => 10,
7
7
  :highest => 100 }
8
8
 
9
- # Install a hook so that subclasses are recorded. This method is only
10
- # ever called by Ruby itself.
9
+ # Fetch all the subclasses of this class and its subclasses' subclasses.
11
10
  #
12
- # base - The Class subclass.
13
- #
14
- # Returns nothing.
15
- def self.inherited(base)
16
- subclasses << base
17
- subclasses.sort!
18
- end
19
-
20
- # The list of Classes that have been subclassed.
21
- #
22
- # Returns an Array of Class objects.
23
- def self.subclasses
24
- @subclasses ||= []
11
+ # Returns an array of descendant classes.
12
+ def self.descendants
13
+ descendants = []
14
+ ObjectSpace.each_object(singleton_class) do |k|
15
+ descendants.unshift k unless k == self
16
+ end
17
+ descendants
25
18
  end
26
19
 
27
20
  # Get or set the priority of this plugin. When called without an
data/lib/jekyll/site.rb CHANGED
@@ -365,7 +365,7 @@ module Jekyll
365
365
  #
366
366
  # Returns array of instances of subclasses of parameter
367
367
  def instantiate_subclasses(klass)
368
- klass.subclasses.select do |c|
368
+ klass.descendants.select do |c|
369
369
  !safe || c.safe
370
370
  end.sort.map do |c|
371
371
  c.new(config)
@@ -18,7 +18,7 @@ module Jekyll
18
18
 
19
19
  # Returns source file path.
20
20
  def path
21
- File.join(@base, @dir, @name)
21
+ File.join(*[@base, @dir, @name].compact)
22
22
  end
23
23
 
24
24
  # Returns the source file path relative to the site source
@@ -32,7 +32,7 @@ module Jekyll
32
32
  #
33
33
  # Returns destination file path.
34
34
  def destination(dest)
35
- File.join(dest, @dir, @name)
35
+ File.join(*[dest, @dir, @name].compact)
36
36
  end
37
37
 
38
38
  # Returns last modification time for this file.
@@ -1,8 +1,8 @@
1
1
  # Gist Liquid Tag
2
2
  #
3
3
  # Example:
4
- # {% gist 1234567 %}
5
- # {% gist 1234567 file.rb %}
4
+ # {% gist username/1234567 %}
5
+ # {% gist username/1234567 file.rb %}
6
6
 
7
7
  module Jekyll
8
8
  class GistTag < Liquid::Tag
@@ -18,8 +18,7 @@ Syntax error in tag 'gist' while parsing the following markup:
18
18
  #{@markup}
19
19
 
20
20
  Valid syntax:
21
- for public gists: {% gist 1234567 %}
22
- for private gists: {% gist user/1234567 %}
21
+ for all gists: {% gist user/1234567 %}
23
22
  eos
24
23
  end
25
24
  end
@@ -1,3 +1,3 @@
1
1
  module Jekyll
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
@@ -1,5 +1,4 @@
1
1
  # Site settings
2
- name: Dat site title tho
3
2
  title: Your awesome title
4
3
  email: your-email@domain.com
5
4
  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."
@@ -8,4 +7,4 @@ url: "http://yourdomain.com"
8
7
 
9
8
  # Build settings
10
9
  markdown: kramdown
11
- permalinks: pretty
10
+ permalink: pretty
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="wrap">
4
4
 
5
- <h2 class="footer-heading">{{ site.name }}</h2>
5
+ <h2 class="footer-heading">{{ site.title }}</h2>
6
6
 
7
7
  <div class="footer-col-1 column">
8
8
  <ul>
@@ -1,10 +1,10 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <title>{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}</title>
4
+ <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
5
5
  <meta name="viewport" content="width=device-width">
6
6
  <meta name="description" content="{{ site.description }}">
7
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl }}">
7
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
8
8
 
9
9
  <!-- Custom CSS -->
10
10
  <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="wrap">
4
4
 
5
- <a class="site-title" href="{{ site.baseurl }}">{{ site.name }}</a>
5
+ <a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
6
6
 
7
7
  <nav class="site-nav">
8
8
  <a href="#" class="menu-icon">
@@ -4,17 +4,17 @@ layout: none
4
4
  <?xml version="1.0" encoding="UTF-8"?>
5
5
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6
6
  <channel>
7
- <title>{{ site.name | xml_escape }}</title>
7
+ <title>{{ site.title | xml_escape }}</title>
8
8
  <description>{{ site.description | xml_escape }}</description>
9
- <link>{{ site.baseurl }}</link>
10
- <atom:link href="{{ "/feed.xml" | prepend: site.baseurl }}" rel="self" type="application/rss+xml" />
9
+ <link>{{ site.url }}{{ site.baseurl }}/</link>
10
+ <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
11
11
  {% for post in site.posts limit:10 %}
12
12
  <item>
13
13
  <title>{{ post.title | xml_escape }}</title>
14
14
  <description>{{ post.content | xml_escape }}</description>
15
15
  <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
16
- <link>{{ post.url | prepend: site.baseurl }}</link>
17
- <guid isPermaLink="true">{{ post.url | prepend: site.baseurl }}</guid>
16
+ <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
17
+ <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
18
18
  </item>
19
19
  {% endfor %}
20
20
  </channel>
data/site/_config.yml CHANGED
@@ -1,3 +1,4 @@
1
+ markdown: kramdown
1
2
  highlighter: pygments
2
3
  relative_permalinks: false
3
4
  gauges_id: 503c5af6613f5d0f19000027
@@ -0,0 +1,27 @@
1
+ <script type="text/javascript" charset="utf-8">
2
+ var anchorForId = function(id){
3
+
4
+ var anchor = document.createElement("a");
5
+ anchor.className = "header-link";
6
+ anchor.href = "#" + id;
7
+ anchor.innerHTML = '<i class="fa fa-link"></i>';
8
+ return anchor;
9
+ }
10
+ var linkifyAnchors = function(level, containingElement) {
11
+
12
+ var headers = containingElement.getElementsByTagName("h"+level);
13
+ for(var h=0; h<headers.length; h++){
14
+ var header = headers[h];
15
+
16
+ if( typeof(header.id) !== "undefined" && header.id !== "" )
17
+ header.appendChild(anchorForId(header.id));
18
+ }
19
+ };
20
+ document.onreadystatechange = function(){
21
+ if(this.readyState === "complete"){
22
+ var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0]
23
+ for(var level=1; level<=6; level++)
24
+ linkifyAnchors(level, contentBlock);
25
+ }
26
+ }
27
+ </script>
@@ -0,0 +1,44 @@
1
+ /*!
2
+ * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome
3
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
+ */
5
+ @font-face {
6
+ font-family: 'FontAwesome';
7
+ src: url('../fonts/fontawesome-webfont.eot?v=4.0.3');
8
+ src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
9
+ font-weight: normal;
10
+ font-style: normal;
11
+ }
12
+ .fa {
13
+ display: inline-block;
14
+ font-family: FontAwesome;
15
+ font-style: normal;
16
+ font-weight: normal;
17
+ line-height: 1;
18
+ -webkit-font-smoothing: antialiased;
19
+ -moz-osx-font-smoothing: grayscale;
20
+ }
21
+ .fa-link:before {
22
+ content: "\f0c1";
23
+ }
24
+ /*
25
+ * This code is courtesy Ben Balter, modified by Parker Moore for jekyllrb.com
26
+ * http://ben.balter.com/2014/03/13/pages-anchor-links/
27
+ */
28
+ .header-link {
29
+ position: relative;
30
+ left: 0.5em;
31
+ opacity: 0;
32
+ font-size: 0.8em;
33
+
34
+ -webkit-transition: opacity 0.2s ease-in-out 0.1s;
35
+ -moz-transition: opacity 0.2s ease-in-out 0.1s;
36
+ -ms-transition: opacity 0.2s ease-in-out 0.1s;
37
+ }
38
+ h2:hover .header-link,
39
+ h3:hover .header-link,
40
+ h4:hover .header-link,
41
+ h5:hover .header-link,
42
+ h6:hover .header-link {
43
+ opacity: 1;
44
+ }
@@ -10,6 +10,7 @@
10
10
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900">
11
11
  <link rel="stylesheet" href="/css/screen.css">
12
12
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
13
+ {% include anchor_links.html %}
13
14
  <!--[if lt IE 9]>
14
15
  <script src="/js/html5shiv.min.js"></script>
15
16
  <script src="/js/respond.min.js"></script>
@@ -13,7 +13,7 @@ Jam-packed with some [highly-requested features and bugfixes galore][changelog],
13
13
  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!
14
14
  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 <path>` and you're good to go.
15
15
  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 &mdash; no more messing around with Rake or Grunt!
16
- 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.
16
+ 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.
17
17
  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.
18
18
  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.
19
19
  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!
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: news_item
3
+ title: 'Jekyll 2.0.3 Released'
4
+ date: 2014-05-08 22:43:17 -0400
5
+ author: parkr
6
+ version: 2.0.3
7
+ categories: [release]
8
+ ---
9
+
10
+ Hey again! Just wanted to let you know we've released another version of Jekyll, jam-packed with bug fixes.
11
+
12
+ A huge "thank you" is in order for all the folks who have submitted bug reports over the last 2 days &mdash; your input is what allows this project to continue. It's always a pain to deal with a MAJOR version bump release, but it's been pretty smooth so far and you have all been nice about the flaws you've found in the tool. Keep filing those reports so we can continue to make Jekyll even better!
13
+
14
+ Thank you to the contributors that contributed code to 2.0.1, 2.0.2, and/or 2.0.3:
15
+
16
+ Parker Moore, Yi Zeng, Gabe Ortiz, Aaron Broder, Alberto Grespan, gpxl, David Briggs, Kevin Ingersoll, and Troy Swanson.
17
+
18
+ As always, check out the [changelog](/docs/history/) for more info. Happy Jekylling!
data/site/css/screen.css CHANGED
@@ -18,6 +18,10 @@
18
18
  * $pygments.css *
19
19
  \* */
20
20
  {% include css/pygments.css %}
21
+ /* *\
22
+ * $font-awesome.css *
23
+ \* */
24
+ {% include css/font-awesome.css %}
21
25
  {% endcapture %}
22
26
 
23
27
  {% if site.GH_ENV %}
data/site/docs/assets.md CHANGED
@@ -19,7 +19,7 @@ or `.coffee`) and start the file with two lines of triple dashes, like this:
19
19
  font-size: 1.2em
20
20
  {% endhighlight %}
21
21
 
22
- Jekyll treats these files the same a regular page, in that the output file
22
+ Jekyll treats these files the same as a regular page, in that the output file
23
23
  will be placed in the same directory that it came from. For instance, if you
24
24
  have a file named `/css/styles.scss` in your site's source folder, Jekyll
25
25
  will process it and put it in your site's destination folder under
@@ -130,7 +130,7 @@ class="flag">flags</code> (specified on the command-line) that control them.
130
130
  </p>
131
131
  </td>
132
132
  <td class='align-center'>
133
- <p>see <a href="#frontmatter_defaults" title="details">below</a></p>
133
+ <p>see <a href="#frontmatter-defaults" title="details">below</a></p>
134
134
  </td>
135
135
  </tr>
136
136
  </tbody>
@@ -362,7 +362,7 @@ watch: false # deprecated
362
362
  server: false # deprecated
363
363
  host: 0.0.0.0
364
364
  port: 4000
365
- baseurl: /
365
+ baseurl: ""
366
366
  url: http://localhost:4000
367
367
  lsi: false
368
368
 
@@ -184,7 +184,7 @@ These are available out-of-the-box to be used in the front-matter for a post.
184
184
  <h5>ProTip™: Don't repeat yourself</h5>
185
185
  <p>
186
186
  If you don't want to repeat your frequently used front-matter variables over and over,
187
- just define <a href="../configuration/#frontmatter_defaults" title="frontmatter defaults">defaults</a>
187
+ just define <a href="../configuration/#frontmatter-defaults" title="frontmatter defaults">defaults</a>
188
188
  for them and only override them where necessary (or not at all). This works both for predefined
189
189
  and custom variables.
190
190
  </p>
data/site/docs/history.md CHANGED
@@ -5,9 +5,48 @@ permalink: "/docs/history/"
5
5
  prev_section: contributing
6
6
  ---
7
7
 
8
+ ## 2.0.3 / 2014-05-08
9
+
10
+ ### Bug Fixes
11
+
12
+ - Properly prefix links in site template with URL or baseurl depending upon
13
+ need. ([#2319]({{ site.repository }}/issues/2319))
14
+ - Update gist tag comments and error message to require username ([#2326]({{ site.repository }}/issues/2326))
15
+ - Fix `permalink` setting in site template ([#2331]({{ site.repository }}/issues/2331))
16
+ - Don't fail if any of the path objects are nil ([#2325]({{ site.repository }}/issues/2325))
17
+ - Instantiate all descendants for converters and generators, not just
18
+ direct subclasses ([#2334]({{ site.repository }}/issues/2334))
19
+ - Replace all instances of `site.name` with `site.title` in site template ([#2324]({{ site.repository }}/issues/2324))
20
+ - `Jekyll::Filters#time` now accepts UNIX timestamps in string or number form ([#2339]({{ site.repository }}/issues/2339))
21
+ - Use `item_property` for `where` filter so it doesn't break on collections ([#2359]({{ site.repository }}/issues/2359))
22
+ - Rescue errors thrown so `--watch` doesn't fail ([#2364]({{ site.repository }}/issues/2364))
23
+
24
+ ### Site Enhancements
25
+
26
+ - Add missing "as" to assets docs page ([#2337]({{ site.repository }}/issues/2337))
27
+ - Update docs to reflect new `baseurl` default ([#2341]({{ site.repository }}/issues/2341))
28
+ - Add links to headers who have an ID. ([#2342]({{ site.repository }}/issues/2342))
29
+ - Use symbol instead of HTML number in `upgrading.md` ([#2351]({{ site.repository }}/issues/2351))
30
+ - Fix link to frontmatter defaults docs ([#2353]({{ site.repository }}/issues/2353))
31
+ - Fix for `History.markdown` in order to fix history page in docs ([#2363]({{ site.repository }}/issues/2363))
32
+
33
+ ## 2.0.2 / 2014-05-07
34
+
35
+ ### Bug Fixes
36
+
37
+ - Correct use of `url` and `baseurl` in the site template. ([#2317]({{ site.repository }}/issues/2317))
38
+ - Default `baseurl` to `""` ([#2317]({{ site.repository }}/issues/2317))
39
+
40
+ ### Site Enhancements
41
+
42
+ - Correct docs for the `gist` plugin so it always includes the username. ([#2314]({{ site.repository }}/issues/2314))
43
+ - Clarify new (defaults, `where` filter) features in docs ([#2316]({{ site.repository }}/issues/2316))
44
+
8
45
  ## 2.0.1 / 2014-05-06
9
46
 
10
- ### Bug Fixes- Require `kramdown` gem instead of `maruku` gem
47
+ ### Bug Fixes
48
+
49
+ - Require `kramdown` gem instead of `maruku` gem
11
50
 
12
51
  ## 2.0.0 / 2014-05-06
13
52
 
@@ -148,7 +187,7 @@ prev_section: contributing
148
187
  - Extract plugin management into its own class ([#2197]({{ site.repository }}/issues/2197))
149
188
  - Add missing tests for `Command` ([#2216]({{ site.repository }}/issues/2216))
150
189
  - Update `rr` link in CONTRIBUTING doc ([#2247]({{ site.repository }}/issues/2247))
151
- - Streamline cucumber execution of `jekyll` subcommands ([#2258]({{ site.repository }}/issues/2258))
190
+ - Streamline Cucumber execution of `jekyll` subcommands ([#2258]({{ site.repository }}/issues/2258))
152
191
  - Refactor `Commands::Serve`. ([#2269]({{ site.repository }}/issues/2269))
153
192
  - Refactor `highlight` tag ([#2154]({{ site.repository }}/issues/2154))
154
193
  - Update `Util` hash functions with latest from Rails ([#2273]({{ site.repository }}/issues/2273))
@@ -380,7 +419,7 @@ prev_section: contributing
380
419
  - Refactor Site#render ([#1638]({{ site.repository }}/issues/1638))
381
420
  - Remove duplication in command line options ([#1637]({{ site.repository }}/issues/1637))
382
421
  - Add tests for all the coderay options ([#1543]({{ site.repository }}/issues/1543))
383
- - Improve some of the cucumber test code ([#1493]({{ site.repository }}/issues/1493))
422
+ - Improve some of the Cucumber test code ([#1493]({{ site.repository }}/issues/1493))
384
423
  - Improve comparisons of timestamps by ignoring the seconds ([#1582]({{ site.repository }}/issues/1582))
385
424
 
386
425
  ### Site Enhancements
@@ -550,7 +589,7 @@ prev_section: contributing
550
589
  - Latest posts first in non-LSI `related_posts` ([#1271]({{ site.repository }}/issues/1271))
551
590
 
552
591
  ### Development Fixes
553
- - Merge the theme and layout cucumber steps into one step ([#1151]({{ site.repository }}/issues/1151))
592
+ - Merge the theme and layout Cucumber steps into one step ([#1151]({{ site.repository }}/issues/1151))
554
593
  - Restrict activesupport dependency to pre-4.0.0 to maintain compatibility with `<= 1.9.2`
555
594
  - Include/exclude deprecation handling simplification ([#1284]({{ site.repository }}/issues/1284))
556
595
  - Convert README to Markdown. ([#1267]({{ site.repository }}/issues/1267))
@@ -580,7 +619,7 @@ prev_section: contributing
580
619
  - Update contributor information ([#1192]({{ site.repository }}/issues/1192))
581
620
  - Update URL of article about Blogger migration ([#1242]({{ site.repository }}/issues/1242))
582
621
  - Specify that RedCarpet is the default for new Jekyll sites on Quickstart page ([#1247]({{ site.repository }}/issues/1247))
583
- - Added site.pages to Variables page in docs ([#1251]({{ site.repository }}/issues/1251))
622
+ - Added `site.pages` to Variables page in docs ([#1251]({{ site.repository }}/issues/1251))
584
623
  - Add Youku and Tudou Embed link on Plugins page. ([#1250]({{ site.repository }}/issues/1250))
585
624
  - Add note that `gist` tag supports private gists. ([#1248]({{ site.repository }}/issues/1248))
586
625
  - Add `jekyll-timeago` to list of third-party plugins. ([#1260]({{ site.repository }}/issues/1260))
@@ -598,7 +637,7 @@ prev_section: contributing
598
637
 
599
638
  ### Minor Enhancements
600
639
  - Add support to gist tag for private gists. ([#1189]({{ site.repository }}/issues/1189))
601
- - Fail loudly when MaRuKu errors out ([#1190]({{ site.repository }}/issues/1190))
640
+ - Fail loudly when Maruku errors out ([#1190]({{ site.repository }}/issues/1190))
602
641
  - Move the building of related posts into their own class ([#1057]({{ site.repository }}/issues/1057))
603
642
  - Removed trailing spaces in several places throughout the code ([#1116]({{ site.repository }}/issues/1116))
604
643
  - Add a `--force` option to `jekyll new` ([#1115]({{ site.repository }}/issues/1115))
@@ -664,7 +703,7 @@ prev_section: contributing
664
703
  ## 1.0.1 / 2013-05-08
665
704
 
666
705
  ### Minor Enhancements
667
- - Do not force use of toc_token when using generate_tok in RDiscount ([#1048]({{ site.repository }}/issues/1048))
706
+ - Do not force use of `toc_token` when using `generate_tok` in RDiscount ([#1048]({{ site.repository }}/issues/1048))
668
707
  - Add newer `language-` class name prefix to code blocks ([#1037]({{ site.repository }}/issues/1037))
669
708
  - Commander error message now preferred over process abort with incorrect args ([#1040]({{ site.repository }}/issues/1040))
670
709
 
@@ -687,15 +726,15 @@ prev_section: contributing
687
726
  ## 1.0.0 / 2013-05-06
688
727
 
689
728
  ### Major Enhancements
690
- - Add `jekyll new` subcommand: generate a jekyll scaffold ([#764]({{ site.repository }}/issues/764))
691
- - Refactored jekyll commands into subcommands: build, serve, and migrate. ([#690]({{ site.repository }}/issues/690))
729
+ - Add `jekyll new` subcommand: generate a Jekyll scaffold ([#764]({{ site.repository }}/issues/764))
730
+ - Refactored Jekyll commands into subcommands: build, serve, and migrate. ([#690]({{ site.repository }}/issues/690))
692
731
  - Removed importers/migrators from main project, migrated to jekyll-import sub-gem ([#793]({{ site.repository }}/issues/793))
693
732
  - Added ability to render drafts in `_drafts` folder via command line ([#833]({{ site.repository }}/issues/833))
694
733
  - Add ordinal date permalink style (/:categories/:year/:y_day/:title.html) ([#928]({{ site.repository }}/issues/928))
695
734
 
696
735
  ### Minor Enhancements
697
736
  - Site template HTML5-ified ([#964]({{ site.repository }}/issues/964))
698
- - Use post's directory path when matching for the post_url tag ([#998]({{ site.repository }}/issues/998))
737
+ - Use post's directory path when matching for the `post_url` tag ([#998]({{ site.repository }}/issues/998))
699
738
  - Loosen dependency on Pygments so it's only required when it's needed ([#1015]({{ site.repository }}/issues/1015))
700
739
  - Parse strings into Time objects for date-related Liquid filters ([#1014]({{ site.repository }}/issues/1014))
701
740
  - Tell the user if there is no subcommand specified ([#1008]({{ site.repository }}/issues/1008))
@@ -709,7 +748,7 @@ prev_section: contributing
709
748
  - Expose new attribute to Liquid via `page`: `page.path` ([#951]({{ site.repository }}/issues/951))
710
749
  - Accept multiple config files from command line ([#945]({{ site.repository }}/issues/945))
711
750
  - Add page variable to liquid custom tags and blocks ([#413]({{ site.repository }}/issues/413))
712
- - Add paginator.previous_page_path and paginator.next_page_path ([#942]({{ site.repository }}/issues/942))
751
+ - Add `paginator.previous_page_path` and `paginator.next_page_path` ([#942]({{ site.repository }}/issues/942))
713
752
  - Backwards compatibility for 'auto' ([#821]({{ site.repository }}/issues/821), [#934]({{ site.repository }}/issues/934))
714
753
  - Added date_to_rfc822 used on RSS feeds ([#892]({{ site.repository }}/issues/892))
715
754
  - Upgrade version of pygments.rb to 0.4.2 ([#927]({{ site.repository }}/issues/927))
@@ -728,7 +767,7 @@ prev_section: contributing
728
767
  - Relaxed Kramdown version to 0.14 ([#808]({{ site.repository }}/issues/808))
729
768
  - Aliased `jekyll server` to `jekyll serve`. ([#792]({{ site.repository }}/issues/792))
730
769
  - Updated gem versions for Kramdown, Rake, Shoulda, Cucumber, and RedCarpet. ([#744]({{ site.repository }}/issues/744))
731
- - Refactored jekyll subcommands into Jekyll::Commands submodule, which now contains them ([#768]({{ site.repository }}/issues/768))
770
+ - Refactored Jekyll subcommands into Jekyll::Commands submodule, which now contains them ([#768]({{ site.repository }}/issues/768))
732
771
  - Rescue from import errors in Wordpress.com migrator ([#671]({{ site.repository }}/issues/671))
733
772
  - Massively accelerate LSI performance ([#664]({{ site.repository }}/issues/664))
734
773
  - Truncate post slugs when importing from Tumblr ([#496]({{ site.repository }}/issues/496))
@@ -743,7 +782,7 @@ prev_section: contributing
743
782
  - Paginate in subdirectories properly ([#1016]({{ site.repository }}/issues/1016))
744
783
  - Ensure post and page URLs have a leading slash ([#992]({{ site.repository }}/issues/992))
745
784
  - Catch all exceptions, not just StandardError descendents ([#1007]({{ site.repository }}/issues/1007))
746
- - Bullet-proof limit_posts option ([#1004]({{ site.repository }}/issues/1004))
785
+ - Bullet-proof `limit_posts` option ([#1004]({{ site.repository }}/issues/1004))
747
786
  - Read in YAML as UTF-8 to accept non-ASCII chars ([#836]({{ site.repository }}/issues/836))
748
787
  - Fix the CLI option `--plugins` to actually accept dirs and files ([#993]({{ site.repository }}/issues/993))
749
788
  - Allow 'excerpt' in YAML Front-Matter to override the extracted excerpt ([#946]({{ site.repository }}/issues/946))
@@ -755,10 +794,10 @@ prev_section: contributing
755
794
  - Force usage of older directory_watcher gem as 1.5 is broken ([#883]({{ site.repository }}/issues/883))
756
795
  - Ensure all Post categories are downcase ([#842]({{ site.repository }}/issues/842), [#872]({{ site.repository }}/issues/872))
757
796
  - Force encoding of the rdiscount TOC to UTF8 to avoid conversion errors ([#555]({{ site.repository }}/issues/555))
758
- - Patch for multibyte URI problem with jekyll serve ([#723]({{ site.repository }}/issues/723))
797
+ - Patch for multibyte URI problem with `jekyll serve` ([#723]({{ site.repository }}/issues/723))
759
798
  - Order plugin execution by priority ([#864]({{ site.repository }}/issues/864))
760
799
  - Fixed Page#dir and Page#url for edge cases ([#536]({{ site.repository }}/issues/536))
761
- - Fix broken post_url with posts with a time in their YAML Front-Matter ([#831]({{ site.repository }}/issues/831))
800
+ - Fix broken `post_url` with posts with a time in their YAML Front-Matter ([#831]({{ site.repository }}/issues/831))
762
801
  - Look for plugins under the source directory ([#654]({{ site.repository }}/issues/654))
763
802
  - Tumblr Migrator: finds `_posts` dir correctly, fixes truncation of long
764
803
  post names ([#775]({{ site.repository }}/issues/775))
@@ -780,7 +819,7 @@ prev_section: contributing
780
819
  ### Development Fixes
781
820
  - Exclude Cucumber 1.2.4, which causes tests to fail in 1.9.2 ([#938]({{ site.repository }}/issues/938))
782
821
  - Added "features:html" rake task for debugging purposes, cleaned up
783
- cucumber profiles ([#832]({{ site.repository }}/issues/832))
822
+ Cucumber profiles ([#832]({{ site.repository }}/issues/832))
784
823
  - Explicitly require HTTPS rubygems source in Gemfile ([#826]({{ site.repository }}/issues/826))
785
824
  - Changed Ruby version for development to 1.9.3-p374 from p362 ([#801]({{ site.repository }}/issues/801))
786
825
  - Including a link to the GitHub Ruby style guide in CONTRIBUTING.md ([#806]({{ site.repository }}/issues/806))
@@ -790,6 +829,7 @@ prev_section: contributing
790
829
  - Switch to Simplecov for coverage report ([#765]({{ site.repository }}/issues/765))
791
830
 
792
831
  ## 0.12.1 / 2013-02-19
832
+
793
833
  ### Minor Enhancements
794
834
  - Update Kramdown version to 0.14.1 ([#744]({{ site.repository }}/issues/744))
795
835
  - Test Enhancements
@@ -798,11 +838,12 @@ prev_section: contributing
798
838
  - Update Redcarpet version to 2.2.2 ([#744]({{ site.repository }}/issues/744))
799
839
 
800
840
  ## 0.12.0 / 2012-12-22
841
+
801
842
  ### Minor Enhancements
802
843
  - Add ability to explicitly specify included files ([#261]({{ site.repository }}/issues/261))
803
- - Add --default-mimetype option ([#279]({{ site.repository }}/issues/279))
844
+ - Add `--default-mimetype` option ([#279]({{ site.repository }}/issues/279))
804
845
  - Allow setting of RedCloth options ([#284]({{ site.repository }}/issues/284))
805
- - Add post_url Liquid tag for internal post linking ([#369]({{ site.repository }}/issues/369))
846
+ - Add `post_url` Liquid tag for internal post linking ([#369]({{ site.repository }}/issues/369))
806
847
  - Allow multiple plugin dirs to be specified ([#438]({{ site.repository }}/issues/438))
807
848
  - Inline TOC token support for RDiscount ([#333]({{ site.repository }}/issues/333))
808
849
  - Add the option to specify the paginated url format ([#342]({{ site.repository }}/issues/342))
@@ -812,9 +853,9 @@ prev_section: contributing
812
853
  - Bug Fixes
813
854
  - Allow some special characters in highlight names
814
855
  - URL escape category names in URL generation ([#360]({{ site.repository }}/issues/360))
815
- - Fix error with limit_posts ([#442]({{ site.repository }}/issues/442))
856
+ - Fix error with `limit_posts` ([#442]({{ site.repository }}/issues/442))
816
857
  - Properly select dotfile during directory scan ([#363]({{ site.repository }}/issues/363), [#431]({{ site.repository }}/issues/431), [#377]({{ site.repository }}/issues/377))
817
- - Allow setting of Kramdown smart_quotes ([#482]({{ site.repository }}/issues/482))
858
+ - Allow setting of Kramdown `smart_quotes` ([#482]({{ site.repository }}/issues/482))
818
859
  - Ensure front-matter is at start of file ([#562]({{ site.repository }}/issues/562))
819
860
 
820
861
  ## 0.11.2 / 2011-12-27
@@ -827,6 +868,7 @@ prev_section: contributing
827
868
  - Update dependencies
828
869
 
829
870
  ## 0.11.0 / 2011-07-10
871
+
830
872
  ### Major Enhancements
831
873
  - Add command line importer functionality ([#253]({{ site.repository }}/issues/253))
832
874
  - Add Redcarpet Markdown support ([#318]({{ site.repository }}/issues/318))
@@ -848,9 +890,10 @@ prev_section: contributing
848
890
 
849
891
  ## 0.10.0 / 2010-12-16
850
892
  - Bug Fixes
851
- - Add --no-server option.
893
+ - Add `--no-server` option.
852
894
 
853
895
  ## 0.9.0 / 2010-12-15
896
+
854
897
  ### Minor Enhancements
855
898
  - Use OptionParser's `[no-]` functionality for better boolean parsing.
856
899
  - Add Drupal migrator ([#245]({{ site.repository }}/issues/245))
@@ -859,11 +902,12 @@ prev_section: contributing
859
902
  - Add Marley migrator ([#28]({{ site.repository }}/issues/28))
860
903
 
861
904
  ## 0.8.0 / 2010-11-22
905
+
862
906
  ### Minor Enhancements
863
907
  - Add wordpress.com importer ([#207]({{ site.repository }}/issues/207))
864
- - Add --limit-posts cli option ([#212]({{ site.repository }}/issues/212))
865
- - Add uri_escape filter ([#234]({{ site.repository }}/issues/234))
866
- - Add --base-url cli option ([#235]({{ site.repository }}/issues/235))
908
+ - Add `--limit-posts` cli option ([#212]({{ site.repository }}/issues/212))
909
+ - Add `uri_escape` filter ([#234]({{ site.repository }}/issues/234))
910
+ - Add `--base-url` cli option ([#235]({{ site.repository }}/issues/235))
867
911
  - Improve MT migrator ([#238]({{ site.repository }}/issues/238))
868
912
  - Add kramdown support ([#239]({{ site.repository }}/issues/239))
869
913
  - Bug Fixes
@@ -872,6 +916,7 @@ prev_section: contributing
872
916
  - Prevent `_includes` dir from being a symlink
873
917
 
874
918
  ## 0.7.0 / 2010-08-24
919
+
875
920
  ### Minor Enhancements
876
921
  - Add support for rdiscount extensions ([#173]({{ site.repository }}/issues/173))
877
922
  - Bug Fixes
@@ -883,13 +928,14 @@ prev_section: contributing
883
928
  - Fix Rakefile 'release' task (tag pushing was missing origin)
884
929
  - Ensure that RedCloth is loaded when textilize filter is used ([#183]({{ site.repository }}/issues/183))
885
930
  - Expand source, destination, and plugin paths ([#180]({{ site.repository }}/issues/180))
886
- - Fix page.url to include full relative path ([#181]({{ site.repository }}/issues/181))
931
+ - Fix `page.url` to include full relative path ([#181]({{ site.repository }}/issues/181))
887
932
 
888
933
  ## 0.6.1 / 2010-06-24
889
934
  - Bug Fixes
890
935
  - Fix Markdown Pygments prefix and suffix ([#178]({{ site.repository }}/issues/178))
891
936
 
892
937
  ## 0.6.0 / 2010-06-23
938
+
893
939
  ### Major Enhancements
894
940
  - Proper plugin system ([#19]({{ site.repository }}/issues/19), [#100]({{ site.repository }}/issues/100))
895
941
  - Add safe mode so unsafe converters/generators can be added
@@ -900,9 +946,9 @@ prev_section: contributing
900
946
  ### Minor Enhancements
901
947
  - Inclusion/exclusion of future dated posts ([#59]({{ site.repository }}/issues/59))
902
948
  - Generation for a specific time ([#59]({{ site.repository }}/issues/59))
903
- - Allocate site.time on render not per site_payload invocation ([#59]({{ site.repository }}/issues/59))
949
+ - Allocate `site.time` on render not per site_payload invocation ([#59]({{ site.repository }}/issues/59))
904
950
  - Pages now present in the site payload and can be used through the
905
- site.pages and site.html_pages variables
951
+ `site.pages` and `site.html_pages` variables
906
952
  - Generate phase added to site#process and pagination is now a generator
907
953
  - Switch to RakeGem for build/test process
908
954
  - Only regenerate static files when they have changed ([#142]({{ site.repository }}/issues/142))
@@ -914,9 +960,10 @@ prev_section: contributing
914
960
  - Fix extension munging when pretty permalinks are enabled ([#64]({{ site.repository }}/issues/64))
915
961
  - Stop sorting categories ([#33]({{ site.repository }}/issues/33))
916
962
  - Preserve generated attributes over front matter ([#119]({{ site.repository }}/issues/119))
917
- - Fix source directory binding using Dir.pwd ([#75]({{ site.repository }}/issues/75))
963
+ - Fix source directory binding using `Dir.pwd` ([#75]({{ site.repository }}/issues/75))
918
964
 
919
965
  ## 0.5.7 / 2010-01-12
966
+
920
967
  ### Minor Enhancements
921
968
  - Allow overriding of post date in the front matter ([#62]({{ site.repository }}/issues/62), [#38]({{ site.repository }}/issues/38))
922
969
  - Bug Fixes
@@ -924,7 +971,7 @@ prev_section: contributing
924
971
  - Empty tags causes error in read_posts ([#84]({{ site.repository }}/issues/84))
925
972
  - Fix pagination to adhere to read/render/write paradigm
926
973
  - Test Enhancement
927
- - cucumber features no longer use site.posts.first where a better
974
+ - Cucumber features no longer use site.posts.first where a better
928
975
  alternative is available
929
976
 
930
977
  ## 0.5.6 / 2010-01-08
@@ -982,6 +1029,7 @@ prev_section: contributing
982
1029
  - Added Date#xmlschema for Ruby versions < 1.9
983
1030
 
984
1031
  ## 0.5.1 / 2009-05-06
1032
+
985
1033
  ### Major Enhancements
986
1034
  - Next/previous posts in site payload ([@pantulis](https://github.com/pantulis), [@tomo](https://github.com/tomo))
987
1035
  - Permalink templating system
@@ -996,6 +1044,7 @@ prev_section: contributing
996
1044
  - CGI escaped post titles ([@Chrononaut](https://github.com/Chrononaut))
997
1045
 
998
1046
  ## 0.5.0 / 2009-04-07
1047
+
999
1048
  ### Minor Enhancements
1000
1049
  - Ability to set post categories via YAML ([@qrush](https://github.com/qrush))
1001
1050
  - Ability to set prevent a post from publishing via YAML ([@qrush](https://github.com/qrush))
@@ -1014,18 +1063,20 @@ prev_section: contributing
1014
1063
  - Add Cucumber acceptance test suite ([@qrush](https://github.com/qrush), [@technicalpickles](https://github.com/technicalpickles))
1015
1064
 
1016
1065
  ## 0.4.1
1066
+
1017
1067
  ### Minor Enhancements
1018
1068
  - Changed date format on wordpress converter (zeropadding) ([@dysinger](https://github.com/dysinger))
1019
1069
  - Bug Fixes
1020
- - Add jekyll binary as executable to gemspec ([@dysinger](https://github.com/dysinger))
1070
+ - Add Jekyll binary as executable to gemspec ([@dysinger](https://github.com/dysinger))
1021
1071
 
1022
1072
  ## 0.4.0 / 2009-02-03
1073
+
1023
1074
  ### Major Enhancements
1024
1075
  - Switch to Jeweler for packaging tasks
1025
1076
 
1026
1077
  ### Minor Enhancements
1027
1078
  - Type importer ([@codeslinger](https://github.com/codeslinger))
1028
- - site.topics accessor ([@baz](https://github.com/baz))
1079
+ - `site.topics` accessor ([@baz](https://github.com/baz))
1029
1080
  - Add `array_to_sentence_string` filter ([@mchung](https://github.com/mchung))
1030
1081
  - Add a converter for textpattern ([@PerfectlyNormal](https://github.com/PerfectlyNormal))
1031
1082
  - Add a working Mephisto / MySQL converter ([@ivey](https://github.com/ivey))
@@ -1040,8 +1091,9 @@ prev_section: contributing
1040
1091
  - Fix site payload available to files ([@matrix9180](https://github.com/matrix9180))
1041
1092
 
1042
1093
  ## 0.3.0 / 2008-12-24
1094
+
1043
1095
  ### Major Enhancements
1044
- - Added --server option to start a simple WEBrick server on destination
1096
+ - Added `--server` option to start a simple WEBrick server on destination
1045
1097
  directory ([@johnreilly](https://github.com/johnreilly) and [@mchung](https://github.com/mchung))
1046
1098
 
1047
1099
  ### Minor Enhancements
@@ -1060,23 +1112,24 @@ prev_section: contributing
1060
1112
  ## 0.2.1 / 2008-12-15
1061
1113
  - Major Changes
1062
1114
  - Use Maruku (pure Ruby) for Markdown by default ([@mreid](https://github.com/mreid))
1063
- - Allow use of RDiscount with --rdiscount flag
1115
+ - Allow use of RDiscount with `--rdiscount` flag
1064
1116
 
1065
1117
  ### Minor Enhancements
1066
1118
  - Don't load directory_watcher unless it's needed ([@pjhyett](https://github.com/pjhyett))
1067
1119
 
1068
1120
  ## 0.2.0 / 2008-12-14
1069
1121
  - Major Changes
1070
- - related_posts is now found in site.related_posts
1122
+ - related_posts is now found in `site.related_posts`
1071
1123
 
1072
1124
  ## 0.1.6 / 2008-12-13
1073
1125
  - Major Features
1074
1126
  - Include files in `_includes` with {% raw %}`{% include x.textile %}`{% endraw %}
1075
1127
 
1076
1128
  ## 0.1.5 / 2008-12-12
1129
+
1077
1130
  ### Major Enhancements
1078
- - Code highlighting with Pygments if --pygments is specified
1079
- - Disable true LSI by default, enable with --lsi
1131
+ - Code highlighting with Pygments if `--pygments` is specified
1132
+ - Disable true LSI by default, enable with `--lsi`
1080
1133
 
1081
1134
  ### Minor Enhancements
1082
1135
  - Output informative message if RDiscount is not available ([@JackDanger](https://github.com/JackDanger))
@@ -1095,7 +1148,7 @@ prev_section: contributing
1095
1148
  - Code hilighting ([@vanpelt](https://github.com/vanpelt))
1096
1149
  - Autobuild
1097
1150
  - Bug Fixes
1098
- - Accept both \r\n and \n in YAML header ([@vanpelt](https://github.com/vanpelt))
1151
+ - Accept both `\r\n` and `\n` in YAML header ([@vanpelt](https://github.com/vanpelt))
1099
1152
 
1100
1153
  ## 0.1.2 / 2008-11-22
1101
1154
  - Major Features