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

19 lines
547 B
Text
Raw Normal View History

2017-04-20 23:06:45 +02:00
<a href="<%= relative_path_to(post) %>">
<article class="box blog-preview">
<div class="content">
<h3 class="has-text-centered"><%= post[:title] %></h3>
<p class="has-text-centered">
<%= post[:description] %>
</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>
</article>
</a>