Ensure CAAT post shows up on home-page..

..by displaying posts in both "howto" and "values" categories. Sorted by
date.
This commit is contained in:
c v t 2019-10-06 15:43:05 +01:00
parent 3883a2c5b1
commit d8be4eb58c
1 changed files with 10 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<section id="two" class="wrapper alt style2"> <section id="two" class="wrapper alt style2">
{% assign posts = site.categories.values | concat: site.categories.howto | sort:"date" | reverse %}
{% for post in site.categories.values %} {% for post in posts %}
<section class="spotlight"> <section class="spotlight">
<div class="image">{% if post.image %}<img src="{% if site.featured-image-source %}{{ post.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ post.image }}{% endif %}" alt="" />{% endif %}</div> <div class="image">{% if post.image %}<img src="{% if site.featured-image-source %}{{ post.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ post.image }}{% endif %}" alt="" />{% endif %}</div>
<div class="content"> <div class="content">
@ -11,5 +11,4 @@
</div> </div>
</section> </section>
{% endfor %} {% endfor %}
</section> </section>