]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/article/view.html.twig
Add carriage return to cleaned symbol
[blogbundle] / Resources / views / article / view.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block title %}{% endblock %}
3 {% block content %}
4 <article id="content">
5 <header>
6 <h1 id="title"><a href="{{ head.canonical }}">{{ title }}</a></h1>
7 <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>
8 </header>
9 <section>
10 {{ article.body|markdown_to_html }}
11 </section>
12 <footer>
13 {% if article.keywords is defined and article.keywords %}
14 <nav>
15 {% for keyword in article.keywords %}
16 <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
17 {% endfor %}
18 </nav>
19 {% endif %}
20 </footer>
21 </article>
22 {% endblock %}