Merge pull request #2301 from TheTomThorogood/short_year_permalink
This commit is contained in:
commit
0087143b88
|
@ -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
|
||||
}
|
||||
|
|
|
@ -67,6 +67,14 @@ permalink is defined as `/:categories/:year/:month/:day/:title.html`.
|
|||
<p>Day from the Post’s filename without leading zeros.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><code>short_year</code></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Year from the Post’s filename without the century.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><code>title</code></p>
|
||||
|
|
Loading…
Reference in New Issue