X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/d0154ce723171034c1c33a23238f1ab08cefe2bf..e68428126bb8a0838479e7c972481a23787bfee2:/Resources/views/index.html.twig?ds=sidebyside diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig index 0036a4e..04c49e4 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 articles_prev is defined or articles_next is defined %} + + {% endif %} + {% endblock %}