-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
151 lines (138 loc) · 8.83 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
---
layout: default
---
{% include header.html %}
<div class="container blog-wrp">
<div style="display: flex;">
<h1 style="flex:1 1 70%; display:inline; margin: auto;text-align: center;margin-bottom: 0.5em;">Zuru Tech Office
Blog</h1>
</div>
<div class="home">
<div class="blog-tags-list">
{% assign sorted_tags = site.tags | sort %}
{% for tag in sorted_tags %}
{% assign t = tag | first %}
{% assign posts = tag | last %}
<span class="blog-tag-item" id="{{ t }}-item">
{{ t }}
</span>
{% endfor %}
</div>
<br/>
<p id="dateRangeMin" class="float-left">a</p>
<p id="dateRangeMax" class="float-right">b</p>
<br/>
<br/>
<div id="slider-range"></div>
<div class="row pack">
{% for post in site.posts %}
{%assign indexModulo = forloop.index0 | modulo:4%}
{% if forloop.first == true %}
<div id="{{post.did}}" class="first-large-post col-md-12 col-lg-12 card" tags="{% for tag in post.tags %}
{{ tag }}
{% endfor %}">
{% elsif indexModulo == 0 or forloop.index0 == 2%}
<div id="{{post.did}}" class="col-sm-6 col-md-8 col-lg-6 card-type-jumbo-standard-01" tags="{% for tag in post.tags %}
{{ tag }}
{% endfor %}">
{%else%}
<div id="{{post.did}}" class="col-sm-6 col-md-4 col-lg-3 card" tags="{% for tag in post.tags %}
{{ tag }}
{% endfor %}">
{%endif%}
{% assign mainTag = post.tags[0] %}
{% assign postTheme = site.themeColor[mainTag] %}
{%if forloop.first %}
<a href="{{ post.url | prepend: site.baseurl }}" class="index-anchor">
<div class="mb-25 row large-post-container"
style="background-color:{{postTheme.backgroundColor}};color:{{postTheme.fontColor}};">
<div class="padding-0 col-lg-9">
<div class="card-image-container" style="background-color:{{postTheme.fontColor}}">
<img width="100%" src="{{site.baseurl}}/{{post.image}}"
alt="{{post.title}}">
</div>
</div>
<div class="padding-0 col-lg-3">
<div class="panel-body">
<span class="post-meta float-right test"><small class="blog-post-date">{{ post.date | date: "%-d %B %Y" }}</small></span>
<p class="card-tags-name">{% for t in post.tags%} {{t}}{% unless forloop.last %}
/ {% endunless %} {%endfor%}</p>
<h3 class="card-title panel-title float-left">{{ post.title | truncate: 40}}</h3>
</div>
<div class="panel-body">
<small class="card-sample-content">
{%if forloop.first == true%}{{ post.excerpt | strip_html | strip_newlines |
truncate: 120 }}
{%else%}{{ post.excerpt | strip_html | strip_newlines | truncate: 120 }}
{%endif%}
<span class="read-more">More</span>
</small>
</div>
</div>
</div>
</a>
{% elsif indexModulo == 0 or forloop.index0 == 2%}
<a href="{{ post.url | prepend: site.baseurl }}" class="index-anchor">
<div class="card-container">
<div class="card-art" style="background-color:{{postTheme.fontColor}}">
<div class="card-art-image" style="background-image: url('/{{post.image}}')">
</div>
</div>
<div class="card-text-container"
style="background-color:{{postTheme.backgroundColor}};color:{{postTheme.fontColor}}">
<div class="panel-body">
<span class="post-meta float-right test">
<small class="blog-post-date">{{ post.date | date: "%-d %B %Y" }}</small>
</span>
<p class="card-tags-name">{% for t in post.tags%} {{t}}{% unless forloop.last %}
/ {% endunless %} {%endfor%}</p>
<h3 class="card-title panel-title float-left">{{ post.title | truncate: 40
}}</h3>
</div>
<div class="panel-body">
<small class="card-sample-content">
{%if forloop.first == true%}{{ post.excerpt | strip_html | strip_newlines |
truncate: 120 }}
{%else%}{{ post.excerpt | strip_html | strip_newlines | truncate: 120 }}
{%endif%}
<span class="read-more">More</span>
</small>
</div>
</div>
</div>
</a>
{%else%}
<a href="{{ post.url | prepend: site.baseurl }}" class="index-anchor">
<div class="panel panel-default"
style="background-color:{{postTheme.backgroundColor}};color:{{postTheme.fontColor}};">
{% if post.image %}
<div class="card-image-container" style="background-color:{{postTheme.fontColor}}">
<img width="100%" src="{{site.baseurl}}/{{post.image}}" alt="{{post.title}}">
</div>
{% else %}
<img width="100%" src="{{site.baseurl}}/images/webjeda-logo-big.jpg"
alt="{{site.title}}">
{% endif %}
<div class="panel-body">
<span class="post-meta float-right test"><small class="blog-post-date">{{ post.date | date: "%-d %B %Y" }}</small></span>
<p class="card-tags-name">{% for t in post.tags%} {{t}}{% unless forloop.last %} /
{% endunless %} {%endfor%}</p>
<h3 class="card-title panel-title float-left">{{ post.title | truncate: 40 }}</h3>
</div>
<div class="panel-body">
<small class="card-sample-content">
{%if forloop.first == true%}{{ post.excerpt | strip_html | strip_newlines |
truncate: 120 }}
{%else%}{{ post.excerpt | strip_html | strip_newlines | truncate: 120 }}
{%endif%}
<span class="read-more">More</span>
</small>
</div>
</div>
</a>
{%endif%}
</div>
{% endfor %}
</div>
</div>
</div>