Sha256: 3afecbc6211272f9eb42070e2d968ee29f2f79f667902078845df317225c54cb

Contents?: true

Size: 1.71 KB

Versions: 11

Compression:

Stored size: 1.71 KB

Contents

---
layout: default
---

{%- if page.posts -%}
  {% comment %}
    We are dealing with archives.
  {% endcomment %}
  
  {%- assign posts = page.posts -%}
  {%- assign hide_posts_content = true -%}
{%- elsif paginator.posts -%}
  {% comment %}  
    We are dealing with the blog flow.
  {% endcomment %}
  {% assign posts = paginator.posts %}
{%- else -%}
  {% comment %}
    Pagination is disabled, brings full archive.
  {% endcomment %}
  {%- assign posts = site.posts -%}
{%- endif -%}


<div class="container">
  <div class="blog-posts">
    {%- if page.date or page.type -%}
      {%- include blog/archive-title.html type=page.type date=page.date title=page.title hide_posts_content=hide_posts_content -%}
    {%- endif -%}
    
    {% for post in posts %}
      {%- include blog/post.html post=post content=post.content -%}
    {% endfor %}
    
    {% if paginator.previous_page or paginator.next_page -%}
      <nav class="blog-pagination">
        <h2 class="screen-reader-text">
          {{- site.bean.translations.blog_pagination_text -}}
        </h2>
        
        <div class="pagination-links">
          {% if paginator.previous_page -%}
            <a class="prev-page menu-item" href="{{ paginator.previous_page_path | relative_url }}" rel="prev">
              {{- site.bean.translations.blog_pagination_prev_page -}}
            </a>
          {%- endif %}
          
          {% if paginator.next_page -%}
            <a class="next-page menu-item" href="{{ paginator.next_page_path | relative_url }}" rel="next">
              {{- site.bean.translations.blog_pagination_next_page -}}
            </a>
          {%- endif %}
        </div>
      </nav>
    {%- endif %}
  </div>
    
  {% include blog/sidebar.html %}
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
jekyll-theme-bean-1.0.7 _layouts/blog.html
jekyll-theme-bean-1.0.6 _layouts/blog.html
jekyll-theme-bean-1.0.5 _layouts/blog.html
jekyll-theme-bean-1.0.5.pre.1 _layouts/blog.html
jekyll-theme-bean-1.0.4 _layouts/blog.html
jekyll-theme-bean-1.0.3 _layouts/blog.html
jekyll-theme-bean-1.0.2.pre.2 _layouts/blog.html
jekyll-theme-bean-1.0.2.pre.1 _layouts/blog.html
jekyll-theme-bean-1.0.2 _layouts/blog.html
jekyll-theme-bean-1.0.1 _layouts/blog.html
jekyll-theme-bean-1.0.0 _layouts/blog.html