File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11---
22title: Upcoming Changes to Watcher and Star APIs
3- published : 2012-9-5
3+ created_at : 2012-9-5
44author: technoweenie
55---
66
Original file line number Diff line number Diff line change 11# All files in the 'lib' directory will be loaded
22# before nanoc starts compiling.
3- include Nanoc ::Helpers ::Rendering
3+ include Nanoc ::Helpers ::Rendering , Nanoc :: Helpers :: Blogging
Original file line number Diff line number Diff line change @@ -26,11 +26,8 @@ module Helpers
2626 }
2727
2828 def post_date ( item )
29- pub = item [ :published ]
30- if !pub . respond_to? ( :strftime )
31- pub = Time . parse ( pub )
32- end
33- pub . strftime ( "%B %-d, %Y" )
29+ pub = item [ :created_at ]
30+ attribute_to_time ( pub ) . strftime ( "%B %-d, %Y" )
3431 end
3532
3633 def gravatar_for ( login )
You can’t perform that action at this time.
0 commit comments