- {% if keyword.articles %}
- <p style="margin-bottom: 0">{% transchoice keyword.articles|length %}{1} Article:|]1,Inf[ Articles:{% endtranschoice %}</p>
- <ul>
- {% for slug, article in keyword.articles %}
- <li><a href="{{ path('articles_article', {'_article': slug}) }}">{{ article }}</a></li>
- {% endfor %}
- </ul>
+ <section>
+ {% for keyword in keywords %}
+ <article>
+ <header>
+ <h2><a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a></h2>
+ </header>
+ <section>
+ <p>{{ keyword.description }}</p>
+ {#{% if article.keywords is defined and article.keywords %}
+ <nav>
+ {% for keyword in article.keywords %}
+ <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
+ {% endfor %}
+ </nav>
+ {% endif %}#}
+ </section>
+ <footer>
+ <nav>
+ <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
+ </nav>
+ </footer>
+ </article>
+ {% endfor %}
+ </section>
+ {% if keywords_prev is defined or keywords_next is defined %}
+ <footer>
+ <nav class="pager">
+ {% if keywords_prev is defined %}
+ <a href="{{ keywords_prev }}" rel="prev">< {% trans %}Previous keywords{% endtrans %}</a>
+ {% endif %}
+ {% if keywords_next is defined %}
+ <a href="{{ keywords_next }}" rel="next">{% trans %}Next keywords{% endtrans %} ></a>
+ {% endif %}
+ </nav>
+ </footer>