Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (39 sloc) 1.53 KB
---
layout: layouts/base.njk
title: Projects
eleventyNavigation:
key: Projects
order: 2
---
{% import "macros.njk" as macros %}
<ol class="archive-list" reversed>
{% for project in collections.projectsSortedByDate %}
{% if (project.data.collaborator) and not (project.data.collaborator in project.data.title) %}
{% set projectTitle = project.data.title + ' <span class="archive-list__credit">with ' + project.data.collaborator + '</span>' %}
{% else %}
{% set projectTitle = project.data.title %}
{% endif %}
{% if (project.data.client) and (not project.data.client in project.data.title) %}
{% set projectTitle = project.data.client + ": " + projectTitle %}
{% endif %}
{% if (project.data.employer) %}
{% set projectTitle = projectTitle + ' <span class="archive-list__credit">at ' + project.data.employer + '</span>' %}
{% endif %}
<li class="archive-list__item{{ ' archive-list__item--muted' if not project.url }}">
<article class="archive-list__item-inner">
<h2 class="archive-list__title">
{%- if project.url -%}
<a class="archive-list__link" href="{{ project.url }}">{{ projectTitle | safe }}</a>
{%- else -%}
{{ projectTitle | safe }}
{%- endif -%}
</h2>
{%- if project.data.category -%}
<p class="archive-list__category">{{ project.data.category }}</p>
{%- else -%}
<p class="archive-list__category">Various</p>
{%- endif -%}
</article>
</li>
{% endfor %}
</ul>
You can’t perform that action at this time.