jmblog-theme 1.0 → 1.1.4
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.
- checksums.yaml +4 -4
- data/_config.yml +34 -16
- data/_data/navigation.yml +1 -1
- data/_includes/{JB → JB.old}/analytics +0 -0
- data/_includes/{JB → JB.old}/analytics-providers/getclicky +0 -0
- data/_includes/{JB → JB.old}/analytics-providers/mixpanel +0 -0
- data/_includes/{JB → JB.old}/analytics-providers/piwik +0 -0
- data/_includes/{JB → JB.old}/categories_list +0 -0
- data/_includes/{JB → JB.old}/comments +0 -0
- data/_includes/{JB → JB.old}/comments-providers/disqus +0 -0
- data/_includes/{JB → JB.old}/comments-providers/facebook +0 -0
- data/_includes/{JB → JB.old}/comments-providers/intensedebate +0 -0
- data/_includes/{JB → JB.old}/comments-providers/livefyre +0 -0
- data/_includes/{JB → JB.old}/liquid_raw +0 -0
- data/_includes/{JB → JB.old}/pages_list +0 -0
- data/_includes/{JB → JB.old}/posts_collate +0 -0
- data/_includes/{JB → JB.old}/setup +0 -0
- data/_includes/{JB → JB.old}/sharing +0 -0
- data/_includes/{JB → JB.old}/tags_list +0 -0
- data/_includes/{JB → JB.old}/urlset +0 -0
- data/_includes/themes/jmblog-theme/components/comment.html +79 -0
- data/_includes/themes/jmblog-theme/components/comment_form.html +87 -0
- data/_includes/themes/jmblog-theme/components/comments.html +40 -17
- data/_includes/themes/jmblog-theme/components/comments.html.orig +19 -0
- data/_includes/themes/jmblog-theme/components/footer.html +9 -13
- data/_includes/themes/jmblog-theme/components/head.html +8 -3
- data/_includes/themes/jmblog-theme/components/related_articles.html +7 -26
- data/_includes/themes/jmblog-theme/error.html +2 -2
- data/_includes/themes/jmblog-theme/home.html +2 -2
- data/_includes/themes/jmblog-theme/post.html +3 -12
- data/_includes/themes/jmblog-theme/theme/default.html +1 -1
- data/_includes/themes/jmblog-theme/theme/maintenance.html +1 -1
- data/assets/img/user-circle-solid.svg +1 -0
- data/assets/js/default.bundle.js +1 -1
- data/assets/js/default.bundle.js.br +0 -0
- data/assets/js/default.js.map +1 -1
- data/assets/js/maintenance.bundle.js +1 -1
- data/assets/js/maintenance.bundle.js.br +0 -0
- data/assets/js/maintenance.js.map +1 -1
- data/assets/js/vendor.bundle.js +1 -1
- data/assets/js/vendor.bundle.js.br +0 -0
- data/assets/js/vendor.js.map +1 -1
- data/assets/sass/base.scss +7 -6
- data/index.html +2 -2
- metadata +28 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f5dda63de4b05c3d1e993578fa546c534b7c4511580af8161aeba3ac22d0309
|
|
4
|
+
data.tar.gz: 73af0abd16ab17c8865c1423a5bf714e8a3d8a0cc3fc6381b9b8af392be99632
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f058b099b78d282f86916c042cf7fd34b5f7a6724e026857f268c3fc22581229d17ff3fa1c3098cbfff99dc3aa40573edc9505a82e715c7c6416abdca5c1b01
|
|
7
|
+
data.tar.gz: 4d28be490195ac9b8888563640267abb75525983b2978a702b9c78bad88065ef2cbb6d8b3b99bf5f95898cf7772e0eb28d7ce774b2a361fae269b5a186e65e8b
|
data/_config.yml
CHANGED
|
@@ -13,18 +13,15 @@ collections:
|
|
|
13
13
|
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
|
14
14
|
# You can create any custom variable you would like, and they will be accessible
|
|
15
15
|
# in the templates via {{ site.myvariable }}.
|
|
16
|
-
title:
|
|
17
|
-
tagline: "
|
|
18
|
-
author:
|
|
16
|
+
title: Website title
|
|
17
|
+
tagline: "Website tagline"
|
|
18
|
+
author: Author Name
|
|
19
19
|
|
|
20
20
|
description: >-
|
|
21
|
-
|
|
22
|
-
Risk mitigator, Technology/Fintech evangelist and amateur
|
|
23
|
-
beer brewer. Writing articles about what I know and what I learn as I
|
|
24
|
-
find my own path in my career and life.
|
|
21
|
+
Website description.
|
|
25
22
|
|
|
26
|
-
copyright: "copyright
|
|
27
|
-
license: "copyright
|
|
23
|
+
copyright: "copyright Author name 2020. All rights reserved."
|
|
24
|
+
license: "copyright Author name 2020. All rights reserved."
|
|
28
25
|
|
|
29
26
|
paginate: 5
|
|
30
27
|
paginate_path: "/articles/page:num/"
|
|
@@ -38,17 +35,17 @@ quiet: false
|
|
|
38
35
|
verbose: false
|
|
39
36
|
|
|
40
37
|
baseurl: "" # the subpath of your site, e.g. /blog
|
|
41
|
-
url: https://www.
|
|
42
|
-
twitter_username : https://twitter.com/
|
|
43
|
-
github_username : http://github.com/
|
|
44
|
-
linkedin_username : https://www.linkedin.com/in/
|
|
45
|
-
medium_username : https://medium.com/@
|
|
46
|
-
meeting_url: 'https://meetings.hubspot.com/
|
|
38
|
+
url: https://www.yourwebsite.com # the base hostname & protocol for your site, e.g. http://example.com
|
|
39
|
+
twitter_username : https://twitter.com/yourtwitterhandle
|
|
40
|
+
github_username : http://github.com/githubusername/
|
|
41
|
+
linkedin_username : https://www.linkedin.com/in/linkedinprofile/
|
|
42
|
+
medium_username : https://medium.com/@mediumusername
|
|
43
|
+
meeting_url: 'https://meetings.hubspot.com/meetingurl'
|
|
47
44
|
|
|
48
45
|
# GTM Tracking ID
|
|
49
46
|
analytics:
|
|
50
47
|
gtm:
|
|
51
|
-
tracking_id: GTM-
|
|
48
|
+
tracking_id: GTM-XXXXXXX
|
|
52
49
|
|
|
53
50
|
# Build settings
|
|
54
51
|
markdown: kramdown
|
|
@@ -78,3 +75,24 @@ plugins:
|
|
|
78
75
|
|
|
79
76
|
kramdown:
|
|
80
77
|
input: GFM
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# The URL for the staticman API bridge endpoint
|
|
82
|
+
# You will want to modify some of the values:
|
|
83
|
+
# ${github-username}: the username of the account with which you publish your blog
|
|
84
|
+
# ${blog-repo}: the name of your blog repository in github
|
|
85
|
+
# master: this the branch out of which your blog is published, often master or gh-pages
|
|
86
|
+
# ${bridge_app_name}: the name you chose in Heroku for your bridge API
|
|
87
|
+
# comments: the so-called property, this defines the key in staticman.yml where the configuration is found
|
|
88
|
+
#
|
|
89
|
+
# for me, this line reads:
|
|
90
|
+
# https://staticman-travisdownsio.herokuapp.com/v2/entry/travisdowns/travisdowns.github.io/master/comments
|
|
91
|
+
# staticman_url: https://staticmaninstance.herokuapp.com/v2/entry/githubusername/repository/branch/comments
|
|
92
|
+
|
|
93
|
+
# reCaptcha configuration info: the exact same site key and *encrypted* secret that you used in staticman.yml
|
|
94
|
+
# I personally don't think the secret needs to be included in the generated site, but the staticman API bridge uses
|
|
95
|
+
# it to ensure the site configuration and bridge configuration match (but why not just compare the site key?)
|
|
96
|
+
# reCaptcha:
|
|
97
|
+
# siteKey: yoursitekey
|
|
98
|
+
# secret: yourencryptedsecretkey
|
data/_data/navigation.yml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{%- capture article_class %}media js-comment comment{% if include.name == site.author.name %} admin{% endif %}{% if
|
|
2
|
+
include.is_reply %} child{% endif %}{% endcapture %}
|
|
3
|
+
{% assign comment_id = include.uid | prepend: 'comment-' %}
|
|
4
|
+
|
|
5
|
+
<article class="{{ article_class }}" id="{{ comment_id }}" uid="{{ include.uid }}">
|
|
6
|
+
<!-- Gravatar here -->
|
|
7
|
+
<figure class="media-left">
|
|
8
|
+
<p class="image is-64x64">
|
|
9
|
+
{% if include.avatar %}
|
|
10
|
+
<img src="{{ include.avatar }}"
|
|
11
|
+
alt="{{ include.name | escape }}"
|
|
12
|
+
width="64px"
|
|
13
|
+
height="64px"
|
|
14
|
+
class="is-rounded">
|
|
15
|
+
{% elsif include.email != "" %}
|
|
16
|
+
<img src="https://www.gravatar.com/avatar/{{ include.email }}?d={{ '/assets/img/user-circle-solid.svg' | absolute_url | url_encode }}&&s=64"
|
|
17
|
+
srcset="https://www.gravatar.com/avatar/{{ include.email }}?d={{ '/assets/img/user-circle-solid.svg' | absolute_url | url_encode }}&&s=128 2x"
|
|
18
|
+
alt="{{ include.name | escape }}"
|
|
19
|
+
width="64px"
|
|
20
|
+
height="64px"
|
|
21
|
+
class="is-rounded">
|
|
22
|
+
{% else %}
|
|
23
|
+
<img src="{{ '/assets/img/user-circle-solid.svg' | absolute_url }}"
|
|
24
|
+
alt="{{ include.name | escape }}"
|
|
25
|
+
width="64px"
|
|
26
|
+
height="64px"
|
|
27
|
+
class="is-rounded">
|
|
28
|
+
{% endif %}
|
|
29
|
+
</p>
|
|
30
|
+
</figure>
|
|
31
|
+
<!-- end gravatar -->
|
|
32
|
+
<div class="media-content">
|
|
33
|
+
<div class="comment__author">
|
|
34
|
+
<p>
|
|
35
|
+
<strong>{{- include.name | strip_html -}}</strong> <small class="comment__date">
|
|
36
|
+
{%- if include.date -%}
|
|
37
|
+
<a href="#{{ comment_id}}" title="Permalink to this comment">
|
|
38
|
+
{{- include.date | date:"%B %eth, %Y %H:%M" -}}
|
|
39
|
+
</a>
|
|
40
|
+
{%- endif -%}
|
|
41
|
+
</small>
|
|
42
|
+
<br>
|
|
43
|
+
{{ include.message | strip_html | markdownify }}
|
|
44
|
+
</p>
|
|
45
|
+
</div>
|
|
46
|
+
{% unless include.is_reply %}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<nav class="level is-mobile">
|
|
50
|
+
<div class="level-left">
|
|
51
|
+
<a rel="nofollow"
|
|
52
|
+
class="level-item comment__reply-link"
|
|
53
|
+
data-comment-id="{{ comment_id }}"
|
|
54
|
+
data-page-slug="{{ page.slug }}"
|
|
55
|
+
data-uid="{{ include.uid }}"
|
|
56
|
+
data-respond-id="respond">
|
|
57
|
+
<span class="icon is-small pr-3">
|
|
58
|
+
<i class="fas fa-reply"></i></span> <small>reply to {{ include.name }}</small>
|
|
59
|
+
</a>
|
|
60
|
+
</div>
|
|
61
|
+
</nav>
|
|
62
|
+
|
|
63
|
+
{%- capture this_uid %}{{ include.uid }}{% endcapture %}
|
|
64
|
+
{%- assign replies = site.data.comments[page.slug] | where_exp: 'item', 'item.replying_to_uid == this_uid' %}
|
|
65
|
+
{%- assign replies_date = replies | sort: 'date' %}
|
|
66
|
+
{% for reply in replies_date %}
|
|
67
|
+
{%- assign email = reply.email -%}
|
|
68
|
+
{%- assign name = reply.name -%}
|
|
69
|
+
{%- assign url = reply.url -%}
|
|
70
|
+
{%- assign date = reply.date -%}
|
|
71
|
+
{%- assign message = reply.message -%}
|
|
72
|
+
{%- assign uid = reply._id -%}
|
|
73
|
+
{% include themes/jmblog-theme/components/comment.html is_reply=true uid=uid email=email name=name url=url date=date message=message %}
|
|
74
|
+
{% endfor %}
|
|
75
|
+
|
|
76
|
+
<!-- <hr style="border-top: 1px solid #ccc; background: transparent; margin-bottom: 10px;"> -->
|
|
77
|
+
{% endunless %}
|
|
78
|
+
</div>
|
|
79
|
+
</article>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<div id="comments__form" class="container mt-6">
|
|
2
|
+
<form class="comments-form form" method="post" action="{{ site.staticman_url }}">
|
|
3
|
+
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
|
|
4
|
+
<input type="hidden" name="options[parent]" value="{{ page.url | absolute_url }}">
|
|
5
|
+
<input type="hidden" id="comment-replying-to-uid" name="fields[replying_to_uid]" value="">
|
|
6
|
+
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
|
7
|
+
<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.reCaptcha.siteKey }}">
|
|
8
|
+
<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.reCaptcha.secret }}">
|
|
9
|
+
|
|
10
|
+
<div class="field">
|
|
11
|
+
<label class="label" for="comment-form-message">
|
|
12
|
+
{% if include.first_comment == true %}Be The First To {% endif %}
|
|
13
|
+
Leave A Comment
|
|
14
|
+
</label>
|
|
15
|
+
<div class="control">
|
|
16
|
+
<textarea class="textarea comments-field"
|
|
17
|
+
name="fields[message]"
|
|
18
|
+
id="comment-form-message"
|
|
19
|
+
placeholder="Your comment (markdown accepted)"
|
|
20
|
+
required></textarea>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="field">
|
|
25
|
+
<label class="label" for="comment-form-name">Name</label>
|
|
26
|
+
<div class="control has-icons-left">
|
|
27
|
+
<input class="input comments-field"
|
|
28
|
+
name="fields[name]"
|
|
29
|
+
id="comment-form-name"
|
|
30
|
+
type="text"
|
|
31
|
+
placeholder="Your name (required)"
|
|
32
|
+
required>
|
|
33
|
+
<span class="icon is-small is-left">
|
|
34
|
+
<i class="fas fa-user"></i>
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="field">
|
|
40
|
+
<label class="label">Email</label>
|
|
41
|
+
<div class="control has-icons-left">
|
|
42
|
+
<input class="input comments-field"
|
|
43
|
+
name="fields[email]"
|
|
44
|
+
id="comment-form-email"
|
|
45
|
+
type="email"
|
|
46
|
+
placeholder="Your email (optional)">
|
|
47
|
+
<span class="icon is-small is-left">
|
|
48
|
+
<i class="fas fa-envelope"></i>
|
|
49
|
+
</span>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="is-hidden field textfield narrowfield hp">
|
|
54
|
+
<label class="label">Website</label>
|
|
55
|
+
<div class="control has-icons-left">
|
|
56
|
+
<input class="textfield__input input"
|
|
57
|
+
name="fields[hp]"
|
|
58
|
+
id="hp"
|
|
59
|
+
type="text"
|
|
60
|
+
placeholder="Leave blank">
|
|
61
|
+
<span class="icon is-small is-left">
|
|
62
|
+
<i class="fas fa-globe-africa"></i>
|
|
63
|
+
</span>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
<div id="reCaptcha" class="g-recaptcha" data-sitekey="{{ site.reCaptcha.siteKey }}"></div>
|
|
69
|
+
|
|
70
|
+
<div class="field is-grouped mt-3 mb-5">
|
|
71
|
+
<p class="control">
|
|
72
|
+
<button class="button is-primary" id="comment-form-submit">
|
|
73
|
+
Submit
|
|
74
|
+
</button>
|
|
75
|
+
</p>
|
|
76
|
+
<p class="control">
|
|
77
|
+
<button class="button is-hidden" id="cancel-comment-reply-link">
|
|
78
|
+
Cancel
|
|
79
|
+
</button>
|
|
80
|
+
</p>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</form>
|
|
87
|
+
</div>
|
|
@@ -1,18 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<section class="comments" id="comment-section">
|
|
2
|
+
{% if site.data.comments[page.slug] %}
|
|
3
|
+
<!-- Existing comments -->
|
|
4
|
+
<div class="comments__existing">
|
|
5
|
+
<h4 class="title is-4">Comments</h4>
|
|
6
|
+
{% assign comments = site.data.comments[page.slug] | where_exp: "item", "item.replying_to_uid == ''" %}
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{% endif %}
|
|
8
|
+
{% assign comments_by_date = comments | sort: 'date' | reverse %}
|
|
9
|
+
<!-- List main comments in reverse date order, newest first. List replies in date order, oldest first. -->
|
|
10
|
+
{% for comment in comments_by_date %}
|
|
11
|
+
{%- assign email = comment.email %}
|
|
12
|
+
{%- assign name = comment.name %}
|
|
13
|
+
{%- assign url = comment.url %}
|
|
14
|
+
{%- assign date = comment.date %}
|
|
15
|
+
{%- assign message = comment.message %}
|
|
16
|
+
{%- assign uid = comment._id %}
|
|
17
|
+
{% include themes/jmblog-theme/components/comment.html is_reply=false uid=uid replying_to=0 email=email name=name url=url date=date
|
|
18
|
+
message=message uid=uid %}
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</div>
|
|
21
|
+
{% endif %}
|
|
22
|
+
|
|
23
|
+
{% unless page.comments == "closed" %}
|
|
24
|
+
<!-- New comment form -->
|
|
25
|
+
<div id="respond" class="comment__new">
|
|
26
|
+
{% capture first_comment %}{% if comments.size < 1 %}true{% else %}false{% endif %}{% endcapture %}
|
|
27
|
+
{% include themes/jmblog-theme/components/comment_form.html first_comment=first_comment %}
|
|
28
|
+
</div>
|
|
29
|
+
{% endunless %}
|
|
30
|
+
</section>
|
|
31
|
+
|
|
32
|
+
<script async defer src="https://www.google.com/recaptcha/api.js" ></script>
|
|
33
|
+
|
|
34
|
+
{%- comment %} <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> {% endcomment -%}
|
|
35
|
+
{%- comment %} <script src="{{ '/assets/main.js' | relative_url }}"></script> {% endcomment -%}
|
|
36
|
+
{%- comment %} <script src="https://www.google.com/recaptcha/api.js"></script> {% endcomment -%}
|
|
37
|
+
|
|
38
|
+
{% comment %}
|
|
39
|
+
https://github.com/travisdowns/travisdowns.github.io/tree/master/_includes
|
|
40
|
+
https://travisdowns.github.io/blog/2020/02/05/now-with-comments.html#fnref:v3
|
|
41
|
+
{% endcomment %}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
{% if page.comments %}
|
|
3
|
+
<div id="disqus_thread"></div>
|
|
4
|
+
<script>
|
|
5
|
+
|
|
6
|
+
var disqus_config = function () {
|
|
7
|
+
this.page.url = "{{ page.url | prepend: site.url }}"; // Replace PAGE_URL with your page's canonical URL variable
|
|
8
|
+
this.page.identifier = "{{ page.slug}}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
|
9
|
+
};
|
|
10
|
+
(function() { // DON'T EDIT BELOW THIS LINE
|
|
11
|
+
var d = document, s = d.createElement('script');
|
|
12
|
+
s.src = 'https://jmoxon.disqus.com/embed.js';
|
|
13
|
+
s.setAttribute('data-timestamp', +new Date());
|
|
14
|
+
(d.head || d.body).appendChild(s);
|
|
15
|
+
})();
|
|
16
|
+
</script>
|
|
17
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
18
|
+
|
|
19
|
+
{% endif %}
|
|
@@ -2,22 +2,18 @@
|
|
|
2
2
|
<footer class="footer">
|
|
3
3
|
<div class="container has-text-centered">
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
CC BY 4.0
|
|
13
|
+
CC BY 4.0
|
|
15
14
|
<img
|
|
16
15
|
style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;"
|
|
17
|
-
src="https://
|
|
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>
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
<title>{{ page.title }} | {{site.title}}</title>
|
|
4
2
|
<meta charset="utf-8">
|
|
5
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
@@ -31,8 +29,15 @@
|
|
|
31
29
|
src: local('Montserrat Regular'), local('Montserrat-Regular'), url(/assets/fonts/Montserrat/Montserrat-Regular.woff2) format('woff2');
|
|
32
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;
|
|
33
31
|
}
|
|
32
|
+
|
|
33
|
+
.is-family-secondary {
|
|
34
|
+
font-family: "Cardo","Baskerville","Calibri",serif !important;
|
|
35
|
+
}
|
|
36
|
+
body, button, input, select, textarea {
|
|
37
|
+
font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
|
|
38
|
+
}
|
|
34
39
|
</style>
|
|
35
|
-
<script
|
|
40
|
+
<script async src="https://kit.fontawesome.com/f74caf9b24.js" crossorigin="anonymous"></script>
|
|
36
41
|
|
|
37
42
|
<!-- Meta tags -->
|
|
38
43
|
<meta name="description"
|
|
@@ -1,14 +1,15 @@
|
|
|
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%}
|
|
1
7
|
<section class="hero is-dark">
|
|
2
8
|
<div class="hero-body">
|
|
3
9
|
<h4 class="title is-6 is-spaced">Related posts</h4>
|
|
4
10
|
|
|
5
11
|
<div class="columns is-multiline">
|
|
6
12
|
|
|
7
|
-
{% assign maxRelated = 4 %}
|
|
8
|
-
{% assign minCommonTags = 1 %}
|
|
9
|
-
{% assign maxRelatedCounter = 0 %}
|
|
10
|
-
|
|
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
|
|
|
@@ -39,7 +40,6 @@
|
|
|
39
40
|
</a>
|
|
40
41
|
</div>
|
|
41
42
|
|
|
42
|
-
|
|
43
43
|
<!-- END related component -->
|
|
44
44
|
{% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
|
|
45
45
|
{% if maxRelatedCounter >= maxRelated %}
|
|
@@ -48,26 +48,7 @@
|
|
|
48
48
|
{% endif %}
|
|
49
49
|
|
|
50
50
|
{% endfor %}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
51
|
</div>
|
|
67
|
-
|
|
68
|
-
|
|
69
52
|
</div>
|
|
70
53
|
</section>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
54
|
+
{% endif %}
|