jmblog-theme 1.1.2 → 1.1.7

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: 0ab47535cbe632313df88750b758780d9f273c6daac4e36a41a632b51787a33a
4
- data.tar.gz: 92389cdc4143342fedfd354dd8aac72c0cd24799f0dec648dfe8a55d4390b5d6
3
+ metadata.gz: 1d78f24434d29787390995ddb27ead7358318ea4dae08219bcc8ce679f4e0f16
4
+ data.tar.gz: 903d039b00b05299e57245f11a67ebb7903fff2829f7fcb076567600b16ef1f3
5
5
  SHA512:
6
- metadata.gz: 1ead246e03c774189e37a348643dd2808434830de1cb7399a47c6a657684a678eca245523d72f1aba1e83c4edffa5a339132e51bf131d19fc4bac94e71296962
7
- data.tar.gz: ee9f5ed8867dad924dc19d46ee87cf6389c2e33f23eac504252052c4ee4c570bdf52cc1fe2d78a41318bf1c01770b8328bb80443e197d9e880bbf593c725b8e1
6
+ metadata.gz: 85584cf4d38e5641f27a64457f7e8d3e55f0deb9d102086023003a5f21dfee7925499dda1d31c280dde180c931e2dc853b91668d75eb44d04f12260538d24136
7
+ data.tar.gz: 47d0a290aacee0cdae51662a147fa857f8826d089b041655cdeb7862799358cd1171fe60c26a1417ed26f4f48a1654d3846a219103bceb9a85a9402d10916e20
data/_data/navigation.yml CHANGED
@@ -3,6 +3,6 @@ items:
3
3
  - name: Home
4
4
  link: /
5
5
  - name: About
6
- link: /authors/john
6
+ link: /authors/john_doe
7
7
  - name: Contact
8
8
  link: /contact
@@ -1,23 +1,19 @@
1
1
  <!-- Footer -->
2
2
  <footer class="footer">
3
- <div class="container has-text-centered">
3
+ <div class="container has-text-centered content">
4
4
  <p>
5
- The source code for this website is licensed by
6
- <a href="https://opensource.org/licenses/mit-license.php">MIT</a> and can be found
7
- <a href="https://github.com/johnmoxon/johnmoxon.github.io/">
8
- here on github
9
- <i class="fab fa-github has-text-black"></i><br>
10
- </a>
11
- <span xmlns:dct="https://purl.org/dc/terms/" xmlns:cc="https://creativecommons.org/ns#" class="license-text">
12
- The website content by <strong><span rel="cc:attributionName">John Moxon</span></strong> is licensed under
5
+ The source code for this website is licensed by
6
+ <a href="https://opensource.org/licenses/mit-license.php">MIT</a> and can be found
7
+ <a href="https://github.com/johnmoxon/johnmoxon.github.io/">here on github <i class="fab fa-github has-text-black"></i></a><br>
8
+ <span xmlns:dct="https://purl.org/dc/terms/"
9
+ xmlns:cc="https://creativecommons.org/ns#"
10
+ class="license-text">
11
+ The website content by <strong><span rel="cc:attributionName">John Moxon</span></strong> is licensed under
13
12
  <a href="https://creativecommons.org/licenses/by/4.0">
14
13
  CC BY 4.0
15
14
  <img
16
15
  style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;"
17
- src="https://search.creativecommons.org/static/img/cc_icon.svg" />
18
- <img
19
- style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;"
20
- src="https://search.creativecommons.org/static/img/cc-by_icon.svg" />
16
+ src="https://creativecommons.org/wp-content/uploads/2016/06/brain.png" height="22px" />
21
17
  </a>
22
18
  </span>
23
19
  </p>
@@ -15,7 +15,7 @@
15
15
  font-family: 'Cardo';
16
16
  font-style: normal;
17
17
  font-weight: 400;
18
- font-display: optional;
18
+ font-display: swap;
19
19
  src: local('Cardo'), local('Cardo-Regular'), url(/assets/fonts/Cardo/Cardo-Regular.woff2) format('woff2');
20
20
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
21
21
  }
@@ -25,7 +25,7 @@
25
25
  font-family: 'Montserrat';
26
26
  font-style: normal;
27
27
  font-weight: 400;
28
- font-display: optional;
28
+ font-display: swap;
29
29
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url(/assets/fonts/Montserrat/Montserrat-Regular.woff2) format('woff2');
30
30
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
31
31
  }
@@ -1,14 +1,15 @@
1
- <section class="hero is-dark">
2
- <div class="hero-body">
3
- <h4 class="title is-6 is-spaced">Related posts</h4>
4
-
5
- <div class="columns is-multiline">
1
+ {% assign maxRelated = 4 %}
2
+ {% assign minCommonTags = 1 %}
3
+ {% assign maxRelatedCounter = 0 %}
4
+
5
+ {% assign posts = site.posts | where_exp: "item", "item.slug != page.slug" %}
6
+ {% if posts.size >= 1 %}
7
+
8
+
9
+
10
+
6
11
 
7
- {% assign maxRelated = 4 %}
8
- {% assign minCommonTags = 1 %}
9
- {% assign maxRelatedCounter = 0 %}
10
12
 
11
- {% assign posts = site.posts | where_exp: "item", "item.slug != page.slug" %}
12
13
  {% for post in posts %}
13
14
  {% assign sameTagCount = 0 %}
14
15
 
@@ -19,6 +20,16 @@
19
20
  {% endfor %}
20
21
 
21
22
  {% if sameTagCount >= minCommonTags %}
23
+ {% comment %} {% increment my_counter %} {% endcomment %}
24
+
25
+ {% if maxRelatedCounter == 0 %}
26
+ <section class="hero is-dark">
27
+ <div class="hero-body">
28
+ <h4 class="title is-6 is-spaced">Related posts</h4>
29
+
30
+ <div class="columns is-multiline">
31
+ {% endif %}
32
+
22
33
  <!-- START related component -->
23
34
  <div class="column is-one-quarter">
24
35
  <a href="{{ post.url }}">
@@ -39,35 +50,18 @@
39
50
  </a>
40
51
  </div>
41
52
 
42
-
43
- <!-- END related component -->
53
+ <!-- END related component -->
44
54
  {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
45
55
  {% if maxRelatedCounter >= maxRelated %}
46
- {% break %}
56
+
57
+ {% break %}
47
58
  {% endif %}
48
59
  {% endif %}
49
60
 
50
61
  {% endfor %}
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
- </div>
67
-
68
-
69
- </div>
70
- </section>
71
-
72
-
73
-
62
+ {% if maxRelatedCounter > 0 %}
63
+ </div>
64
+ </div>
65
+ </section>
66
+ {% endif %}
67
+ {% endif %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jmblog-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Moxon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2021-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages