diff --git a/app/Resources/views/blog/index.html.twig b/app/Resources/views/blog/index.html.twig index 09194abc5..f66fd5973 100644 --- a/app/Resources/views/blog/index.html.twig +++ b/app/Resources/views/blog/index.html.twig @@ -10,6 +10,13 @@ {{ post.title }} + {% if 0 < post.tags | length %} +
+ {% for tag in post.tags %} + {{ tag.name }} + {% endfor %} +
+ {% endif %} {{ post.summary|md2html }} diff --git a/app/Resources/views/blog/post_show.html.twig b/app/Resources/views/blog/post_show.html.twig index c574ad115..aea0aa0c1 100644 --- a/app/Resources/views/blog/post_show.html.twig +++ b/app/Resources/views/blog/post_show.html.twig @@ -5,6 +5,14 @@ {% block main %}Tags: + {% for tag in post.tags %} + {{ tag.name }} + {% endfor %} +
+ {% endif %} + {{ post.content|md2html }}