linaro-jekyll-theme 0.10.86 → 0.10.87

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/_layouts/post.html +38 -33
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a6600f113b52016f7cc69a63c60578d61a4476a
4
- data.tar.gz: e587dc86667f6674dbd3d36c8584f8d9691d4506
3
+ metadata.gz: c25b0767cc72ce2d2a4cf12bd592f48645032862
4
+ data.tar.gz: c4f9ead638d67b2c327a2c9bfeca53bc73025b76
5
5
  SHA512:
6
- metadata.gz: d1890685c033920ad1de8144c0cbe1a297a1883e6ba3f9d3a0e21fb6d59042beddf7b025dfba7f281aff2975e93691c2ebac86aae17df2cb53760a4559469c58
7
- data.tar.gz: 898e388d34890a51084b9849563a9b72d3087f8cfe84e7126f5540ce50a41bc74b85b6fdd41d0b05f133d0d9f587148e2318b07ef401a415ad82b6d0376d00f3
6
+ metadata.gz: 5464ed11a10a47c8c47c687977fdba080609fbd7926e524c93bcfd86c9c40e7ad18af531261afb0be5974710486412ecfaedccf71267bd72047f59f07b161d64
7
+ data.tar.gz: c1c8772fd9633e59fee23a01786684af8056b790f12ce60f413686e9273c24915d13ed08551bf97deabb3d26414a038246ffb76ad813c176d72ba7f21069cc2d
data/_layouts/post.html CHANGED
@@ -6,28 +6,28 @@ css-pack: blog
6
6
  layout: empty
7
7
  ---
8
8
  <div class="container-fluid">
9
- {% if page.featured_image %}
10
- <div class="row" class="blog-featured-img" style="background-color: white;">
11
- <div class="img-blog" style="background: linear-gradient(
12
- rgba(20,20,20, .5),
13
- rgba(20,20,20, .5)),
14
- url('/images/blog/{{page.featured_image}}') no-repeat center center fixed;
15
- background-size: cover;
16
- -webkit-background-size: cover;
17
- -moz-background-size: cover;
18
- -o-background-size: cover;">
19
- <div class="blog-full-page-image-info">
20
- <h1 class="blog-title text-center">{{page.title}}</h1>
21
- {% if page.author %}
22
- {% assign author_object = site.data.authors.entries | where: "shortname", "page.author" %}
23
- <img class="blog-author-image" src="
24
- {% if author_object.avatar %}{{author_object.avatar}}{% else %}/assets/images/avatar-placeholder.png{% endif %}" /><br />
25
- <small class="blog-author text-center">By <em>{% if author_object.name %}{{author_object.name}}{% else %}{{page.author}}{% endif %}</em></small><br />
26
- {% endif %}
27
- {% if page.date %}<small class="blog-date text-center"><em>{{page.date | date: "%A, %B %-d, %Y"}}</em></small>{% endif %}
9
+ {% if page.showcase_image %}
10
+ <div class="row" class="blog-featured-img" style="background-color: white;">
11
+ <div class="img-blog" style="background: linear-gradient(
12
+ rgba(20,20,20, .5),
13
+ rgba(20,20,20, .5)),
14
+ url('{% asset_path '{{page.featured_image}}' %}') no-repeat center center fixed;
15
+ background-size: cover;
16
+ -webkit-background-size: cover;
17
+ -moz-background-size: cover;
18
+ -o-background-size: cover;">
19
+ <div class="blog-full-page-image-info">
20
+ <h1 class="blog-title text-center">{{page.title}}</h1>
21
+ {% if page.author %}
22
+ {% assign author_object = site.data.authors.entries | where: "shortname", "page.author" %}
23
+ <img class="blog-author-image" src="
24
+ {% if author_object.avatar %}{{author_object.avatar}}{% else %}/assets/images/avatar-placeholder.png{% endif %}" /><br />
25
+ <small class="blog-author text-center">By <em>{% if author_object.name %}{{author_object.name}}{% else %}{{page.author}}{% endif %}</em></small><br />
26
+ {% endif %}
27
+ {% if page.date %}<small class="blog-date text-center"><em>{{page.date | date: "%A, %B %-d, %Y"}}</em></small>{% endif %}
28
+ </div>
28
29
  </div>
29
- </div>
30
- </div>
30
+ </div>
31
31
  {% endif %}
32
32
  </div>
33
33
  <div class="container-fluid content-container">
@@ -37,11 +37,11 @@ layout: empty
37
37
  <div class="row">
38
38
  <div class="col-md-9">
39
39
  <article class="post-content">
40
- {% if page.featured_image != '' %}
41
- <div class="post-info">
42
- <h1>{{page.title}}</h1>
43
- {% if page.date %}<small class="blog-date text-center"><em>Posted on <b>{{page.date | date: "%A, %B %-d, %Y"}}</b></em></small>{% endif %} {% if page.author %}<em> By <b>{{page.author}}</b> </em>{% endif %}
44
- </div>
40
+ {% if page.showcase_image == false %}
41
+ <div class="post-info">
42
+ <h1>{{page.title}}</h1>
43
+ {% if page.date %}<small class="blog-date text-center"><em>Posted on <b>{{page.date | date: "%A, %B %-d, %Y"}}</b></em></small>{% endif %} {% if page.author %}<em> By <b>{{page.author}}</b> </em>{% endif %}
44
+ </div>
45
45
  {% endif %}
46
46
  {{ content }}
47
47
  </article>
@@ -85,10 +85,10 @@ layout: empty
85
85
  </div>
86
86
  <div class="col-md-3 col-sm-3 col-xs-3 no-padding">
87
87
  <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
88
- {% if recent_post.image %}
89
- data-src="/assets{{recent_post.image}}"
88
+ {% if recent_post.featured_image %}
89
+ data-src="/assets{{recent_post.featured_image}}"
90
90
  {% else %}
91
- data-src="{% if site.data.company.placeholder %}{{site.data.company.placeholder}}{% else %}/assets/images/placeholder.png{% endif %}"
91
+ data-src="{% if site.data.company.placeholder %}{{site.data.company.placeholder}}{% else %}/assets/images/placeholder.jpg{% endif %}"
92
92
  {% endif %}
93
93
  alt="{{recent_post.title}}" class="img-responsive lazyload"/>
94
94
  </div>
@@ -116,11 +116,16 @@ layout: empty
116
116
  </div>
117
117
  <div class="col-md-3 col-sm-3 col-xs-3 no-padding">
118
118
  <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
119
- {% if post.image %}
120
- data-src="/assets{{post.image}}"
121
- {% else %}
122
- data-src="{% if site.data.company.placeholder %}{{site.data.company.placeholder}}{% else %}/assets/images/placeholder.png{% endif %}"
119
+ {% if site.using_assets == true %}
120
+ data-src="{% asset_path '{{page.featured_image}}' %}"
121
+ {% else %}
122
+ {% if post.featured_image %}
123
+ data-src="/assets{{post.featured_image}}"
124
+ {% else %}
125
+ data-src="{% if site.data.company.placeholder %}{{site.data.company.placeholder}}{% else %}/assets/images/placeholder.jpg{% endif %}"
126
+ {% endif %}
123
127
  {% endif %}
128
+
124
129
  alt="{{post.title}}" class="img-responsive lazyload"/>
125
130
  </div>
126
131
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linaro-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.86
4
+ version: 0.10.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby