-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnews.html
More file actions
79 lines (74 loc) · 2.94 KB
/
Copy pathnews.html
File metadata and controls
79 lines (74 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% load staticfiles nginx_image %}
<section class="news-section" id="news">
<div class="container">
<div class="js-masonry" data-masonry-options='{"columnWidth": 2, "itemSelector": ".grid-item" }'>
{# Featured article #}
<article class="grid-item large">
<div class="item-holder">
{% if article_featured.image %}
<img src="{% thumbnail article_featured.image 792 529 %}" width="792" height="529" alt="">
{% endif %}
<div class="description">
<time datetime="">{{ article_featured.published_at|date:"j E Y" }}</time>
<h1><a href="{{ article_featured.url }}" target="_blank">
{{ article_featured.name }}
</a></h1>
</div>
</div>
</article>
{# Ближайшие события #}
<section class="grid-item articles-list">
<div class="item-holder">
<strong class="title">Ближайшие события</strong>
<div class="articles-holder">
{% for article in articles_top %}
<article class="article">
<time datetime="{{ event.date|date:" Y-m-d H:m " }}">{{ article.published_at|date:"j E Y" }}</time>
<h1>
<a href="{{ article.url }}" target="_blank">
{{ article.name }}
</a>
</h1>
</article>
{% endfor %}
</div>
</div>
</section>
{# News right sidebar #}
<section class="grid-item articles-list">
<div class="item-holder">
<strong class="title">Новости</strong>
<div class="articles-holder">
{% for article in articles_top %}
<article class="article">
<time datetime="{{ event.date|date:"Y-m-d H:m" }}">{{ article.published_at|date:"j E Y" }}</time>
<h1><a {% if not article.is_our %}href="{{ article.url }}" target="_blank"{% else %}href="{% url 'post_page' article.id %}" {% endif %}>
{{ article.name }}
</a></h1>
</article>
{% endfor %}
</div>
</div>
</section>
{% for article in articles_all %}
<article class="grid-item">
<div class="item-holder">
{% if article.image %}
<div class="image-holder">
<img src="{% thumbnail article.image 384 256 %}" width="384" height="256" alt="">
</div>
{% endif %}
<div class="text-holder">
<time datetime="{{ event.date|date:"Y-m-d H:m" }}">{{ article.published_at|date:"j E Y" }}</time>
<h1><a href="{{ article.url }}" target="_blank">{{ article.name }}</a></h1>
{{ article.description|safe }}
</div>
</div>
</article>
{% endfor %}
</div>
{# <div class="btn-holder">#}
{# <a href="#" class="btn-default btn-more">Показать ещё</a>#}
{# </div>#}
</div>
</section>