Skip to content

Commit

Permalink
Clánky a blogy zobrazené štandardným spôsobom ak je horný zoznam tabuľka
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Sep 26, 2021
1 parent 39107da commit 8c8ca4d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions templates/template_overrides/alpha/home.html
Expand Up @@ -85,6 +85,49 @@ <h2 class="block-title">Diskusné fórum</h2>
</div>
</div>

{% if style_options.home_articles and style_options.home_articles == 'table' %}
<div class="module article">
<h2 class="block-title">Články</h2>
{% for top_article in top_articles %}
{% with article=top_article, show_thumbnail=1, extra_classes="article top" %}
{% include "article/block_list_item.html" %}
{% endwith %}
{% endfor %}
{% for top_post in top_posts %}
{% with content_indicator=1, post=top_post %}
{% include "blog/partials/item.html" %}
{% endwith %}
{% endfor %}
{% for article in articles %}
{% if article not in top_articles %}
{% with show_thumbnail=0 %}
{% include "article/block_list_item.html" %}
{% endwith %}
{% endif %}
{% endfor %}
<div class="module-links bottom">
{% for category in article_categories %}
<a href="{{ category.get_absolute_url() }}">{{ category }}</a>
|
{% endfor %}
<a href="{{ url("article:series", page=1) }}">Seriály</a> |
<a href="{{ url("article:list", page=1) }}" class="next">Ďalšie</a>
</div>
</div>

<div class="module blog">
<h2 class="block-title">Blogy</h2>
{% for post in posts %}
{% if article not in top_articles %}
{% include "blog/partials/item.html" %}
{% endif %}
{% endfor %}
<div class="module-links bottom">
<a href="{{ url("blog:post-list", page=1) }}" class="next">Ďalšie</a>
</div>
</div>
{% endif %}

<div class="module desktops horizontal">
<h2 class="block-title">Desktopy</h2>
<div class="module-row">
Expand Down

0 comments on commit 8c8ca4d

Please sign in to comment.