jumbo-jekyll-theme 1.4.3.16 → 1.4.3.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/post.html +19 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 208678825b7aff0432fadf13345c9df6ee59f19f
4
- data.tar.gz: 94020d9fdd2b00e4f4db565dfb7a8295c5c14591
3
+ metadata.gz: e3124b17c4fa3299616dbf7141ca384ceb4c654e
4
+ data.tar.gz: 165ff3d085f9ab20870015ebbcfb8e006132b89d
5
5
  SHA512:
6
- metadata.gz: 44e6a94a4f050b3d5a0d2319ed9bca89f2c077973f0c839beecbc2fdaa88e0b1050654feb4133e16459ee20f6d0fcccedf849d7456f8291d3882794429778b0d
7
- data.tar.gz: df02b85c1207281a6a769167126aa0474a497bc91a9b6bc1ce237b1a95bc0fb29196da3e2eddeac7d80beacd0b32f9ee071f20ef0223feada5811125ea33a114
6
+ metadata.gz: c4442a9248c09f470762ca8e0287c5b5596866234eb9ba2e149c799b24aa7ef6a6dff9f003634c0f33dd79f20d2505ca49fc1dd2b2bb53801ba2fa54312bf57c
7
+ data.tar.gz: 98a3fb75711429d61ef48478bd055a66b7fde146e565e9db2b7ef64ecb55c21e4b30bddceb402a79884bd93596f80b1062db0fd66693c36695251f5c9df6ba46
data/_layouts/post.html CHANGED
@@ -33,10 +33,21 @@ css-package: blog
33
33
  {% if site.authors %}
34
34
  {% assign author = site.authors | where: "username", page.author | first %}
35
35
  {% assign author-url = author.url %}
36
+ {% assign using-data-file = false %}
36
37
  {% elsif site.data.authors %}
38
+ {% assign using-data-file = true %}
37
39
  {% assign author = site.data.authors | where: "username", page.author | first %}
38
40
  {% assign author-url = "#" %}
39
41
  {% endif %}
42
+
43
+ {% if site.using-data-file %}
44
+ <img class="blog-author-image" style="
45
+ background-image:url({% if author.image.name %}
46
+ {% asset_path '{{author.image.name}}' %}
47
+ {% else %}
48
+ {% asset_path 'avatar-placeholder.png' %}
49
+ {% endif %})" />
50
+ {% else %}
40
51
  <a href="{{author-url}}">
41
52
  <img class="blog-author-image" style="
42
53
  background-image:url({% if author.image.name %}
@@ -45,6 +56,7 @@ css-package: blog
45
56
  {% asset_path 'avatar-placeholder.png' %}
46
57
  {% endif %})" />
47
58
  </a>
59
+ {% endif %}
48
60
 
49
61
  {% if page.co-author %}
50
62
  {% if site.authors %}
@@ -52,7 +64,6 @@ css-package: blog
52
64
  {% assign co-author-url = co-author.url %}
53
65
  {% elsif site.data.authors %}
54
66
  {% assign co-author = site.data.authors | where: "username", page.author | first %}
55
- {% assign co-author-url = co-author.url %}
56
67
  {% endif %}
57
68
  <a href="{{co-author-url}}">
58
69
  <img class="blog-author-image" style="
@@ -64,6 +75,12 @@ css-package: blog
64
75
  </a>
65
76
  <br />
66
77
  <small class="blog-author text-center">
78
+ {% if using-data-file %}
79
+ By
80
+ <em>{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}</em>
81
+ and
82
+ <em>{% if co-author.name %}{{co-author.name}}{% else %}{{page.co-author}}{% endif %}</em>
83
+ {% else %}
67
84
  By
68
85
  <a href="{{author-url}}">
69
86
  <em>{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}</em>
@@ -72,6 +89,7 @@ css-package: blog
72
89
  <a href="{{co-author-url}}">
73
90
  <em>{% if co-author.name %}{{co-author.name}}{% else %}{{page.co-author}}{% endif %}</em>
74
91
  </a>
92
+ {% endfi %}
75
93
  </small>
76
94
  <br />
77
95
  {% else %}
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: 1.4.3.16
4
+ version: 1.4.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby