zeus.ugent.be/layouts/partials/_blog_preview.erb

17 lines
496 B
Text
Raw Normal View History

2017-12-16 18:12:00 +01:00
<a class="box blog-preview" href="<%= relative_path_to(post) %>">
<div class="content">
<h3 class="has-text-centered"><%= post[:title] %></h3>
<p class="has-text-centered">
2017-04-20 23:06:45 +02:00
<%= post[:description] %>
2017-12-16 18:12:00 +01:00
</p>
<h5 class="has-text-centered">
<% if post[:author] %>
door <%= post[:author] %>
<% end %>
</h5>
<small><%= post[:created_at] %></small>
<br>
<%= excerptize(post.reps[:text].compiled_content, length: 200).tr("\n", ' ')%>
</div>
2017-04-20 23:06:45 +02:00
</a>