2016-07-23 22:06:06 +02:00
|
|
|
<% posts_in_year(item[:academic_year]).each do |post| %>
|
2016-08-02 18:31:40 +02:00
|
|
|
<a href="<%= relative_path_to(post) %>">
|
|
|
|
<div class="box">
|
|
|
|
<article class="media">
|
|
|
|
<figure class="media-left">
|
|
|
|
<p class="image is-64x64">
|
|
|
|
<img src="<%= post[:banner] %>">
|
|
|
|
</p>
|
|
|
|
</figure>
|
|
|
|
<div class="media-content">
|
|
|
|
<div class="content">
|
|
|
|
<h2><%= post[:title] %></h2>
|
|
|
|
<%= excerptize(post.reps[:text].compiled_content, length: 200) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
2016-07-23 22:06:06 +02:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<% end %>
|