You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
794 B
23 lines
794 B
{% extends 'layout.html.twig' %} |
|
|
|
{% block body %} |
|
<twig:Organisms:MagazineHero :magazine="magazine" :mag="mag" /> |
|
|
|
{# Compute categoryTags for FeaturedList rendering (hero has its own internal copy) #} |
|
{% set categoryTags = [] %} |
|
{% if magazine.tags is defined %} |
|
{% for tag in magazine.tags %} |
|
{% if tag[0] is defined and tag[0] == 'a' %} |
|
{% set categoryTags = categoryTags|merge([tag]) %} |
|
{% endif %} |
|
{% endfor %} |
|
{% endif %} |
|
|
|
<section class="mb-5"> |
|
{% if categoryTags is not empty %} |
|
{% for cat in categoryTags %} |
|
<twig:Organisms:FeaturedList :mag="mag" category="{{ cat }}" class="featured-list"/> |
|
{% endfor %} |
|
{% endif %} |
|
</section> |
|
{% endblock %}
|
|
|