X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/d0154ce723171034c1c33a23238f1ab08cefe2bf..22f1dcfaa25237a059218334c26712ba3a1cfa00:/Resources/views/index.html.twig diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig index 0036a4e..464fd8a 100644 --- a/Resources/views/index.html.twig +++ b/Resources/views/index.html.twig @@ -1,28 +1,45 @@ -{% extends 'RapsysBlogBundle::body.html.twig' %} +{% extends '@RapsysBlog/_base.html.twig' %} {% 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 %} -

+

{{ title }}

+

{{ description }}

-

{{article.description}}

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

{{ article.title }}

+
+
+

{{ article.description }}

+ {% if article.keywords is defined and article.keywords %} + + {% endif %} +
+ +
+ {% endfor %} +
+ {% if head.prev is defined or head.next is defined %} + + {% endif %} + {% endblock %}