layout | title | permalink | description | nav | nav_order | display_categories | horizontal |
---|---|---|---|---|---|---|---|
page |
press |
/press/ |
true |
3 |
false |
{%- if site.enable_project_categories and page.display_categories %}
{%- for category in page.display_categories %}
{%- assign categorized_projects = site.projects | where: "category", category -%}
{%- assign sorted_projects = categorized_projects | sort: "date" | reverse %}
{% if page.horizontal -%}
{%- else -%}
{%- else -%}
{%- for project in sorted_projects -%}
{% include projects_horizontal.html %}
{%- endfor %}
{%- for project in sorted_projects -%}
{% include projects.html %}
{%- endfor %}
{%- endif -%}
{% endfor %}
{%- else -%}
{%- assign sorted_projects = site.projects | sort: "date" | reverse -%}
{% if page.horizontal -%}
{%- for project in sorted_projects -%}
{% include projects_horizontal.html %}
{%- endfor %}
{%- for project in sorted_projects -%}
{% include projects.html %}
{%- endfor %}
{%- endif -%}
{%- endif -%}