How to display date in a middleman article page -


i'm developing blog middle man, write articles in markdown. below sample article 2016-01-27-small-and-large-balcony-ideas.html.md

--- title: small , large balcony ideas category: "balcony ideas" ---  # small , large balcony ideas 

it uses following layout layouts/blog.erb

<body class="<%= page_classes %>">      <%= partial "blog_header" %>      <div class="container">       <div class="row">         <div class="column column-75">           <%= yield %>         </div>         <div class="column column-25">           <%= partial "blog_sidebar" %>         </div>       </div>     </div>      <%= partial "blog_footer" %> </body> 

now when go article.url page displays heading , content straightaway. want display article date above or below main heading. how can that.

i add:

<p><%= current_article.date.strftime('%d %b %y') %></p> 

into layout above

<%= yield %> 

is looking for?


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -