jumbo-jekyll-theme 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b85880eb0088023f86609f9d5c4e59cb98fb5e0ee53ffeceaaa779425c5a1d56
4
- data.tar.gz: 4258235c03cc6955d568d3f353a21344f6d9c17d4cf59f03fd36fb08c2c83b68
3
+ metadata.gz: 1ab0f37fddd48376c08e7d9028e3dcd0a1e898d438a8097bb6fe0dd3e697b0d8
4
+ data.tar.gz: 66539ccb364068518c315d995fc958719a8006b74de7d5414948ce4d15d655a3
5
5
  SHA512:
6
- metadata.gz: f46055b07f56d27b30de93d6741f824a609c5a818f3b05788df3f928735c5b226831b29862b0f119bc45e3a1472b17f8c6dbb7e6684b7cb85a403765b56fe714
7
- data.tar.gz: b3f464d27e3c71051a266d9c932d635b22919c126fe4c4c035e6b8b38e4b3c0790582ab741d95b426c54cc21d1c888603cda18f0da7d2fe02dcfa46cc36e4697
6
+ metadata.gz: 9b880d71ade5536c69de227662aa3cbc0794b610a54b54a8e855b35cc44bcf9730db4a4289355166f887a7c429f312c6aa3589f4981a34149fc2a29097b941b3
7
+ data.tar.gz: eb5382018f56c66c029431bfbc305f8651b5b60ba29e4d101ca8ee179c872437adf918e917daf876b12be779c8a495ea5e34d27f2b470f90b9d8a3af0edd9f9f
@@ -0,0 +1,41 @@
1
+ {% assign pagination_path = "/authors/:num/" %}
2
+
3
+ {% if paginator.total_pages > 1 %}
4
+ <div class="text-center" id="pagination_panel">
5
+ <ul class="pagination pagination-sm">
6
+ {% if paginator.previous_page %}
7
+ <li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
8
+ {% else %}
9
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
10
+ {% endif %}
11
+
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 %}/authors/{% else %}
16
+ {{ pagination_path | 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="/authors/">{{ page }}</a></li>
26
+ {% else %}
27
+ <li><a href="{{ pagination_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
28
+ {% endif %}
29
+ {% endfor %}
30
+ {% endif %}
31
+
32
+
33
+
34
+ {% if paginator.next_page %}
35
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
36
+ {% else %}
37
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
38
+ {% endif %}
39
+ </ul>
40
+ </div>
41
+ {% endif %}
@@ -0,0 +1,49 @@
1
+ {% for post in site.posts %}
2
+ {% if post.author == page.username %}
3
+ <div class="row blog_post">
4
+ <div class="col-xs-12 post_title">
5
+ <a href="{{post.url}}"><h3>{{ post.title}}</h3></a>
6
+ <em>{{ post.date | date: "%A, %B %-d, %Y"}}</em><br />
7
+ <p class="post_excerpt">
8
+ {{ post.content | strip_html | truncatewords:30 }}
9
+ </p>
10
+ <p>
11
+ <a href="{{post.url}}">
12
+ <button class="btn blog-read-more-btn">Read More</button>
13
+ </a>
14
+ </p>
15
+ </div>
16
+ </div>
17
+ {% endif %}
18
+ {% endfor %}
19
+ {% assign co-authored-posts = false %}
20
+ {% for post in site.posts %}
21
+ {% if post.co-author == page.username %}
22
+ {% assign co-authored-posts = true %}
23
+ {% endif %}
24
+ {% endfor %}
25
+ {% if co-authored-posts == true %}
26
+ <div class="row">
27
+ <div class="col-xs-12">
28
+ <h3>Featured Posts</h3>
29
+ </div>
30
+ </div>
31
+ {% endif %}
32
+ {% for post in site.posts %}
33
+ {% if post.co-author == page.username %}
34
+ <div class="row blog_post">
35
+ <div class="col-xs-12 post_title ">
36
+ <a href="{{post.url}}"><h3>{{ post.title}}</h3></a>
37
+ <em>{{ post.date | date: "%A, %B %-d, %Y"}}</em><br />
38
+ <p class="post_excerpt">
39
+ {{ post.content | strip_html | truncatewords:30 }}
40
+ </p>
41
+ <p>
42
+ <a href="{{post.url}}">
43
+ <button class="btn blog-read-more-btn">Read More</button>
44
+ </a>
45
+ </p>
46
+ </div>
47
+ </div>
48
+ {% endif %}
49
+ {% endfor %}
data/_includes/head.html CHANGED
@@ -31,6 +31,7 @@
31
31
  {% endif %}
32
32
 
33
33
  {% seo title=false %}
34
+
34
35
  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
35
36
  <!--[if lt IE 9]>
36
37
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: container-breadcrumb
3
+ css-package: blog
4
+ js-package: blog
5
+ ---
6
+ <div class="row blog-row">
7
+ <div class="col-md-9">
8
+ {{content}}
9
+ </div>
10
+ <div class="col-md-3">
11
+ {% include post-sidebar.html %}
12
+ </div>
13
+ </div>
14
+ <div class="row">
15
+ {% include author-pagination.html %}
16
+ </div>
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Blog
3
+ permalink: /authors/
4
+ layout: author-layout
5
+ css-package: blog
6
+ ---
7
+ {% include authors-posts.html %}
data/_layouts/post.html CHANGED
@@ -4,74 +4,46 @@ js-package: blog
4
4
  css-package: blog
5
5
  ---
6
6
  {% if page.image.featured %}
7
- <div class="container-fluid" {% if page.image.featured %}
8
- style="background: #000 url({% asset_path '{{page.image.name}}' %}) no-repeat center center fixed;
7
+ <!--Fluid Container -->
8
+ <div class="container-fluid"
9
+ style="background: #000 url({{page.image.name}}) no-repeat center center fixed;
9
10
  background-size: cover;
10
11
  -webkit-background-size: cover;
11
12
  -moz-background-size: cover;
12
13
  -o-background-size: cover;
13
14
  background-position-y: 0px"
14
- class="jumbotron text-center featured-jumbotron homepage-image-jumbotron"
15
- {% else %}
16
- class="jumbotron text-center featured-jumbotron"
17
- {% endif %}> <!--Fluid Container -->
18
- {% if assets[page.image.name] %}
19
- <div class="row overlay"> <!--Row -->
15
+ class="jumbotron text-center featured-jumbotron homepage-image-jumbotron">
16
+ <!--Row -->
17
+ <div class="row overlay">
20
18
  <div id="featured-jumbotron" class="blog blog-full-page-image-info"> <!--Jumbotron div -->
21
19
  <h1 class="text-center" id="featured-image-blog-title">{{page.title}}</h1>
22
20
  {% if page.author %}
23
21
  {% if site.authors %}
24
22
  {% assign author = site.authors | where: "username", page.author | first %}
25
23
  {% assign author-url = author.url %}
26
- {% assign using-data-file = false %}
27
- {% elsif site.data.authors %}
28
- {% assign using-data-file = true %}
29
- {% assign author = site.data.authors | where: "username", page.author | first %}
30
- {% assign author-url = "#" %}
31
24
  {% endif %}
32
-
33
- {% if site.using-data-file %}
34
- <img class="blog-author-image" style="
35
- background-image:url({% if author.image.name %}
36
- {% asset_path '{{author.image.name}}' %}
37
- {% else %}
38
- {% asset_path 'avatar-placeholder.png' %}
39
- {% endif %})" />
40
- {% else %}
41
25
  <a href="{{author-url}}">
42
26
  <img class="blog-author-image" style="
43
27
  background-image:url({% if author.image.name %}
44
- {% asset_path '{{author.image.name}}' %}
28
+ {{author.image.name}}
45
29
  {% else %}
46
- {% asset_path 'avatar-placeholder.png' %}
30
+ /assets/images/avatar-placeholder.png
47
31
  {% endif %})" />
48
32
  </a>
49
- {% endif %}
50
-
33
+ {% comment %}
34
+ Co-Author Output.
35
+ {% endcomment %}
51
36
  {% if page.co-author %}
52
37
  {% if site.authors %}
53
38
  {% assign co-author = site.authors | where: "username", page.co-author | first %}
54
39
  {% assign co-author-url = co-author.url %}
55
- {% elsif site.data.authors %}
56
- {% assign co-author = site.data.authors | where: "username", page.co-author | first %}
57
- {% assign co-author-url = "#" %}
58
40
  {% endif %}
59
41
  <a href="{{co-author-url}}">
60
42
  <img class="blog-author-image" style="
61
- background-image:url({% if co-author.image.name %}
62
- {% asset_path '{{co-author.image.name}}' %}
63
- {% else %}
64
- {% asset_path 'avatar-placeholder.png' %}
65
- {% endif %})" />
43
+ background-image:url({% if co-author.image.name %}{{co-author.image.name}}{% else %}/assets/images/avatar-placeholder.png{% endif %})" />
66
44
  </a>
67
45
  <br />
68
46
  <small class="blog-author text-center">
69
- {% if using-data-file %}
70
- By
71
- <em>{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}</em>
72
- and
73
- <em>{% if co-author.name %}{{co-author.name}}{% else %}{{page.co-author}}{% endif %}</em>
74
- {% else %}
75
47
  By
76
48
  <a href="{{author-url}}">
77
49
  <em>{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}</em>
@@ -80,26 +52,20 @@ css-package: blog
80
52
  <a href="{{co-author-url}}">
81
53
  <em>{% if co-author.name %}{{co-author.name}}{% else %}{{page.co-author}}{% endif %}</em>
82
54
  </a>
83
- {% endif %}
84
55
  </small>
85
56
  <br />
86
57
  {% else %}
87
58
  <br />
88
59
  <small class="blog-author text-center">
89
- {% if using-data-file %}
90
- By
91
- <em>{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}</em>
92
- {% else %}
93
60
  By
94
61
  <a href="{{author-url}}">
95
62
  <em>{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}</em>
96
63
  </a>
97
- {% endif %}
98
64
  </small>
99
65
  <br />
100
66
  {% endif %}
101
67
  {% endif %}
102
- {% if page.date %}<small class="blog-date text-center"><em>{{page.date | date: "%A, %B %-d, %Y"}}</em></small>{% endif %}
68
+ <small class="blog-date text-center"><em>{{page.date | date: "%A, %B %-d, %Y"}}</em></small>
103
69
  </div>
104
70
  </div>
105
71
 
@@ -108,14 +74,12 @@ css-package: blog
108
74
  {% endif %}
109
75
 
110
76
  </div>
111
- {% endif %}
112
77
  {% endif %}
113
-
114
78
  <div class="container-fluid" id="content-container">
115
79
  <div class="row">
116
80
  <div class="container">
117
81
  {% if site.data.settings.blog.sidebar.display-on-posts %}
118
- <div class="col-md-9">
82
+ <div class="col-md-9">
119
83
  <article class="post-content">
120
84
  {% unless page.image.featured %}
121
85
  <div class="post-info">
@@ -153,18 +117,14 @@ css-package: blog
153
117
  {% endunless %}
154
118
  {{ content }}
155
119
  </article>
156
-
157
-
120
+
158
121
  {% if page.featured-products %}
159
122
  <h3>Featured Products</h3>
160
123
  <hr />
161
124
  <div class="row feautured-products-blog-row">
162
125
  {% for each in page.featured-products %}
163
-
164
126
  {% capture product-perma %}/product/{{each}}/{% endcapture %}
165
-
166
127
  {% assign product = site.data.product_db.products | where: "product_permalink", product-perma | first %}
167
-
168
128
  <div class="col-sm-6">
169
129
  <div class="col-xs-3">
170
130
  <div class="featured-product-blog-img">
@@ -180,34 +140,25 @@ css-package: blog
180
140
  </div>
181
141
  {% endfor %}
182
142
  </div>
183
-
184
143
  <hr/>
185
144
  {% endif %}
186
-
187
-
188
- {% comment %}
189
- TAGS - Check to see if the tags_enabled setting in settings.yml data file is toggled.
190
- {% endcomment %}
191
-
192
- {% include post-tags.html %}
193
-
194
- {% comment %}
195
- COMMENTS - Check to see if comments are toggled for this particular post.
196
- {% endcomment %}
197
145
 
198
- {% include post-comments.html %}
199
- </div>
200
- <div class="col-md-3 blog-sidebar no-padding">
201
- {% include post-sidebar.html %}
202
- </div>
146
+ {% include post-tags.html %}
147
+ {% include post-comments.html %}
148
+
149
+ </div>
150
+ <div class="col-md-3 blog-sidebar no-padding">
151
+ {% include post-sidebar.html %}
152
+ </div>
203
153
  {% else %}
204
154
  <div class="col-xs-12 no-padding">
205
155
  <article class="post-content">
206
156
  {% unless page.image.featured %}
207
157
  <div class="post-info">
208
158
  <h1>{{page.title }}</h1>
209
-
210
- {% if page.date %}<small class="blog-date text-center"><em>Posted on <b>{{page.date | date: "%A, %B %-d, %Y"}}</b></em></small>{% endif %}
159
+ <small class="blog-date text-center">
160
+ <em>Posted on <b>{{page.date | date: "%A, %B %-d, %Y"}}</b></em>
161
+ </small>
211
162
  {% if page.categories %}in <a href="/categories/#{{page.categories[0]}}">{{page.categories[0] | capitalize}}</a>{% endif %}
212
163
  {% if page.author %}
213
164
  {% assign author = site.authors | where: 'username' , page.author %}
@@ -224,7 +175,6 @@ css-package: blog
224
175
  {{page.author}}
225
176
  </strong>
226
177
  {% endif %}
227
-
228
178
  </em>
229
179
  {% endif %}
230
180
  </div>
@@ -232,9 +182,7 @@ css-package: blog
232
182
  {{ content }}
233
183
  </article>
234
184
  </div>
235
- {% endif %}
236
-
237
-
185
+ {% endif %}
238
186
  </div>
239
187
  </div>
240
188
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
@@ -313,6 +313,8 @@ files:
313
313
  - _data/settings.yml
314
314
  - _data/sidebar-nav.yml
315
315
  - _data/sticky-tab-bar.yml
316
+ - _includes/author-pagination.html
317
+ - _includes/authors-posts.html
316
318
  - _includes/breadcrumb.html
317
319
  - _includes/css.html
318
320
  - _includes/custom.html
@@ -348,6 +350,8 @@ files:
348
350
  - _includes/sticky-tab-bar.html
349
351
  - _includes/universal-nav.html
350
352
  - _includes/youtube.html
353
+ - _layouts/author-layout.html
354
+ - _layouts/author.html
351
355
  - _layouts/container-breadcrumb-left-sidebar.html
352
356
  - _layouts/container-breadcrumb-right-sidebar.html
353
357
  - _layouts/container-breadcrumb-tabs.html
@@ -361,7 +365,6 @@ files:
361
365
  - _layouts/home.html
362
366
  - _layouts/post-index.html
363
367
  - _layouts/post-no-sidebar.html
364
- - _layouts/post-old.html
365
368
  - _layouts/post.html
366
369
  - _sass/_bootstrap-compass.scss
367
370
  - _sass/_bootstrap-mincer.scss
@@ -1,70 +0,0 @@
1
- ---
2
- js-package: blog
3
- css-package: blog
4
- layout: container
5
- ---
6
- {% if page.previous.url %}
7
- <a href="{{page.previous.url}}" class="previous_post_anchor">
8
- <div class="previous_post"></div>
9
- </a>
10
- {% endif %}
11
- {% if page.next.url %}
12
- <a href="{{page.next.url}}" class="next_post_anchor">
13
- <div class="next_post"></div>
14
- </a>
15
- {% endif %}
16
-
17
- <div class="col-md-9">
18
- <article class="post-content">
19
- <div class="post-info">
20
- <h1>{{page.title }}</h1>
21
-
22
- {% if page.date %}<small class="blog-date text-center"><em>Posted on <b>{{page.date | date: "%A, %B %-d, %Y"}}</b></em></small>{% endif %}
23
- {% if page.categories %}in <a href="/categories/#{{page.categories[0]}}">{{page.categories[0] | capitalize}}</a>{% endif %}
24
- {% if page.author %}
25
- {% assign author = site.authors | where: 'username' , page.author %}
26
- {% assign author = author[0] %}
27
- <em> By
28
- {% if author %}
29
- <a href="{{author.url}}">
30
- <strong>
31
- {{author.name}}
32
- </strong>
33
- </a>
34
- {% else %}
35
- <strong>
36
- {{page.author}}
37
- </strong>
38
- {% endif %}
39
-
40
- </em>
41
- {% endif %}
42
- </div>
43
- {{ content }}
44
- </article>
45
-
46
- <hr />
47
-
48
- {% comment %}
49
- TAGS - Check to see if the tags_enabled setting in settings.yml data file is toggled.
50
- {% endcomment %}
51
-
52
- {% include post-tags.html %}
53
-
54
- {% comment %}
55
- COMMENTS - Check to see if comments are toggled for this particular post.
56
- {% endcomment %}
57
-
58
- {% include post-comments.html %}
59
-
60
-
61
- </div>
62
-
63
- {% comment %}
64
- Display a right side bar.
65
- {% endcomment %}
66
-
67
- <div class="col-md-3 blog-sidebar">
68
- {% include post-sidebar.html %}
69
- </div>
70
-