Newer
Older
<section class="section typeset">
<ul class="list list--posts">
{% assign tagArray = "" | split: ',' -%}
{% assign posts = (site.posts | sort: 'date') %}
{% for post in posts reversed %}
{% if post.categories contains 'project' -%}
{% for tag in post.tags -%}
{% if tagArray contains tag -%}
{% else -%}
{% assign tagArray = tagArray | push: tag -%}
{% endif -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% for project_tag in tagArray %}
{% for project in site.projects -%}
{% if project.tag == project_tag -%}
{% assign lastUpdate = "" -%}
{% for ppost in posts %}
{% if ppost.tags contains project_tag -%}
{% capture lastUpdate %}{{ ppost.date | date_to_string }}{% endcapture -%}
{% endif -%}
{% endfor -%}
<article class="article article--post">
<h2><a href="{{ site.baseurl }}{{ project.url }}">{{ project.name | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2>
{% if project.image -%}
{% if project.image contains '://' -%}
<a href="{{ site.baseurl }}{{ project.url }}"><div class=projectthumbnail style="background-image: url({{project.image}}); height: 200px; width: 100%; margin-right: auto; margin-left: auto; margin-top: 10px;">
</div></a>
<a href="{{ site.baseurl }}{{ project.url }}"><div class=projectthumbnail style="background-image: url({{site.baseurl}}/images/thumbnails/{{project.image}}); height: 200px; width: 100%; margin-right: auto; margin-left: auto; margin-top: 10px;">
</div></a>
{% endif -%}
{% endif -%}
<small class="small post-meta">Letztes Update: <time datetime="{{ page.date | date_to_xmlschema }}" class="time">{{lastUpdate}}</time></small>
<div class="teaser">
{{ project.excerpt | strip_html | markdownify | truncatewords: 60 }}
</div>
</article>
{% endif -%}
{% endfor -%}
{% endfor -%}
</ul>
</section>