jumbo-jekyll-theme 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/post-sidebar.html +20 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d2af16a26990cc366a78235f1943708e628b9dcb2cd3a35beb431101f537c59
4
- data.tar.gz: 2b02f78c6b9c1e57640488e4aed08ba9555ebb925c6c11cb0606361e0592de93
3
+ metadata.gz: d83ec554de81b57babc4d0e3276f8b58ef2053321a80afce721c22435d50f044
4
+ data.tar.gz: 805de4d659de4cc64c41f3292466b18fcfba3b6ec7399f1e97d8a9def389b10c
5
5
  SHA512:
6
- metadata.gz: 8702af3aca2ef15ba93ced95dafef45fee5d5624c942062f836b3d6a1a2a07ff31c7507acc24b0d604ef95bf9a169c6e898f6120f695635966a9fb16991619bb
7
- data.tar.gz: 82187c87f41f43db6ce9fd222a427fb079c55546971f347d4a9a19b50c0cb58bbd5d6ae0085781f30077b0889a13f0c2473f81827bc6583cbdaac851059f640b
6
+ metadata.gz: 3ca86a10425db4189d9901c7197cd19e032c93132b5baf9b09ca7f470e89fd7cb3cf619fed23ac8617ac7c9d7a4fc73bdd7118cb44b4ab16b0b4261a16d4daab
7
+ data.tar.gz: dc8fea963fcff1d790e988367ad41cd5410f916a8bf883843a3710390b678fd2d3d2caaaba3ad08a6c1eb12305fcb306c5187a69d90929ffe352f7202dd45f6c
@@ -7,6 +7,9 @@
7
7
  </div>
8
8
  <div class="panel-body">
9
9
  {% for post in site.posts limit: 3 %}
10
+ {% assign timeframe = 604800 %}
11
+ {% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
12
+ {% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
10
13
  <a href="{{post.url}}">
11
14
  <div class="row featured_blog_post">
12
15
  <div class="col-md-3 col-sm-3 col-xs-3 no-padding">
@@ -65,7 +68,13 @@
65
68
  </div>
66
69
  <div class="col-md-9 col-sm-9 col-xs-9 ">
67
70
  {{post.title | truncate: 40}}
68
- <br /><small><em>{{post.date | date: "%A, %B %-d, %Y" }}</em></small>
71
+ <br />
72
+ <small>
73
+ <em>{{post.date | date: "%A, %B %-d, %Y" }}</em>
74
+ {% if post_in_seconds > recent_posts %}
75
+ <span class="new-post" title="Post added in the last week.">New</span>
76
+ {% endif %}
77
+ </small>
69
78
  </div>
70
79
  </div>
71
80
  </a>
@@ -83,7 +92,9 @@
83
92
  <div class="panel-body">
84
93
  {% assign posts = site.posts | sample:5 %}
85
94
  {% for post in posts %}
86
-
95
+ {% assign timeframe = 604800 %}
96
+ {% assign post_in_seconds = post.date | date: "%s" | plus: 0 %}
97
+ {% assign recent_posts = "now" | date: "%s" | minus: timeframe %}
87
98
  <a href="{{post.url}}">
88
99
  <div class="row featured_blog_post">
89
100
  <div class="col-md-3 col-sm-3 col-xs-3 no-padding">
@@ -142,7 +153,13 @@
142
153
  </div>
143
154
  <div class="col-md-9 col-sm-9 col-xs-9 ">
144
155
  {{post.title | truncate: 40}}
145
- <br /><small><em>{{post.date | date: "%A, %B %-d, %Y" }}</em></small>
156
+ <br />
157
+ <small>
158
+ <em>{{post.date | date: "%A, %B %-d, %Y" }}</em>
159
+ {% if post_in_seconds > recent_posts %}
160
+ <span class="new-post" title="Post added in the last week.">New</span>
161
+ {% endif %}
162
+ </small>
146
163
  </div>
147
164
  </div>
148
165
  </a>
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: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby