]> Raphaƫl G. Git Repositories - blogbundle/blob - templates/article/view.html.twig
Fix buildForm prototype
[blogbundle] / templates / article / view.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <article id="content">
4 <header>
5 <h1 id="title"><a href="{{ canonical }}">{{ title.page }}</a></h1>
6 <p>{% trans with {'%date%': article.created|format_datetime('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|format_datetime('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %}</p>
7 </header>
8 <section>
9 {{ article.body|markdown_to_html }}
10 </section>
11 <footer>
12 {% if article.keywords is defined and article.keywords %}
13 <nav>
14 {% for keyword in article.keywords %}
15 <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
16 {% endfor %}
17 </nav>
18 {% endif %}
19 </footer>
20 </article>
21 {% endblock %}