Skip to content

Instantly share code, notes, and snippets.

@Soldo
Created April 4, 2012 17:53
Show Gist options
  • Save Soldo/2304256 to your computer and use it in GitHub Desktop.
Save Soldo/2304256 to your computer and use it in GitHub Desktop.
<a class="link-news" href="#">
<figure class="img-indent"><%= image_tag("page1-img1.jpg") %></figure>
<div class="extra-wrap">
<time class="tdate-1" datetime="2012-10-21">
<%= post.published_at.strftime('%d, %m, %Y') %>
</time>
<span><%= post.title %></span>
</div>
</a>
@nicinabox
Copy link

<%= link_to post %>
  <figure class="img-indent"><%= image_tag("page1-img1.jpg") %></figure>
    <div class="extra-wrap">
            <time class="tdate-1" datetime="2012-10-21">
                                   <%= post.published_at.strftime('%d, %m, %Y') %>
                            </time>
            <span><%= post.title %></span>
    </div>
<% end %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment