]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/index.html.twig
Add example js
[blogbundle] / Resources / views / index.html.twig
1 {% extends 'RapsysBlogBundle::body.html.twig' %}
2 {% block content %}
3 <section id="content">
4 <h2><a href="{{ path('articles') }}">{% trans %}Articles list{% endtrans %}</a></h2>
5 {% for article in articles %}
6 <article>
7 <header>
8 <h3><a href="{{ path('articles_article', {'_article': article.slug}) }}">{{article.title}}</a></h3>
9 <p>
10 <span>{% trans with {'%date%': article.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %}</span>
11 {% if article.keywords %}
12 <span>
13 {% transchoice article.keywords|length %}{1} Keyword:|]1,Inf[ Keywords:{% endtranschoice %}
14 {% for slug, keyword in article.keywords %}
15 <a href="{{ path('keywords_keyword', {'_keyword': slug}) }}">{{ keyword }}</a>
16 {% endfor %}
17 </span>
18 {% endif %}
19 </p>
20 </header>
21 <p>{{article.description}}</p>
22 <nav>
23 <a href="{{ path('articles_article', {'_article': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
24 </nav>
25 </article>
26 {% endfor %}
27 </section>
28 {% endblock %}