-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (86 loc) · 2.77 KB
/
index.html
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
85
86
---
layout: default
---
<section class="matches">
{% for item in site.data.matches %}
{% if item.level == 'secondstage' %}
<h4>{{ item.date }}</h4>
{% for itm in item.groups %}
<details>
<summary class="row">
<article class="info">
<h5>{{ itm.group }}</h5>
<h5>ورزشگاه {{ itm.stadium }}</h5>
<h6>شهر {{ itm.city }}</h6>
</article>
<article class="content">
<div class="team-a">
<img src="{{ itm.flag1}}" alt="{{ itm.team1 }}">
<span>{{ itm.team1 }}</span>
</div>
<div class="time"><span>{% if itm.pts1 == 'zero' %}{{ itm.time }} {% else %} {{ itm.pts1 }} - {{ itm.pts2 }} {% endif %}</span></div>
<div class="team-b">
<span>{{ itm.team2 }}</span>
<img src="{{ itm.flag2}}" alt="{{ itm.team2 }}">
</div>
</article>
</summary>
{% if itm.pts1 == 'zero' %} {% else %}
<article class="contents">
<div class="team-a">
<ul>
{% if itm.pts1 == '0' %}
{% else %}
<li>
<img src="{{ site.url }}/assets/img/goal.png" alt="">
<span>{{ itm.goal1 }}</span>
</li>
{% endif %}
{% if itm.yellow1 == '0' %}
{% else %}
<li>
<img src="{{ site.url }}/assets/img/YellowCard.png" alt="">
<span>{{ itm.yellow1 }}</span>
</li>
{% endif %}
{% if itm.red1 == '0' %}
{% else %}
<li>
<img src="{{ site.url }}/assets/img/RedCard.png" alt="">
<span>{{ itm.red1 }}</span>
</li>
{% endif %}
</ul>
</div>
<div class="team-b">
<ul>
{% if itm.pts2 == '0' %}
{% else %}
<li>
<img src="{{ site.url }}/assets/img/goal.png" alt="">
<span>{{ itm.goal2 }}</span>
</li>
{% endif %}
{% if itm.yellow2 == '0' %}
{% else %}
<li>
<img src="{{ site.url }}/assets/img/YellowCard.png" alt="">
<span>{{ itm.yellow2 }}</span>
</li>
{% endif %}
{% if itm.red2 == '0' %}
{% else %}
<li>
<img src="{{ site.url }}/assets/img/RedCard.png" alt="">
<span>{{ itm.red2 }}</span>
</li>
{% endif %}
</ul>
</div>
</article>
{% endif %}
</details>
{% endfor %}
{% endif %}
{% endfor %}
</section>