39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
%article
|
|
|
|
|
|
%header
|
|
|
|
%aside
|
|
<img src="http://www.gravatar.com/avatar/199574623fb5c99b721233fb31bee19f.png" class="avatar avatar-50 photo" >
|
|
|
|
%p
|
|
Article de
|
|
%strong
|
|
|
|
Nicolas Bally
|
|
|
|
|
|
|
|
%time.updated{:datetime => Time.now, :pubdate => true}
|
|
publié
|
|
="le "+l(article.published_at, :format => :human_date)
|
|
|
|
%p{:style => "margin-top:1em;"}
|
|
-if article.comments.count == 0
|
|
=link_to "Pas de commentaires", article_path(:slug => article.slug, :anchor => "comments")
|
|
-elsif article.comments.count == 1
|
|
=link_to "1 commentaire", article_path(:slug => article.slug, :anchor => "comments")
|
|
-else
|
|
=link_to "#{article.comments.count} commentaires", article_path(:slug => article.slug, :anchor => "comments")
|
|
|
|
|
|
|
|
%h1=link_to article.title, article_path(:slug => article.slug), :title => "Blog de Nicolas Bally "+article.title.to_s
|
|
|
|
%h2
|
|
%a{:href => article_path(:slug => article.slug)}= article.description
|
|
%a.read{:href => article_path(:slug => article.slug)} Lire la suite
|
|
|
|
%a{:href => article_path(:slug => article.slug)}=image_tag(article.image_file.file.large.medium.url, :alt => "")
|
|
|