Skip to content

Instantly share code, notes, and snippets.

@julioprotzek
Created April 24, 2014 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julioprotzek/11252457 to your computer and use it in GitHub Desktop.
Save julioprotzek/11252457 to your computer and use it in GitHub Desktop.
article
= link_to [@category, article] do
= img article.image.thumb if article.image?
h2 = article.title
p = truncate(article.summary, length: 80)
- @page_class= "#{@category.slug} type-section"
- @title= @category.name
section#featured-article
= render partial: 'featured_article', object: @featured_article
section.latest-articles
.latest-articles-inner
h1 Últimas notícias
= render @articles
= render 'shared/send_news'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment