Sha256: c9e6ad70a231ca41fb691310e517e28e77950c5d8ec3540dacb20fb3ab471baa
Contents?: true
Size: 1.7 KB
Versions: 7
Compression:
Stored size: 1.7 KB
Contents
<% if post.has_thumb? %> <div class="panel panel-default"> <div class="panel-body"> <%= raw post.the_link_thumb({}, {class: "img-responsive img-rounded col-md-12 col-lg-12"}) %> </div> </div> <% end %> <% categories = post.the_categories.decorate %> <% if categories.present? %> <div class="panel panel-default"> <div class="panel-heading"><%= ct("categories") %></div> <div class="panel-body"> <ul> <% categories.each do |cat| %> <li><a href="<%= cat.the_url %>"><%= cat.the_title %></a></li> <% end %> </ul> </div> </div> <% end %> <div class="panel panel-default"> <div class="panel-heading"> <%= ct("latest_articles") %> </div> <div class="panel-body"> <ul> <% current_site.the_posts("post").latest.limit(7).decorate.each do |p| %> <li><a href="<%= p.the_url %>"><%= p.the_title %></a></li> <% end %> </ul> </div> </div> <% tags = post.the_tags.decorate %> <% if tags.present? %> <div class="panel panel-default"> <div class="panel-heading"><%= ct("post_tag_list") %></div> <div class="panel-body"> <% tags.each do |post_tag| %> <a class="btn btn-default btn-xs" href="<%= post_tag.the_url %>"><%= post_tag.the_title %></a> <% end %> </div> </div> <% end %> <!-- custom fields --> <% if post.render_fields.present? %> <div class="panel panel-default"> <div class="panel-heading"><%= ct("extra_attributes") %></div> <div class="panel-body"> <%= raw post.render_fields %> </div> </div> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems