Sha256: 63804b5a580bbe717cb2a23fb93d164cb1671849c31952d5ae2837397ed4eafd

Contents?: true

Size: 849 Bytes

Versions: 7

Compression:

Stored size: 849 Bytes

Contents

{%-if include.collection-%}
  {%-assign posts = include.collection-%}  
{%-else-%}
  {%-assign posts = site.posts-%}
{%-endif-%}

{%-if include.limit and posts.size > include.limit-%}
  {%-assign limit_exceeded = true-%}
{%-else-%}
  {%-assign limit_exceeded = false-%}
{%-endif-%}

{%- if posts.size > 0 -%}
  <ul class="postlistul">
    {%- for post in posts limit: include.limit -%}
        <li class="postlistli">
          <a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
          <date>{{- post.date | date: site.theme_config.date_format -}}</date>
        </li>
    {%- endfor -%}
    {%- if include.show_more and limit_exceeded -%}
      <li class="postlistli"><a href="{{ include.show_more_url | relative_url }}">{{ include.show_more_text | default: "Show more..." }}</a></li>
    {%- endif -%}
  </ul>
{%- endif -%}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-zeta-0.3.4 _includes/post_list.html
jekyll-zeta-0.3.3 _includes/post_list.html
jekyll-zeta-0.3.2.2 _includes/post_list.html
jekyll-zeta-0.3.2.1 _includes/post_list.html
jekyll-zeta-0.3.2 _includes/post_list.html
jekyll-zeta-0.3.1 _includes/post_list.html
jekyll-zeta-0.3.0 _includes/post_list.html