Sha256: aed84043eb8e08bab1081875d7dea459567b09d1c1d60483beb8ab946d58305f

Contents?: true

Size: 1.57 KB

Versions: 25

Compression:

Stored size: 1.57 KB

Contents

<% content_for :social_meta_tags do %>
  <meta property="og:title" content="<%= @blog_title %>"/>
  <meta property="og:url" content="<%= fuel.blog_root_url %>"/>
  <meta property="og:site_name" content="<%= Fuel.configuration.site_name %>"/>
  <meta property="og:type" content="Website"/>
<% end %>

<div class="fuel fuel-posts">
  <div class="tagline">
    <h1 class="tagline"><%= link_to @blog_title, fuel.blog_root_path %></h1>
  </div>

  <% if @posts %>
    <section class="posts">
      <%= paginate @posts %>
      <% @posts.each do |post| %>
        <article class="fuel-post fuel-post-index">
          <h2 class="fuel-post-title"><%= link_to post.title, fuel.post_path(post) %></h2>
          <div class="fuel-post-additional-info">
            <span class="fuel_post_date"><%= post.created_at.strftime('%b %d, %Y') %> - </span>
            <span class="fuel-post-author">By <%= post.author.full_name %></span>
          </div>
          <% if post.featured_image_file_name.present? || post.featured_image_url.present? %>
            <div class="image-area">
              <%= image_tag post.prioritized_featured_image_url(:medium) %>
            </div>
          <% end %>
          <div class="fuel-post-content">
            <% content = post.teaser && post.teaser.length > 0 ? post.teaser : post.content %>
            <%= truncate_html(content, length: 250).html_safe %>
          </div>
          <% if post.content.length > 800 %>
            <p><%= link_to 'Read more', fuel.post_url(post) %></p>
          <% end %>
        </article>
      <% end %>
    </section>
  <% end %>

</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fuel-0.4.10 app/views/fuel/posts/index.html.erb
fuel-0.4.9 app/views/fuel/posts/index.html.erb
fuel-0.4.8 app/views/fuel/posts/index.html.erb
fuel-0.4.7 app/views/fuel/posts/index.html.erb
fuel-0.4.6 app/views/fuel/posts/index.html.erb
fuel-0.4.5 app/views/fuel/posts/index.html.erb
fuel-0.4.4 app/views/fuel/posts/index.html.erb
fuel-0.4.3 app/views/fuel/posts/index.html.erb
fuel-0.4.2 app/views/fuel/posts/index.html.erb
fuel-0.4.1 app/views/fuel/posts/index.html.erb
fuel-0.3.34 app/views/fuel/posts/index.html.erb
fuel-0.3.33 app/views/fuel/posts/index.html.erb
fuel-0.3.32 app/views/fuel/posts/index.html.erb
fuel-0.3.31 app/views/fuel/posts/index.html.erb
fuel-0.3.30 app/views/fuel/posts/index.html.erb
fuel-0.3.29 app/views/fuel/posts/index.html.erb
fuel-0.3.28 app/views/fuel/posts/index.html.erb
fuel-0.3.27 app/views/fuel/posts/index.html.erb
fuel-0.3.26 app/views/fuel/posts/index.html.erb
fuel-0.3.25 app/views/fuel/posts/index.html.erb