Sha256: e565c2b2195230f88b58fa810ab96c47a822d8f77a0409c548f7e0078e0c2308

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

---
layout: default
---

{{- content -}}

{%- if page.include_collection -%}
  {%- assign cols = page.include_collection | split: "," -%}
  {%- for col  in cols -%}
    {%- if forloop.first -%}
      {%- assign alldocs = site.documents | 
                          where_exp: "item", "item.collection == col" -%}
      {%- assign showcol = false -%}
    {%- else -%}
      {%- assign docloop = site.documents | 
                          where_exp: "item", "item.collection == col" -%}
      {%- assign alldocs = alldocs | concat: docloop %}
      {%- assign showcol = true -%}
    {%- endif -%}
  {%- endfor -%}
{%- else -%}
  {%- assign alldocs = site.documents -%}
  {%- assign showcol = true -%}
{% endif %}

  {% assign sort =  page.index_sort | default: 'name' %}

  {% if page.index_sort_asc %}
  {% assign alldocs = alldocs | sort: "{{sort}}" %}
  {% else %}
  {% assign alldocs = alldocs | sort: "{{sort}}" | reverse  %}
  {% endif %}
  
  {% assign end = page.index_items | default: 10   %}
  
{% include_cached components/indexcards.html cacheddocs=alldocs cachedlimit=end %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chulapa-jekyll-1.1.0 _layouts/indexcategory.html
chulapa-jekyll-1.0.1 _layouts/indexcategory.html
chulapa-jekyll-1.0.0 _layouts/indexcategory.html