fix new content and filters

This commit is contained in:
Set Hallstrom 2020-09-25 11:14:52 +02:00
parent a0127d478c
commit 34dfc470d8
4 changed files with 11 additions and 10 deletions

View file

@ -47,8 +47,9 @@ layout: default
<h2>Latest News</h2>
</div>
</section>
{% for post in site.posts limit: 3 %}
{% if post.category == 'highlights' %}
{% for post in site.categories.highlights limit: 3 %}
<section class="front-section">
<div style="background-image:url({{ post.image }})">
@ -63,14 +64,14 @@ layout: default
</div>
<div>
<p><a class="button" href="{{ relBase }}{{ post.url }}">📰 Read Highlight</a></p>
<p><a class="button" href="{{ relBase }}{{ post.url }}"> Read Highlight</a></p>
</div>
</div>
</div>
</section>
{% endif %}
{% endfor %}
<section class="releases">