Sha256: 6c17464fb4102d361ac965a513b317301a2ac93133f93503de8ae6c2fc3f25b6
Contents?: true
Size: 1.19 KB
Versions: 38
Compression:
Stored size: 1.19 KB
Contents
<% unless @categories_with_blogposts.present? %> <div class="Vlt-callout Vlt-callout--warning"> <i></i> <div class="Vlt-callout__content"> No Blogpost available </div> </div> <% else %> <div class="max-w-screen-xl mx-auto"> <div class="header-separator hr--tall Vlt-text-separator Vlt-text-separator--big"> <span>LATEST POSTS</span> </div> <div class="my-2col-grid"> <%= render partial: 'blog/blogpost/blogpost_with_image', collection: @latest_blogposts, as: :blogpost %> </div> <% @categories_with_blogposts.each do |category| %> <div class="header-separator hr--tall Vlt-text-separator Vlt-text-separator--big"> <a href="<%= blog_category_path(category.slug)%>"> <span>< <%= category.plural.upcase %> /></span> </a> </div> <div class="my-3col-grid"> <% category.blogposts.compact.in_groups(3) do |blogposts| %> <%# cache blogpost do %> <%= render partial: 'blog/blogpost/blogpost', collection: blogposts, as: :blogpost, locals: { show_category_label: false, show_author: true } %> <%# end %> <% end %> </div> <% end # @categories_with_blogposts.each %> </div> <% end %>
Version data entries
38 entries across 38 versions & 1 rubygems