crazy-toads.github.io/syspages/featured.md
2017-08-08 21:53:28 +02:00

27 lines
1.2 KiB
Markdown

---
layout: page
title: Featured Posts
description: "Featured posts"
permalink: /featured/
sitemap: false
noindex: true
category: base
---
<hr class="gh">
<div class="posts">
{% for post in site.categories.featured %}
<div class="post">
<h1 class="post-title">
<a href="{{ site.url }}{{ post.url }}">
{{ post.title }}
</a>
</h1>
{% if post.modified.size > 2 %}<span class="post-date indexpg" itemprop="dateModified" content="{{ post.modified | date: "%Y-%m-%d" }}"><i class="fa fa-edit" title="Last updated"> {{ post.modified | date_to_string }}</i></span>{% else %}<span class="post-date indexpg" itemprop="datePublished" content="{{ post.date | date: "%Y-%m-%d" }}"><i class="fa fa-calendar" title="Date published"> {{ post.date | date_to_string }}</i></span>{% endif %}
{% if post.description.size > 140 %}{{ post.description | markdownify | remove: '<p>' | remove: '</p>' }}{% else %}{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}{% endif %} <a href="{{ site.url }}{{ post.url }}" title="Read more"><strong>Read more...</strong></a>
</div>
{% unless forloop.last %}<hr class="transp">{% endunless %}
{% endfor %}
</div>