]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/article/index.html.twig
Update contact mail html template
[blogbundle] / Resources / views / article / index.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <section id="content">
4 <header>
5 <h1><a href="{{ path('rapsys_blog_article') }}">{{ title }}</a></h1>
6 <p>{{ description }}</p>
7 </header>
8 <section>
9 {% for article in articles %}
10 <article>
11 <header>
12 <h2><a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
13 </header>
14 <section>
15 <p>{{ article.description }}</p>
16 {% if article.keywords is defined and article.keywords %}
17 <nav>
18 {% for keyword in article.keywords %}
19 <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
20 {% endfor %}
21 </nav>
22 {% endif %}
23 </section>
24 <footer>
25 <nav>
26 <a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
27 </nav>
28 </footer>
29 </article>
30 {% endfor %}
31 </section>
32 {% if articles_prev is defined or articles_next is defined %}
33 <footer>
34 <nav class="pager">
35 {% if articles_prev is defined %}
36 <a href="{{ articles_prev }}" rel="prev">&lt; {% trans %}Previous articles{% endtrans %}</a>
37 {% endif %}
38 {% if articles_next is defined %}
39 <a href="{{ articles_next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
40 {% endif %}
41 </nav>
42 </footer>
43 {% endif %}
44 </section>
45 {% endblock %}