Skip to content

Commit

Permalink
LAB-11 #time 50m strftime
Browse files Browse the repository at this point in the history
  • Loading branch information
safiye committed Apr 2, 2014
1 parent cdbd315 commit ebf497a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/layouts/post.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
- data.authors.authors.each do |t, n|
- if t == current_page.data.author
%h4= link_to n, 'http://twitter.com/' + t, target: '_blank'
%h5= current_page.data.date.strftime('%B %e, %Y')
- current_page.data.tags.split(',').each do |tag, i|
%span.tag= link_to tag, tag_path(tag)
- date = Time.parse(current_page.data.date)
%h5= date.strftime('%B %e, %Y')
- if current_page.data.tags
- current_page.data.tags.split(',').each do |tag, i|
%span.tag= link_to tag, tag_path(tag)

.col-lg-8

Expand Down

0 comments on commit ebf497a

Please sign in to comment.