-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.html
More file actions
184 lines (171 loc) · 6.39 KB
/
services.html
File metadata and controls
184 lines (171 loc) · 6.39 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
layout: pages
title: Service factory
---
<div id="content" role="main">
{% include header_projects.html %}
<section class="section swatch-white-red">
<div class="container">
<div class="row">
<div id="search-results" class="col-md-9">
{% if site.posts.size > 0 %}
{% assign servicesbyweight = site.categories.service | sort:"weight" %}
{% for post in servicesbyweight reversed %}
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %}
{% if thecycle == 'odd' %}
<div class="row row-eq-height">
{% endif %}
<article class="post-showinfo post type-post status-publish format-standard has-post-thumbnail hentry category-html category-seo tag-css tag-html tag-mobile col-md-6">
<div class="post-media post-service overlay">
<div class="post-head small-screen-cente text-center">
<h2 class="post-title entry-title">
<a href="{{ site.url }}{{ post.url }}" title="Permalink to Increase Traffic being Mobile Friendly" rel="bookmark"> {{ post.title }} </a>
</h2>
</div>
<a href="{{ site.url }}{{ post.url }}" class="feature-image hover-animate">
{% if post.image == "" or post.image == nil or post.image == blank %}
<img src="images/posts/news_placeholder.png" class="" alt="img-4-1170x400.png">
{% else %}
<img src="{{ site.baseurl }}{{ post.image }}" alt="img-4-1170x400.png" class="proj-image cropservices"><i class="fa fa-link"></i></a>
{% endif %}
<div class="post-extras bordered text-center">
<div class="text-center">
<span class="post-category">
<i class="fa fa-folder-open"></i>
<a href="{{ site.url }}/services.html?query={{ post.category }}" rel="tag">{{post.category}}</a>
</span>
{% if post.tags.size > 0 %}
<span class="post-tags">
<i class="fa fa-tags"></i>
{% for tag in post.tags %}
<a href="{{ site.url }}/services.html?query={{ tag }}" rel="tag">{{ tag }}</a>
{% endfor %}
</span>
{% endif %}
</div>
</div>
<div class="entry-content post-service-text">
{% assign first_line = post.content | newline_to_br | split: '<br />' | first %}
{% if post.excerpt contains first_line %}
{{ post.content | remove: post.excerpt | remove: "Uitdaging" | truncatewords: 40 }}
{% else %}
{% if post.excerpt contains '</' %}
{{ post.excerpt }}
{% else %}
<p>{{ post.excerpt }}</p>
{% endif %}
{% endif %}
</div>
<a href="{{ site.url }}{{ post.url }}" class="more-link box">Lees meer</a>
</div>
</article>
{% if forloop.last == false %}
{% if thecycle == 'even' %}
</div>
{% endif %}
{% else %}
</div>
{% endif %}
{% endfor %}
{% else %}
<p>Er zijn geen services om weer te geven.</p>
{% endif %}
</div>
<aside class="col-md-3 sidebar">
<div id="search-4" class="sidebar-widget widget_search">
<form action="/services.html" method="get">
<input type="text" id="search-box" name="query" placeholder="Zoek naar een Service">
<input type="submit" value="zoek">
</form>
</div>
{% comment %} <div id="categories-3" class="sidebar-widget widget_categories">
<h3 class="sidebar-header">Categorieën</h3>
<ul>
{% for category in site.categories %}
<li class="cat-item cat-item-16"><a href="">{{ category | first }}</a>
{% endfor %}
</ul>
</div> {% endcomment %}
<div id="tag_cloud-3" class="sidebar-widget widget_tag_cloud">
<h3 class="sidebar-header">Populaire Tags</h3>
<div class="tagcloud">
<ul>
{% for tag in site.tags %}
<li><a href="{{ site.url }}/services.html?query={{ tag | first }}" id="tags-list" class="post-tagfilter"> {{ tag | first }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<div id="recent-posts-3" class="sidebar-widget widget_recent_entries">
<h3 class="sidebar-header">Recente Services</h3>
<ul>
{% if site.posts.size > 0 %}
{% assign servicepostsrecent = site.categories.service | sort:"date" %}
{% for post in servicepostsrecent reversed limit:5 %}
<li>
<div class="post-icon">
<i class="fa fa-file-text"></i>
</div>
<a href="{{post.url}}">{{post.title}}</a>
<small></small>
</li>
{% endfor %}
{% else %}
<p>There are no posts available.</p>
{% endif %}
</ul>
</div>
</aside>
</div>
</div>
</section>
</div>
<script>
window.store = {
{% for post in site.categories.service %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"category": "{{ post.category | xml_escape }}",
"content": {{ post.content | remove: post.excerpt | remove: "Uitdaging" | strip_html | truncatewords: 50| strip_newlines | jsonify }},
"url": "{{ post.url | xml_escape }}",
"baseUrl": "{{ site.baseurl | xml_escape }}",
"image": "{{ post.image | xml_escape }}",
"tags": "{{ post.tags | xml_escape }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
</script>
<script>
function resizeBox(){
$(".row-eq-height").each(function( index ){
$(this).find(".col-md-6").css('height', 'auto');
var heights = $(this).find(".col-md-6").map(function() {
return $(this).height();
}).get(),
maxHeight = Math.max.apply(null, heights);
console.log("h="+maxHeight);
$(this).find(".col-md-6").height(maxHeight);
});
}
$(document).ready(function() {
resizeBox();
});
window.addEventListener('resize', resizeBox);
$(window).on("load", resizeBox);
</script>
<script src="/js/lunr.min.js"></script>
<script src="/js/search.js"></script>
<script type="text/javascript">
// custom method added to string
String.prototype.capitalize = function () {
return this.charAt(0).toUpperCase() + this.slice(1);
}
// String.prototype.format = function (...a) {
// let temp = this;
// for (let letter of a) {
// temp = temp.replace("{$}", letter)
// }
// return temp;
// }
</script>