Created
June 13, 2012 15:23
-
-
Save machida/2924745 to your computer and use it in GitHub Desktop.
gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %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} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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