X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/06d85d868aa5a36bb83575d3cd9df95d3011320d..591e65849c2d4cfa32b2c3bdece35b2294a442ae:/Resources/views/index.html.twig 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 %}