<div class="content blog-preview">
  <div class="blogpreview-heading">
    <a class="title is-3" href="<%= relative_path_to(post) %>">
      <%= post[:title] %>
    </a>
    <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>
  <small class="blogpreview-extra"><%= post[:created_at] %><% if post[:author] %> • <%= post[:author] %> <% end %> • <%= post[:description] %></small>
  <br/>
  <p>
  <%= excerptize(post.reps[:text].compiled_content, length: 500).tr("\n", ' ')%>
  </p>
  <hr>
</div>
