durfdoen-2.0/layouts/partials/pretty_link.erb

14 lines
401 B
Text
Raw Normal View History

2020-09-18 01:16:13 +02:00
<a class="link" href="<%=item.path%>">
2020-09-10 00:28:10 +02:00
<div class="link__img">
<img src="<%= image_url(item, size="small") %>" alt="<%= item[:naam] %>">
2020-09-10 00:28:10 +02:00
</div>
<div class="link__content">
<h3 class="link__title">
2020-09-10 13:27:02 +02:00
<%= item[:titel] || item[:naam] %>
2020-09-10 00:28:10 +02:00
</h3>
<p class="link__text">
<%= text_segment(item.compiled_content) %>
2020-09-10 00:28:10 +02:00
</p>
</div>
2020-09-18 01:16:13 +02:00
</a>