Sha256: ca923f1959967f7fa8b803bccea20bcd127f4ef2caf892befc3ee681a0997b98

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 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  }}</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

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-zeta-0.3.5.1 _includes/post_list.html
jekyll-zeta-0.3.5 _includes/post_list.html