diff --git a/templates/blocks/articles/b_news_elements.html b/templates/blocks/articles/b_news_elements.html index 7c5d901..4b57a0e 100644 --- a/templates/blocks/articles/b_news_elements.html +++ b/templates/blocks/articles/b_news_elements.html @@ -1,6 +1,6 @@ {% load static %} -{% for art in forloop_for %} +{% for art in articles %} {% include "widgets/w_news_element_item.html" %} {#
{{ art.text|safe }}
#} {% endfor %} \ No newline at end of file diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index 7ceea01..a002e5c 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -31,7 +31,7 @@
- {% with from_el=3 forloop_for=breadcrumbs_arts %} + {% with from_el=0 articles=breadcrumbs_arts last_el=0 elements_on_page=3 %} {% include 'blocks/articles/b_news_elements_content.html' %} {% endwith %} diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index db7fc25..ada10c8 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -32,7 +32,7 @@
- {% with from_el=3 forloop_for=articles %} + {% with from_el=3 %} {% include 'blocks/articles/b_news_elements_content.html' %} {% endwith %} {# boris edited #}