jumbo-jekyll-theme 5.6.9.2 → 5.6.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/_config.yml +213 -213
- data/_data/example-carousel-data-source.yml +36 -36
- data/_data/footer.yml +33 -33
- data/_data/nav.yml +17 -17
- data/_data/settings.yml +103 -103
- data/_data/tags.yml +11 -11
- data/_data/universal-nav.yml +7 -7
- data/_includes/breadcrumb.html +97 -97
- data/_includes/core/blocks.html +30 -30
- data/_includes/core/button.html +5 -5
- data/_includes/core/buttons.html +5 -5
- data/_includes/core/container_row.html +7 -7
- data/_includes/core/feature_block.html +43 -43
- data/_includes/core/full_width_row.html +5 -5
- data/_includes/core/members-section.html +32 -32
- data/_includes/core/slider.html +33 -33
- data/_includes/core/slider_row.html +2 -2
- data/_includes/core/title.html +3 -3
- data/_includes/core/youtube_video_embed.html +11 -11
- data/_includes/css.html +9 -9
- data/_includes/custom_include.html +13 -13
- data/_includes/custom_include_row.html +562 -562
- data/_includes/display-blog-posts.html +154 -154
- data/_includes/flow_inner.html +19 -19
- data/_includes/footer.html +68 -68
- data/_includes/google-analytics.html +16 -16
- data/_includes/head.html +19 -19
- data/_includes/image.html +6 -6
- data/_includes/javascript.html +10 -10
- data/_includes/jumbotron.html +115 -115
- data/_includes/linaro-404.html +19 -19
- data/_includes/nav.html +153 -153
- data/_includes/pagination.html +38 -38
- data/_includes/post-sidebar.html +182 -182
- data/_includes/responsive-image.html +5 -5
- data/_includes/schema.html +43 -43
- data/_includes/thumb.html +1 -1
- data/_includes/thumbnail_image.html +9 -9
- data/_includes/universal-nav.html +30 -30
- data/_layouts/author.html +5 -5
- data/_layouts/default.html +3 -3
- data/_layouts/error.html +25 -25
- data/_layouts/flow.html +35 -35
- data/_layouts/jumbotron.html +11 -11
- data/_layouts/post-index.html +16 -16
- data/_layouts/post.html +39 -39
- data/_sass/app/overrides.scss +65 -65
- data/_sass/app/search.scss +51 -51
- data/_sass/bootstrap/_variables.scss +932 -932
- data/_sass/core.scss +20 -20
- data/_sass/core/blog.scss +425 -425
- data/_sass/core/carousel-header.scss +90 -90
- data/_sass/core/error.scss +190 -190
- data/_sass/core/flow.scss +186 -186
- data/_sass/core/footer.scss +141 -141
- data/_sass/core/jumbotron.scss +279 -279
- data/_sass/core/normalize.scss +357 -357
- data/_sass/core/theme.scss +871 -871
- data/_sass/home.scss +2 -2
- data/assets/css/main-blog.scss +13 -13
- data/assets/css/main-error.scss +13 -13
- data/assets/css/main.scss +11 -11
- data/assets/js/app/facebook.js +7 -7
- data/assets/js/app/main.js +261 -261
- data/assets/js/pacakge-search.js +9 -9
- data/assets/js/package-blog.js +12 -12
- data/assets/js/package-extended.js +14 -14
- data/assets/js/package-home.js +14 -14
- data/assets/js/package-main.js +13 -13
- data/assets/js/package-search.js +8 -8
- data/assets/js/vendor/fess-ss.min.js +24 -24
- data/robots.txt +9 -9
- metadata +2 -16
data/_includes/pagination.html
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
{% assign paginate_path = include.path %}
|
2
|
-
{% assign paginate_base_path = paginate_path | split: ":" %}
|
3
|
-
{% if paginator.total_pages > 1 %}
|
4
|
-
<div class="row pagination-row">
|
5
|
-
<div class="text-center" id="pagination_panel">
|
6
|
-
<ul class="pagination pagination-sm">
|
7
|
-
{% if paginator.previous_page %}
|
8
|
-
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a></li>
|
9
|
-
{% else %}
|
10
|
-
<li class="disabled"><a href="#">« Prev</a></li>
|
11
|
-
{% endif %}
|
12
|
-
{% if paginator.page_trail %}
|
13
|
-
{% for trail in paginator.page_trail %}
|
14
|
-
<li {% if page.url == trail.path %}class="active"{% endif %}>
|
15
|
-
<a href="{% if trail.num == 1 %}{{paginate_base_path[0]}}{% else %}
|
16
|
-
{{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}"
|
17
|
-
title="{{trail.title}}">{{ trail.num }}</a>
|
18
|
-
</li>
|
19
|
-
{% endfor %}
|
20
|
-
{% else %}
|
21
|
-
{% for page in (1..paginator.total_pages) %}
|
22
|
-
{% if page == paginator.page %}
|
23
|
-
<li class="active"><a href="">{{ page }}</a></li>
|
24
|
-
{% elsif page == 1 %}
|
25
|
-
<li><a href="{{paginate_base_path[0]}}">{{ page }}</a></li>
|
26
|
-
{% else %}
|
27
|
-
<li><a href="{{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
|
28
|
-
{% endif %}
|
29
|
-
{% endfor %}
|
30
|
-
{% endif %}
|
31
|
-
{% if paginator.next_page %}
|
32
|
-
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next </a></li>
|
33
|
-
{% else %}
|
34
|
-
<li class="disabled"><a href="#">Next »</a></li>
|
35
|
-
{% endif %}
|
36
|
-
</ul>
|
37
|
-
</div>
|
38
|
-
</div>
|
1
|
+
{% assign paginate_path = include.path %}
|
2
|
+
{% assign paginate_base_path = paginate_path | split: ":" %}
|
3
|
+
{% if paginator.total_pages > 1 %}
|
4
|
+
<div class="row pagination-row">
|
5
|
+
<div class="text-center" id="pagination_panel">
|
6
|
+
<ul class="pagination pagination-sm">
|
7
|
+
{% if paginator.previous_page %}
|
8
|
+
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a></li>
|
9
|
+
{% else %}
|
10
|
+
<li class="disabled"><a href="#">« Prev</a></li>
|
11
|
+
{% endif %}
|
12
|
+
{% if paginator.page_trail %}
|
13
|
+
{% for trail in paginator.page_trail %}
|
14
|
+
<li {% if page.url == trail.path %}class="active"{% endif %}>
|
15
|
+
<a href="{% if trail.num == 1 %}{{paginate_base_path[0]}}{% else %}
|
16
|
+
{{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}"
|
17
|
+
title="{{trail.title}}">{{ trail.num }}</a>
|
18
|
+
</li>
|
19
|
+
{% endfor %}
|
20
|
+
{% else %}
|
21
|
+
{% for page in (1..paginator.total_pages) %}
|
22
|
+
{% if page == paginator.page %}
|
23
|
+
<li class="active"><a href="">{{ page }}</a></li>
|
24
|
+
{% elsif page == 1 %}
|
25
|
+
<li><a href="{{paginate_base_path[0]}}">{{ page }}</a></li>
|
26
|
+
{% else %}
|
27
|
+
<li><a href="{{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
|
28
|
+
{% endif %}
|
29
|
+
{% endfor %}
|
30
|
+
{% endif %}
|
31
|
+
{% if paginator.next_page %}
|
32
|
+
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next </a></li>
|
33
|
+
{% else %}
|
34
|
+
<li class="disabled"><a href="#">Next »</a></li>
|
35
|
+
{% endif %}
|
36
|
+
</ul>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
39
|
{% endif %}
|
data/_includes/post-sidebar.html
CHANGED
@@ -1,182 +1,182 @@
|
|
1
|
-
{% comment %}
|
2
|
-
Recent Posts Displayed here.
|
3
|
-
{% endcomment %}
|
4
|
-
<div class="col-xs-12 col-sm-6 no-padding">
|
5
|
-
|
6
|
-
<div class="panel panel-primary" class="blog-sidebar">
|
7
|
-
<div class="panel-heading">
|
8
|
-
<h3 class="panel-title text-center">Recent Posts</h3>
|
9
|
-
</div>
|
10
|
-
<div class="panel-body">
|
11
|
-
{% for post in site.posts limit: 3 %}
|
12
|
-
{% assign timeframe = 604800 %}
|
13
|
-
{% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
|
14
|
-
{% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
|
15
|
-
<a href="{{post.url}}">
|
16
|
-
<div class="row featured_blog_post">
|
17
|
-
<div class="col-md-3 col-sm-3 col-xs-3 no-padding">
|
18
|
-
{% if post.image.thumb %}
|
19
|
-
{% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
20
|
-
{% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
21
|
-
{% responsive_image_block %}
|
22
|
-
template: _includes/thumb.html
|
23
|
-
path: {{ image_path }}
|
24
|
-
fullpath: {{ full_path }}
|
25
|
-
{% if post.title %}
|
26
|
-
title: {{ post.title | slugify: "ascii"}}
|
27
|
-
alt: {{ post.title | slugify: "ascii"}}
|
28
|
-
{% endif %}
|
29
|
-
{% endresponsive_image_block %}
|
30
|
-
{% elsif post.image.name %}
|
31
|
-
{% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
32
|
-
{% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
33
|
-
{% responsive_image_block %}
|
34
|
-
template: _includes/thumb.html
|
35
|
-
path: {{ image_path }}
|
36
|
-
fullpath: {{ full_path }}
|
37
|
-
{% if post.title %}
|
38
|
-
title: {{ post.title | slugify: "ascii"}}
|
39
|
-
alt: {{ post.title | slugify: "ascii"}}
|
40
|
-
{% endif %}
|
41
|
-
{% endresponsive_image_block %}
|
42
|
-
{% elsif post.image.path %}
|
43
|
-
{% capture image_path %}{{post.image.path | remove_first: '/'}}{% endcapture %}
|
44
|
-
{% capture full_path %}{{post.image.path }}{% endcapture %}
|
45
|
-
{% responsive_image_block %}
|
46
|
-
template: _includes/thumb.html
|
47
|
-
path: {{ image_path }}
|
48
|
-
fullpath: {{ full_path }}
|
49
|
-
{% if post.title %}
|
50
|
-
title: {{ post.title | slugify: "ascii"}}
|
51
|
-
alt: {{ post.title | slugify: "ascii"}}
|
52
|
-
{% endif %}
|
53
|
-
{% endresponsive_image_block %}
|
54
|
-
{% elsif post.image == site.data.settings.social_share_image %}
|
55
|
-
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{{site.data.settings.placeholder}}"
|
56
|
-
alt="{{post.title}}" class="center-block img-responsive lazyload" />
|
57
|
-
{% elsif post.image %}
|
58
|
-
{% capture image_path %}{{post.image | remove_first: '/'}}{% endcapture %}
|
59
|
-
{% capture full_path %}{{post.image }}{% endcapture %}
|
60
|
-
{% responsive_image_block %}
|
61
|
-
template: _includes/thumb.html
|
62
|
-
path: {{ image_path }}
|
63
|
-
fullpath: {{ full_path }}
|
64
|
-
{% if post.title %}
|
65
|
-
title: {{ post.title | slugify: "ascii"}}
|
66
|
-
alt: {{ post.title | slugify: "ascii"}}
|
67
|
-
{% endif %}
|
68
|
-
{% endresponsive_image_block %}
|
69
|
-
{% else %}
|
70
|
-
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
71
|
-
data-src="{{site.data.settings.placeholder}}" alt="{{post.title}}" class="img-responsive lazyload"/>
|
72
|
-
{% endif %}
|
73
|
-
</div>
|
74
|
-
<div class="col-md-9 col-sm-9 col-xs-9 ">
|
75
|
-
{{post.title | truncate: 40}}
|
76
|
-
<br />
|
77
|
-
<small>
|
78
|
-
<em>{{post.date | date: "%A, %B %-d, %Y" }}</em>
|
79
|
-
{% if post_in_seconds > recent_posts %}
|
80
|
-
<span class="new-post" title="Post added in the last week.">New</span>
|
81
|
-
{% endif %}
|
82
|
-
</small>
|
83
|
-
</div>
|
84
|
-
</div>
|
85
|
-
</a>
|
86
|
-
{% endfor %}
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
{% comment %}
|
91
|
-
Other Posts
|
92
|
-
{% endcomment %}
|
93
|
-
<div class="col-xs-12 col-sm-6 no-padding">
|
94
|
-
|
95
|
-
<div class="panel panel-primary" class="blog-sidebar">
|
96
|
-
<div class="panel-heading">
|
97
|
-
<h3 class="panel-title text-center">Other Posts</h3>
|
98
|
-
</div>
|
99
|
-
<div class="panel-body">
|
100
|
-
{% assign posts = site.posts | sample:5 %}
|
101
|
-
{% for post in posts %}
|
102
|
-
{% assign timeframe = 604800 %}
|
103
|
-
{% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
|
104
|
-
{% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
|
105
|
-
<a href="{{post.url}}">
|
106
|
-
<div class="row featured_blog_post">
|
107
|
-
<div class="col-md-3 col-sm-3 col-xs-3 no-padding">
|
108
|
-
{% if post.image.thumb %}
|
109
|
-
{% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
110
|
-
{% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
111
|
-
{% responsive_image_block %}
|
112
|
-
template: _includes/thumb.html
|
113
|
-
path: {{ image_path }}
|
114
|
-
fullpath: {{ full_path }}
|
115
|
-
{% if post.title %}
|
116
|
-
title: {{ post.title | slugify: "ascii"}}
|
117
|
-
alt: {{ post.title | slugify: "ascii"}}
|
118
|
-
{% endif %}
|
119
|
-
{% endresponsive_image_block %}
|
120
|
-
{% elsif post.image.name %}
|
121
|
-
{% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
122
|
-
{% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
123
|
-
{% responsive_image_block %}
|
124
|
-
template: _includes/thumb.html
|
125
|
-
path: {{ image_path }}
|
126
|
-
fullpath: {{ full_path }}
|
127
|
-
{% if post.title %}
|
128
|
-
title: {{ post.title | slugify: "ascii"}}
|
129
|
-
alt: {{ post.title | slugify: "ascii"}}
|
130
|
-
{% endif %}
|
131
|
-
{% endresponsive_image_block %}
|
132
|
-
{% elsif post.image.path %}
|
133
|
-
{% capture image_path %}{{post.image.path | remove_first: '/' }}{% endcapture %}
|
134
|
-
{% capture full_path %}{{post.image.path }}{% endcapture %}
|
135
|
-
{% responsive_image_block %}
|
136
|
-
template: _includes/thumb.html
|
137
|
-
path: {{ image_path }}
|
138
|
-
fullpath: {{ full_path }}
|
139
|
-
{% if post.title %}
|
140
|
-
title: {{ post.title | slugify: "ascii"}}
|
141
|
-
alt: {{ post.title | slugify: "ascii"}}
|
142
|
-
{% endif %}
|
143
|
-
{% endresponsive_image_block %}
|
144
|
-
{% elsif post.image == site.data.settings.social_share_image %}
|
145
|
-
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{{site.data.settings.placeholder}}"
|
146
|
-
alt="{{post.title}}" class="center-block img-responsive lazyload" />
|
147
|
-
{% elsif post.image %}
|
148
|
-
{% capture image_path %}{{post.image | remove_first: '/' }}{% endcapture %}
|
149
|
-
{% capture full_path %}{{post.image }}{% endcapture %}
|
150
|
-
{% responsive_image_block %}
|
151
|
-
template: _includes/thumb.html
|
152
|
-
path: {{ image_path }}
|
153
|
-
fullpath: {{ full_path }}
|
154
|
-
{% if post.title %}
|
155
|
-
title: {{ post.title | slugify: "ascii"}}
|
156
|
-
alt: {{ post.title | slugify: "ascii"}}
|
157
|
-
{% endif %}
|
158
|
-
{% endresponsive_image_block %}
|
159
|
-
{% else %}
|
160
|
-
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
161
|
-
data-src="{{site.data.settings.placeholder}}" alt="{{post.title}}" class="img-responsive lazyload"/>
|
162
|
-
{% endif %}
|
163
|
-
</div>
|
164
|
-
<div class="col-md-9 col-sm-9 col-xs-9 ">
|
165
|
-
{{post.title | truncate: 40}}
|
166
|
-
<br />
|
167
|
-
<small>
|
168
|
-
<em>{{post.date | date: "%A, %B %-d, %Y" }}</em>
|
169
|
-
{% if post_in_seconds > recent_posts %}
|
170
|
-
<span class="new-post" title="Post added in the last week.">New</span>
|
171
|
-
{% endif %}
|
172
|
-
</small>
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
</a>
|
176
|
-
{% endfor %}
|
177
|
-
</div>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
{% if site.data.settings.blog.sidebar.custom-include %}
|
181
|
-
{% include {{site.data.settings.blog.sidebar.custom-include}} %}
|
182
|
-
{% endif %}
|
1
|
+
{% comment %}
|
2
|
+
Recent Posts Displayed here.
|
3
|
+
{% endcomment %}
|
4
|
+
<div class="col-xs-12 col-sm-6 no-padding">
|
5
|
+
|
6
|
+
<div class="panel panel-primary" class="blog-sidebar">
|
7
|
+
<div class="panel-heading">
|
8
|
+
<h3 class="panel-title text-center">Recent Posts</h3>
|
9
|
+
</div>
|
10
|
+
<div class="panel-body">
|
11
|
+
{% for post in site.posts limit: 3 %}
|
12
|
+
{% assign timeframe = 604800 %}
|
13
|
+
{% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
|
14
|
+
{% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
|
15
|
+
<a href="{{post.url}}">
|
16
|
+
<div class="row featured_blog_post">
|
17
|
+
<div class="col-md-3 col-sm-3 col-xs-3 no-padding">
|
18
|
+
{% if post.image.thumb %}
|
19
|
+
{% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
20
|
+
{% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
21
|
+
{% responsive_image_block %}
|
22
|
+
template: _includes/thumb.html
|
23
|
+
path: {{ image_path }}
|
24
|
+
fullpath: {{ full_path }}
|
25
|
+
{% if post.title %}
|
26
|
+
title: {{ post.title | slugify: "ascii"}}
|
27
|
+
alt: {{ post.title | slugify: "ascii"}}
|
28
|
+
{% endif %}
|
29
|
+
{% endresponsive_image_block %}
|
30
|
+
{% elsif post.image.name %}
|
31
|
+
{% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
32
|
+
{% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
33
|
+
{% responsive_image_block %}
|
34
|
+
template: _includes/thumb.html
|
35
|
+
path: {{ image_path }}
|
36
|
+
fullpath: {{ full_path }}
|
37
|
+
{% if post.title %}
|
38
|
+
title: {{ post.title | slugify: "ascii"}}
|
39
|
+
alt: {{ post.title | slugify: "ascii"}}
|
40
|
+
{% endif %}
|
41
|
+
{% endresponsive_image_block %}
|
42
|
+
{% elsif post.image.path %}
|
43
|
+
{% capture image_path %}{{post.image.path | remove_first: '/'}}{% endcapture %}
|
44
|
+
{% capture full_path %}{{post.image.path }}{% endcapture %}
|
45
|
+
{% responsive_image_block %}
|
46
|
+
template: _includes/thumb.html
|
47
|
+
path: {{ image_path }}
|
48
|
+
fullpath: {{ full_path }}
|
49
|
+
{% if post.title %}
|
50
|
+
title: {{ post.title | slugify: "ascii"}}
|
51
|
+
alt: {{ post.title | slugify: "ascii"}}
|
52
|
+
{% endif %}
|
53
|
+
{% endresponsive_image_block %}
|
54
|
+
{% elsif post.image == site.data.settings.social_share_image %}
|
55
|
+
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{{site.data.settings.placeholder}}"
|
56
|
+
alt="{{post.title}}" class="center-block img-responsive lazyload" />
|
57
|
+
{% elsif post.image %}
|
58
|
+
{% capture image_path %}{{post.image | remove_first: '/'}}{% endcapture %}
|
59
|
+
{% capture full_path %}{{post.image }}{% endcapture %}
|
60
|
+
{% responsive_image_block %}
|
61
|
+
template: _includes/thumb.html
|
62
|
+
path: {{ image_path }}
|
63
|
+
fullpath: {{ full_path }}
|
64
|
+
{% if post.title %}
|
65
|
+
title: {{ post.title | slugify: "ascii"}}
|
66
|
+
alt: {{ post.title | slugify: "ascii"}}
|
67
|
+
{% endif %}
|
68
|
+
{% endresponsive_image_block %}
|
69
|
+
{% else %}
|
70
|
+
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
71
|
+
data-src="{{site.data.settings.placeholder}}" alt="{{post.title}}" class="img-responsive lazyload"/>
|
72
|
+
{% endif %}
|
73
|
+
</div>
|
74
|
+
<div class="col-md-9 col-sm-9 col-xs-9 ">
|
75
|
+
{{post.title | truncate: 40}}
|
76
|
+
<br />
|
77
|
+
<small>
|
78
|
+
<em>{{post.date | date: "%A, %B %-d, %Y" }}</em>
|
79
|
+
{% if post_in_seconds > recent_posts %}
|
80
|
+
<span class="new-post" title="Post added in the last week.">New</span>
|
81
|
+
{% endif %}
|
82
|
+
</small>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
</a>
|
86
|
+
{% endfor %}
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
{% comment %}
|
91
|
+
Other Posts
|
92
|
+
{% endcomment %}
|
93
|
+
<div class="col-xs-12 col-sm-6 no-padding">
|
94
|
+
|
95
|
+
<div class="panel panel-primary" class="blog-sidebar">
|
96
|
+
<div class="panel-heading">
|
97
|
+
<h3 class="panel-title text-center">Other Posts</h3>
|
98
|
+
</div>
|
99
|
+
<div class="panel-body">
|
100
|
+
{% assign posts = site.posts | sample:5 %}
|
101
|
+
{% for post in posts %}
|
102
|
+
{% assign timeframe = 604800 %}
|
103
|
+
{% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
|
104
|
+
{% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
|
105
|
+
<a href="{{post.url}}">
|
106
|
+
<div class="row featured_blog_post">
|
107
|
+
<div class="col-md-3 col-sm-3 col-xs-3 no-padding">
|
108
|
+
{% if post.image.thumb %}
|
109
|
+
{% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
110
|
+
{% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
|
111
|
+
{% responsive_image_block %}
|
112
|
+
template: _includes/thumb.html
|
113
|
+
path: {{ image_path }}
|
114
|
+
fullpath: {{ full_path }}
|
115
|
+
{% if post.title %}
|
116
|
+
title: {{ post.title | slugify: "ascii"}}
|
117
|
+
alt: {{ post.title | slugify: "ascii"}}
|
118
|
+
{% endif %}
|
119
|
+
{% endresponsive_image_block %}
|
120
|
+
{% elsif post.image.name %}
|
121
|
+
{% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
122
|
+
{% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
|
123
|
+
{% responsive_image_block %}
|
124
|
+
template: _includes/thumb.html
|
125
|
+
path: {{ image_path }}
|
126
|
+
fullpath: {{ full_path }}
|
127
|
+
{% if post.title %}
|
128
|
+
title: {{ post.title | slugify: "ascii"}}
|
129
|
+
alt: {{ post.title | slugify: "ascii"}}
|
130
|
+
{% endif %}
|
131
|
+
{% endresponsive_image_block %}
|
132
|
+
{% elsif post.image.path %}
|
133
|
+
{% capture image_path %}{{post.image.path | remove_first: '/' }}{% endcapture %}
|
134
|
+
{% capture full_path %}{{post.image.path }}{% endcapture %}
|
135
|
+
{% responsive_image_block %}
|
136
|
+
template: _includes/thumb.html
|
137
|
+
path: {{ image_path }}
|
138
|
+
fullpath: {{ full_path }}
|
139
|
+
{% if post.title %}
|
140
|
+
title: {{ post.title | slugify: "ascii"}}
|
141
|
+
alt: {{ post.title | slugify: "ascii"}}
|
142
|
+
{% endif %}
|
143
|
+
{% endresponsive_image_block %}
|
144
|
+
{% elsif post.image == site.data.settings.social_share_image %}
|
145
|
+
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{{site.data.settings.placeholder}}"
|
146
|
+
alt="{{post.title}}" class="center-block img-responsive lazyload" />
|
147
|
+
{% elsif post.image %}
|
148
|
+
{% capture image_path %}{{post.image | remove_first: '/' }}{% endcapture %}
|
149
|
+
{% capture full_path %}{{post.image }}{% endcapture %}
|
150
|
+
{% responsive_image_block %}
|
151
|
+
template: _includes/thumb.html
|
152
|
+
path: {{ image_path }}
|
153
|
+
fullpath: {{ full_path }}
|
154
|
+
{% if post.title %}
|
155
|
+
title: {{ post.title | slugify: "ascii"}}
|
156
|
+
alt: {{ post.title | slugify: "ascii"}}
|
157
|
+
{% endif %}
|
158
|
+
{% endresponsive_image_block %}
|
159
|
+
{% else %}
|
160
|
+
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
|
161
|
+
data-src="{{site.data.settings.placeholder}}" alt="{{post.title}}" class="img-responsive lazyload"/>
|
162
|
+
{% endif %}
|
163
|
+
</div>
|
164
|
+
<div class="col-md-9 col-sm-9 col-xs-9 ">
|
165
|
+
{{post.title | truncate: 40}}
|
166
|
+
<br />
|
167
|
+
<small>
|
168
|
+
<em>{{post.date | date: "%A, %B %-d, %Y" }}</em>
|
169
|
+
{% if post_in_seconds > recent_posts %}
|
170
|
+
<span class="new-post" title="Post added in the last week.">New</span>
|
171
|
+
{% endif %}
|
172
|
+
</small>
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
</a>
|
176
|
+
{% endfor %}
|
177
|
+
</div>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
{% if site.data.settings.blog.sidebar.custom-include %}
|
181
|
+
{% include {{site.data.settings.blog.sidebar.custom-include}} %}
|
182
|
+
{% endif %}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<picture>
|
2
|
-
{% for i in resized %}
|
3
|
-
<source media="(min-width: {{ i.width }}px)" data-srcset="/{{ i.path }}">
|
4
|
-
{% endfor %}
|
5
|
-
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/{{ path }}" class="img-responsive lazyload">
|
1
|
+
<picture>
|
2
|
+
{% for i in resized %}
|
3
|
+
<source media="(min-width: {{ i.width }}px)" data-srcset="/{{ i.path }}">
|
4
|
+
{% endfor %}
|
5
|
+
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/{{ path }}" class="img-responsive lazyload">
|
6
6
|
</picture>
|