2021-02-25 12:33:02 +01:00
|
|
|
<div class="content blog-preview">
|
2021-03-18 15:02:08 +01:00
|
|
|
<div class="blogpreview-heading columns is-multiline is-gapless">
|
|
|
|
<div class="column is-full">
|
|
|
|
<div class="columns is-gapless is-vcentered">
|
|
|
|
<div class="column">
|
|
|
|
<a class="title is-3 is-size-4-mobile" href="<%= relative_path_to(post) %>">
|
|
|
|
<%= post[:title] %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% if post[:tags] %>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<div class="blogpreview-tags">
|
|
|
|
<% post[:tags]&.each do |tag| %>
|
|
|
|
<!-- The following code is a bit hacky, fix when necessary -->
|
|
|
|
<a class="tag is-normal is-rounded" href=<%= "/blog/#{tag.gsub(' ', '_')}/index.html" %>>
|
|
|
|
<%= tag %>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2021-02-25 12:33:02 +01:00
|
|
|
</div>
|
2021-03-18 15:02:08 +01:00
|
|
|
<small class="column blogpreview-extra"><%= post[:created_at] %><% if post[:author] %> • <%= post[:author] %> <% end %> <%= "• #{post[:description]}" if post[:description] %></small>
|
2017-12-16 18:12:00 +01:00
|
|
|
</div>
|
2021-02-25 12:33:02 +01:00
|
|
|
<p>
|
2021-03-18 15:02:08 +01:00
|
|
|
<%= excerptize(post.reps[:text].compiled_content, length: 500).tr("\n", ' ')%>
|
2021-02-25 12:33:02 +01:00
|
|
|
</p>
|
2021-02-25 12:55:30 +01:00
|
|
|
<hr>
|
2021-02-25 12:33:02 +01:00
|
|
|
</div>
|