-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patharticle.html
More file actions
84 lines (76 loc) · 2.56 KB
/
article.html
File metadata and controls
84 lines (76 loc) · 2.56 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
80
81
82
83
84
{% extends "base.html" %}
{% block title %} {{ article.title }} | {{ SITENAME }} {% endblock %}
{% block header %}
{% include "header.html" %}
{% endblock %}
{% block content %}
<div itemscope itemtype="http://schema.org/Article">
<h1 class="title" itemprop="name">{{ article.title }}</h1>
<p class="date">
{% if article.date.isoweekday() == 1 %}
Luni,
{% elif article.date.isoweekday() == 2 %}
Marți,
{% elif article.date.isoweekday() == 3 %}
Miercuri,
{% elif article.date.isoweekday() == 4 %}
Joi,
{% elif article.date.isoweekday() == 5 %}
Vineri,
{% elif article.date.isoweekday() == 6 %}
Sâmbătă,
{% elif article.date.isoweekday() == 7 %}
Duminică,
{% endif %}
{{ article.locale_date }}
</p>
<blockquote class="attributes">
{% if article.category %}
<p class="location">Oraș:
<a href="{{ SITEURL }}/{{ article.category.url }}"><span itemprop="location">
{{ category_slugs.get(article.category.slug, article.category.slug.capitalize()) }}</span></a>
</p>
{% endif %}
{% if article.location %}
<p class="venue">Locație:
{% for line in article.location.splitlines() %}
{% if ":" in line %}
{% for name, url in [line.split(':', 1)] %}
<a href="{{ url }}">{{ name }}</a>
{% endfor %}
{% else %}
{{ line }}
{% endif %}
{% endfor %}
{% endif %}
{% if article.start %}
<p class="time">Oră: {{ article.start.split()[1] }}</p>
{% endif %}
{% if article.duration %}
<p class="duration">Durată: {{ article.duration }}</p>
{% endif %}
{% if article.tags %}
<p class="tags">Tip:
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}"><span itemprop="keywords">{{ tag_names.get(tag.name, tag.name.capitalize()) }}</span></a>
{% endfor %}
</p>
{% endif %}
{% if article.registration %}
<p class="registration">Înscrieri:
{% for line in article.registration.splitlines() %}
{% if ":" in line %}
{% for name, url in [line.split(':', 1)] %}
<a href="{{ url }}">{{ name }}</a>
{% endfor %}
{% else %}
{{ line }}
{% endif %}
{% endfor %}
{% endif %}
</blockquote>
<div itemprop="articleBody">{{ article.content }}</div>
</div>
{% include "twitter.html" %}
{% include "disqus.html" %}
{% endblock %}