Skip to content

Instantly share code, notes, and snippets.

@machida
Created June 13, 2012 15:23
Show Gist options
  • Select an option

  • Save machida/2924745 to your computer and use it in GitHub Desktop.

Select an option

Save machida/2924745 to your computer and use it in GitHub Desktop.
gist
%article
.header
.title
%h1= @entry.title
- unless @entry.category.nil?
.category
%a{:href => @entry.category.link}= @entry.category.title
%p.author
Posted by #{@entry.user.name}
.date
%p.month= @entry.created_at.strftime("%b")
%p.day= @entry.created_at.day
%p.year= @entry.created_at.year
.body
= @entry.body
- if logged_in?
%p
%a{:href => @entry.edit_link}= t('edit')
- unless @entry.tags.size.zero?
.tags
\#{@entry.tags_to_html}
.category
a
display: block
position: absolute
left: 0
top: 0
width: 100px
height: 50px
background: $yellow
line-height: 50px
text-align: center
top: 0
left: 10px
text:
decoration: none
font:
family: 'Londrina Shadow', cursive
size: 20px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment