Merge pull request #2301 from TheTomThorogood/short_year_permalink

This commit is contained in:
Parker Moore 2014-05-06 12:14:25 -04:00
commit 0087143b88
2 changed files with 9 additions and 0 deletions

View File

@ -225,6 +225,7 @@ module Jekyll
:i_month => date.strftime("%m").to_i.to_s, :i_month => date.strftime("%m").to_i.to_s,
:categories => (categories || []).map { |c| c.to_s }.join('/'), :categories => (categories || []).map { |c| c.to_s }.join('/'),
:short_month => date.strftime("%b"), :short_month => date.strftime("%b"),
:short_year => date.strftime("%y"),
:y_day => date.strftime("%j"), :y_day => date.strftime("%j"),
:output_ext => output_ext :output_ext => output_ext
} }

View File

@ -67,6 +67,14 @@ permalink is defined as `/:categories/:year/:month/:day/:title.html`.
<p>Day from the Posts filename without leading zeros.</p> <p>Day from the Posts filename without leading zeros.</p>
</td> </td>
</tr> </tr>
<tr>
<td>
<p><code>short_year</code></p>
</td>
<td>
<p>Year from the Posts filename without the century.</p>
</td>
</tr>
<tr> <tr>
<td> <td>
<p><code>title</code></p> <p><code>title</code></p>