X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/06d85d868aa5a36bb83575d3cd9df95d3011320d..85495f9ce139daf072c3780e28b79e41813e1d2f:/Resources/views/index.html.twig?ds=inline diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig index a32a0ca..0036a4e 100644 --- a/Resources/views/index.html.twig +++ b/Resources/views/index.html.twig @@ -1,3 +1,28 @@ {% extends 'RapsysBlogBundle::body.html.twig' %} -{% block title %}Welcome!{% endblock %} -{% block content %}Hello world !{% endblock %} +{% block content %} +
+

{% trans %}Articles list{% endtrans %}

+ {% for article in articles %} +
+
+

{{article.title}}

+

+ {% 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 %} + {% if article.keywords %} + + {% transchoice article.keywords|length %}{1} Keyword:|]1,Inf[ Keywords:{% endtranschoice %} + {% for slug, keyword in article.keywords %} + {{ keyword }} + {% endfor %} + + {% endif %} +

+
+

{{article.description}}

+ +
+ {% endfor %} +
+{% endblock %}