diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 8ebe92b5..13217bf0 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 } diff --git a/site/docs/permalinks.md b/site/docs/permalinks.md index c38ad945..155432bd 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