forked from raviriley/agency-jekyll-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeline.html
123 lines (119 loc) · 4.64 KB
/
timeline.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!-- About -->
{% if site.locale and site.locale != "" and site.locale != nil %}
<section class="bg-light page-section" id="{{ site.data.sitetext[site.locale].timeline.section | default: "about" }}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">{{ site.data.sitetext[site.locale].timeline.title | markdownify | default: "About" }}</h2>
<!-- <h3 class="section-subheading text-muted">{{ site.data.sitetext[site.locale].timeline.text | default: "timeline"}}</h3> -->
</div>
</div>
<div class="row">
<div class="col-lg-12">
<ul class="timeline">
{%- assign align = site.data.sitetext[site.locale].timeline.start_align -%}
{%- for event in site.data.sitetext[site.locale].timeline.events -%}
{%- if align == "right" -%}
{%- if event.align and event.align == "left" -%}
{%- assign align = "right" -%}
<li>
{%- else -%}
{%- assign align = "left" %}
<li class="timeline-inverted">
{% endif %}
{% else %}
{%- if event.align and event.align == "right" -%}
{%- assign align = "left" -%}
<li class="timeline-inverted">
{%- else -%}
{%- assign align = "right" %}
<li>
{% endif %}
{%- endif -%}
{%- if event.image -%}
<div class="timeline-image">
<img class="rounded-circle img-fluid" src="{{ event.image }}" alt="{{ event.alt | default: ""}}">
</div>
{%- endif -%}
<div class="timeline-panel">
<div class="timeline-heading">
<h4>{{ event.year | markdownify }}</h4>
<h4 class="subheading">{{ event.title }}</h4>
</div>
<div class="timeline-body">
<div class="text-muted">{{ event.desc | markdownify }}</div>
</div>
</div>
</li>
{% endfor %}
{% if site.data.sitetext[site.locale].timeline.end %}
<li class="timeline-inverted">
<div class="timeline-image">
<h4>{{ site.data.sitetext[site.locale].timeline.end }}</h4>
</div>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
</section>
{% else %}
<section class="bg-light page-section" id="{{ site.data.sitetext.timeline.section | default: "about" }}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">{{ site.data.sitetext.timeline.title | markdownify | default: "About" }}</h2>
<!-- <h3 class="section-subheading text-muted">{{ site.data.sitetext.timeline.text | default: "timeline"}}</h3> -->
</div>
</div>
<div class="row">
<div class="col-lg-12">
<ul class="timeline">
{%- assign align = site.data.sitetext.timeline.start_align -%}
{%- for event in site.data.sitetext.timeline.events -%}
{%- if align == "right" -%}
{%- if event.align and event.align == "left" -%}
{%- assign align = "right" -%}
<li>
{%- else -%}
{%- assign align = "left" %}
<li class="timeline-inverted">
{% endif %}
{% else %}
{%- if event.align and event.align == "right" -%}
{%- assign align = "left" -%}
<li class="timeline-inverted">
{%- else -%}
{%- assign align = "right" %}
<li>
{% endif %}
{%- endif -%}
<div class="timeline-image">
<img class="rounded-circle img-fluid" src="{{ event.image }}" alt="{{ event.alt | default: ""}}">
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h4>{{ event.year | markdownify }}</h4>
<h4 class="subheading">{{ event.title }}</h4>
</div>
<div class="timeline-body">
<div class="text-muted">{{ event.desc | markdownify }}</div>
</div>
</div>
</li>
{% endfor %}
{% if site.data.sitetext.timeline.end %}
<li class="timeline-inverted">
<div class="timeline-image">
<h4>{{ site.data.sitetext.timeline.end }}</h4>
</div>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
</section>
{% endif %}
<!-- End About -->