18 lines
654 B
Plaintext
18 lines
654 B
Plaintext
{% extends 'partials/base.html.twig' %}
|
|
{% set collection = page.collection() %}
|
|
|
|
{% block content %}home
|
|
{{ page.content|raw }}
|
|
{# display posts with 'featured' tag on current news page #}
|
|
{% for child in taxonomy.findTaxonomy({'tag': "featured"}) %}
|
|
{% include 'partials/news-list-item.html.twig' with {news: page, page: child} %}
|
|
{% endfor %}
|
|
|
|
{# display posts without 'featured' tag #}
|
|
{% for child in collection %}
|
|
{% if "featured" not in child.taxonomy['tag'] %}
|
|
{% include 'partials/news-list-item.html.twig' with {news: page, page: child} %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|