Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
neoteric-blog / lib / generators / neoteric_blog / install / templates / _sidebar.html.erb
Size: Mime:
<% if @recent_posts %>
  <section class="sidebar-block">
    <header>
      <h2>Recent Posts</h2>
    </header>
    <ul>
      <% @recent_posts.each do |post| %>
        <li>
          <%= link_to post.title, blog_post_path(post) %>
        </li>
      <% end %>
    </ul>
  </section>
<% end %>

<% if @blog_archive_months.any? %>
  <section class="sidebar-block">
    <header>
      <h2>Archives</h2>
    </header>
    <ul>
      <% @blog_archive_months.each do |month| %>
        <li>
          <%= link_to month.fullname, archive_blog_posts_path(month.year, month.month) %>
        </li>
      <% end %>
    </ul>
  </section>
<% end %>

<% if @tags.any? %>
  <section class="sidebar-block tags">
    <header>
      <h2>Tags</h2>
    </header>
    <article>
      <% tag_cloud(@tags, %w(xs s m l)) do |tag, css_class| %>
        <%= link_to tag.name, tagged_blog_posts_path(tag.name), :class => css_class %>
      <% end %>
    </article>
  </section>
<% end %>

<section class="sidebar-block rss">
  <header>
    <h2>RSS</h2>
  </header>
  <ul>
    <li>
      <%= link_to 'Subscribe to RSS feed', blog_posts_path(:format => :rss) %>
  </ul>
</section>