minimal-mistakes-jekyll 4.14.0 → 4.14.1
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/CHANGELOG.md +7 -1
- data/LICENSE +20 -20
- data/README.md +1 -1
- data/_data/ui-text.yml +1176 -1176
- data/_includes/analytics-providers/google-gtag.html +9 -9
- data/_includes/analytics-providers/google-universal.html +10 -10
- data/_includes/analytics-providers/google.html +13 -13
- data/_includes/analytics.html +13 -13
- data/_includes/author-profile-custom-links.html +6 -6
- data/_includes/author-profile.html +271 -271
- data/_includes/breadcrumbs.html +39 -39
- data/_includes/comments-providers/scripts.html +19 -19
- data/_includes/comments-providers/utterances.html +19 -19
- data/_includes/comments.html +174 -174
- data/_includes/footer.html +19 -19
- data/_includes/head.html +41 -41
- data/_includes/masthead.html +33 -33
- data/_includes/search/algolia-search-scripts.html +54 -54
- data/_includes/search/search_form.html +17 -17
- data/_includes/seo.html +164 -164
- data/_includes/video +13 -13
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +13 -13
- data/_layouts/posts.html +29 -29
- data/_layouts/single.html +94 -94
- data/_layouts/splash.html +21 -21
- data/_layouts/tags.html +42 -42
- data/_sass/minimal-mistakes.scss +1 -1
- data/_sass/minimal-mistakes/_archive.scss +437 -437
- data/_sass/minimal-mistakes/_base.scss +357 -357
- data/_sass/minimal-mistakes/_footer.scss +91 -91
- data/_sass/minimal-mistakes/_mixins.scss +91 -91
- data/_sass/minimal-mistakes/_navigation.scss +556 -556
- data/_sass/minimal-mistakes/_search.scss +126 -126
- data/_sass/minimal-mistakes/_sidebar.scss +318 -318
- data/_sass/minimal-mistakes/_utilities.scss +6 -0
- data/_sass/minimal-mistakes/_variables.scss +159 -159
- data/_sass/minimal-mistakes/skins/_dark.scss +27 -27
- data/_sass/minimal-mistakes/skins/_neon.scss +56 -56
- data/_sass/minimal-mistakes/skins/_plum.scss +63 -63
- data/assets/js/_main.js +106 -106
- data/assets/js/lunr/lunr-store.js +54 -54
- data/assets/js/lunr/lunr.js +3483 -3483
- data/assets/js/lunr/lunr.min.js +5 -5
- data/assets/js/main.min.js +5 -5
- metadata +2 -2
data/_includes/breadcrumbs.html
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
{% case site.category_archive.type %}
|
2
|
-
{% when "liquid" %}
|
3
|
-
{% assign path_type = "#" %}
|
4
|
-
{% when "jekyll-archives" %}
|
5
|
-
{% assign path_type = nil %}
|
6
|
-
{% endcase %}
|
7
|
-
|
8
|
-
{% if page.collection != 'posts' %}
|
9
|
-
{% assign path_type = nil %}
|
10
|
-
{% assign crumb_path = '/' %}
|
11
|
-
{% else %}
|
12
|
-
{% assign crumb_path = site.category_archive.path %}
|
13
|
-
{% endif %}
|
14
|
-
|
15
|
-
<nav class="breadcrumbs">
|
16
|
-
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
17
|
-
{% assign crumbs = page.url | split: '/' %}
|
18
|
-
{% assign i = 1 %}
|
19
|
-
{% for crumb in crumbs offset: 1 %}
|
20
|
-
{% if forloop.first %}
|
21
|
-
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
22
|
-
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
23
|
-
<meta itemprop="position" content="{{ i }}" />
|
24
|
-
</li>
|
25
|
-
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
26
|
-
{% endif %}
|
27
|
-
{% if forloop.last %}
|
28
|
-
<li class="current">{{ page.title }}</li>
|
29
|
-
{% else %}
|
30
|
-
{% assign i = i | plus: 1 %}
|
31
|
-
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
32
|
-
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
33
|
-
<meta itemprop="position" content="{{ i }}" />
|
34
|
-
</li>
|
35
|
-
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
36
|
-
{% endif %}
|
37
|
-
{% endfor %}
|
38
|
-
</ol>
|
39
|
-
</nav>
|
1
|
+
{% case site.category_archive.type %}
|
2
|
+
{% when "liquid" %}
|
3
|
+
{% assign path_type = "#" %}
|
4
|
+
{% when "jekyll-archives" %}
|
5
|
+
{% assign path_type = nil %}
|
6
|
+
{% endcase %}
|
7
|
+
|
8
|
+
{% if page.collection != 'posts' %}
|
9
|
+
{% assign path_type = nil %}
|
10
|
+
{% assign crumb_path = '/' %}
|
11
|
+
{% else %}
|
12
|
+
{% assign crumb_path = site.category_archive.path %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
<nav class="breadcrumbs">
|
16
|
+
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
17
|
+
{% assign crumbs = page.url | split: '/' %}
|
18
|
+
{% assign i = 1 %}
|
19
|
+
{% for crumb in crumbs offset: 1 %}
|
20
|
+
{% if forloop.first %}
|
21
|
+
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
22
|
+
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
23
|
+
<meta itemprop="position" content="{{ i }}" />
|
24
|
+
</li>
|
25
|
+
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
26
|
+
{% endif %}
|
27
|
+
{% if forloop.last %}
|
28
|
+
<li class="current">{{ page.title }}</li>
|
29
|
+
{% else %}
|
30
|
+
{% assign i = i | plus: 1 %}
|
31
|
+
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
32
|
+
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
33
|
+
<meta itemprop="position" content="{{ i }}" />
|
34
|
+
</li>
|
35
|
+
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
36
|
+
{% endif %}
|
37
|
+
{% endfor %}
|
38
|
+
</ol>
|
39
|
+
</nav>
|
@@ -1,20 +1,20 @@
|
|
1
|
-
{% if site.comments.provider and page.comments %}
|
2
|
-
{% case site.comments.provider %}
|
3
|
-
{% when "disqus" %}
|
4
|
-
{% include /comments-providers/disqus.html %}
|
5
|
-
{% when "discourse" %}
|
6
|
-
{% include /comments-providers/discourse.html %}
|
7
|
-
{% when "facebook" %}
|
8
|
-
{% include /comments-providers/facebook.html %}
|
9
|
-
{% when "google-plus" %}
|
10
|
-
{% include /comments-providers/google-plus.html %}
|
11
|
-
{% when "staticman" %}
|
12
|
-
{% include /comments-providers/staticman.html %}
|
13
|
-
{% when "staticman_v2" %}
|
14
|
-
{% include /comments-providers/staticman_v2.html %}
|
15
|
-
{% when "utterances" %}
|
16
|
-
{% include /comments-providers/utterances.html %}
|
17
|
-
{% when "custom" %}
|
18
|
-
{% include /comments-providers/custom.html %}
|
19
|
-
{% endcase %}
|
1
|
+
{% if site.comments.provider and page.comments %}
|
2
|
+
{% case site.comments.provider %}
|
3
|
+
{% when "disqus" %}
|
4
|
+
{% include /comments-providers/disqus.html %}
|
5
|
+
{% when "discourse" %}
|
6
|
+
{% include /comments-providers/discourse.html %}
|
7
|
+
{% when "facebook" %}
|
8
|
+
{% include /comments-providers/facebook.html %}
|
9
|
+
{% when "google-plus" %}
|
10
|
+
{% include /comments-providers/google-plus.html %}
|
11
|
+
{% when "staticman" %}
|
12
|
+
{% include /comments-providers/staticman.html %}
|
13
|
+
{% when "staticman_v2" %}
|
14
|
+
{% include /comments-providers/staticman_v2.html %}
|
15
|
+
{% when "utterances" %}
|
16
|
+
{% include /comments-providers/utterances.html %}
|
17
|
+
{% when "custom" %}
|
18
|
+
{% include /comments-providers/custom.html %}
|
19
|
+
{% endcase %}
|
20
20
|
{% endif %}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<script>
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
(function() {
|
5
|
-
var commentContainer = document.querySelector('#utterances-comments');
|
6
|
-
|
7
|
-
if (!commentContainer) {
|
8
|
-
return;
|
9
|
-
}
|
10
|
-
|
11
|
-
var script = document.createElement('script');
|
12
|
-
script.setAttribute('src', 'https://utteranc.es/client.js');
|
13
|
-
script.setAttribute('repo', '{{ site.repository }}');
|
14
|
-
script.setAttribute('issue-term', 'pathname');
|
15
|
-
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
|
16
|
-
script.setAttribute('crossorigin', 'anonymous');
|
17
|
-
|
18
|
-
commentContainer.appendChild(script);
|
19
|
-
})();
|
1
|
+
<script>
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
(function() {
|
5
|
+
var commentContainer = document.querySelector('#utterances-comments');
|
6
|
+
|
7
|
+
if (!commentContainer) {
|
8
|
+
return;
|
9
|
+
}
|
10
|
+
|
11
|
+
var script = document.createElement('script');
|
12
|
+
script.setAttribute('src', 'https://utteranc.es/client.js');
|
13
|
+
script.setAttribute('repo', '{{ site.repository }}');
|
14
|
+
script.setAttribute('issue-term', 'pathname');
|
15
|
+
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
|
16
|
+
script.setAttribute('crossorigin', 'anonymous');
|
17
|
+
|
18
|
+
commentContainer.appendChild(script);
|
19
|
+
})();
|
20
20
|
</script>
|
data/_includes/comments.html
CHANGED
@@ -1,174 +1,174 @@
|
|
1
|
-
<div class="page__comments">
|
2
|
-
{% capture comments_label %}{{ site.data.ui-text[site.locale].comments_label | default: "Comments" }}{% endcapture %}
|
3
|
-
{% case site.comments.provider %}
|
4
|
-
{% when "discourse" %}
|
5
|
-
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
6
|
-
<section id="discourse-comments"></section>
|
7
|
-
{% when "disqus" %}
|
8
|
-
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
9
|
-
<section id="disqus_thread"></section>
|
10
|
-
{% when "facebook" %}
|
11
|
-
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
12
|
-
<section class="fb-comments" data-href="{{ page.url | absolute_url }}" data-mobile="true" data-num-posts="{{ site.comments.facebook.num_posts | default: 5 }}" data-width="100%" data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"></section>
|
13
|
-
{% when "google-plus" %}
|
14
|
-
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
15
|
-
<section id="g-comments" class="g-comments">Loading Google+ Comments ...</section>
|
16
|
-
<script>
|
17
|
-
function initComment() {
|
18
|
-
gapi.comments.render("g-comments", {
|
19
|
-
href: "{{ page.url | absolute_url }}",
|
20
|
-
width: "624",
|
21
|
-
first_party_property: "BLOGGER",
|
22
|
-
view_type: "FILTERED_POSTMOD"
|
23
|
-
})
|
24
|
-
}
|
25
|
-
</script>
|
26
|
-
<script async type="text/javascript" src="https://apis.google.com/js/plusone.js" onload="initComment()" />
|
27
|
-
<noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript>-->
|
28
|
-
{% when "staticman_v2" %}
|
29
|
-
<section id="static-comments">
|
30
|
-
{% if site.repository and site.staticman.branch %}
|
31
|
-
<!-- Start static comments -->
|
32
|
-
<div class="js-comments">
|
33
|
-
{% if site.data.comments[page.slug] %}
|
34
|
-
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h4>
|
35
|
-
{% assign comments = site.data.comments[page.slug] | sort %}
|
36
|
-
|
37
|
-
{% for comment in comments %}
|
38
|
-
{% assign email = comment[1].email %}
|
39
|
-
{% assign name = comment[1].name %}
|
40
|
-
{% assign url = comment[1].url %}
|
41
|
-
{% assign date = comment[1].date %}
|
42
|
-
{% assign message = comment[1].message %}
|
43
|
-
{% include comment.html index=forloop.index email=email name=name url=url date=date message=message %}
|
44
|
-
{% endfor %}
|
45
|
-
{% endif %}
|
46
|
-
</div>
|
47
|
-
<!-- End static comments -->
|
48
|
-
|
49
|
-
<!-- Start new comment form -->
|
50
|
-
<div class="page__comments-form">
|
51
|
-
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
52
|
-
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
53
|
-
<form id="new_comment" class="page__comments-form js-form form" method="post" action="{{ site.staticman.endpoint | default: 'https://api.staticman.net/v2/entry/' }}{{ site.repository }}/{{ site.staticman.branch }}/comments">
|
54
|
-
<div class="form__spinner">
|
55
|
-
<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i>
|
56
|
-
<span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="form-group">
|
60
|
-
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label>
|
61
|
-
<textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
62
|
-
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
63
|
-
</div>
|
64
|
-
<div class="form-group">
|
65
|
-
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
66
|
-
<input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
|
67
|
-
</div>
|
68
|
-
<div class="form-group">
|
69
|
-
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
70
|
-
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
71
|
-
</div>
|
72
|
-
<div class="form-group">
|
73
|
-
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
74
|
-
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
75
|
-
</div>
|
76
|
-
<div class="form-group hidden" style="display: none;">
|
77
|
-
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
78
|
-
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
79
|
-
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
|
80
|
-
{% if site.reCaptcha.siteKey %}<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.reCaptcha.siteKey }}">{% endif %}
|
81
|
-
{% if site.reCaptcha.secret %}<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.reCaptcha.secret }}">{% endif %}
|
82
|
-
</div>
|
83
|
-
<!-- Start comment form alert messaging -->
|
84
|
-
<p class="hidden js-notice">
|
85
|
-
<strong class="js-notice-text"></strong>
|
86
|
-
</p>
|
87
|
-
<!-- End comment form alert messaging -->
|
88
|
-
{% if site.reCaptcha.siteKey %}
|
89
|
-
<div class="form-group">
|
90
|
-
<div class="g-recaptcha" data-sitekey="{{ site.reCaptcha.siteKey }}"></div>
|
91
|
-
</div>
|
92
|
-
{% endif %}
|
93
|
-
<div class="form-group">
|
94
|
-
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
95
|
-
</div>
|
96
|
-
</form>
|
97
|
-
</div>
|
98
|
-
<!-- End new comment form -->
|
99
|
-
{% if site.reCaptcha.siteKey %}<script async src="https://www.google.com/recaptcha/api.js"></script>{% endif %}
|
100
|
-
{% endif %}
|
101
|
-
</section>
|
102
|
-
{% when "staticman" %}
|
103
|
-
<section id="static-comments">
|
104
|
-
{% if site.repository and site.staticman.branch %}
|
105
|
-
<!-- Start static comments -->
|
106
|
-
<div class="js-comments">
|
107
|
-
{% if site.data.comments[page.slug] %}
|
108
|
-
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h4>
|
109
|
-
{% assign comments = site.data.comments[page.slug] | sort %}
|
110
|
-
|
111
|
-
{% for comment in comments %}
|
112
|
-
{% assign email = comment[1].email %}
|
113
|
-
{% assign name = comment[1].name %}
|
114
|
-
{% assign url = comment[1].url %}
|
115
|
-
{% assign date = comment[1].date %}
|
116
|
-
{% assign message = comment[1].message %}
|
117
|
-
{% include comment.html index=forloop.index email=email name=name url=url date=date message=message %}
|
118
|
-
{% endfor %}
|
119
|
-
{% endif %}
|
120
|
-
</div>
|
121
|
-
<!-- End static comments -->
|
122
|
-
|
123
|
-
<!-- Start new comment form -->
|
124
|
-
<div class="page__comments-form">
|
125
|
-
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
126
|
-
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
127
|
-
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
|
128
|
-
<div class="form__spinner">
|
129
|
-
<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i>
|
130
|
-
<span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="form-group">
|
134
|
-
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label>
|
135
|
-
<textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
136
|
-
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
137
|
-
</div>
|
138
|
-
<div class="form-group">
|
139
|
-
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
140
|
-
<input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
|
141
|
-
</div>
|
142
|
-
<div class="form-group">
|
143
|
-
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
144
|
-
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
145
|
-
</div>
|
146
|
-
<div class="form-group">
|
147
|
-
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
148
|
-
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
149
|
-
</div>
|
150
|
-
<div class="form-group hidden" style="display: none;">
|
151
|
-
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
152
|
-
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
153
|
-
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
|
154
|
-
</div>
|
155
|
-
<!-- Start comment form alert messaging -->
|
156
|
-
<p class="hidden js-notice">
|
157
|
-
<strong class="js-notice-text"></strong>
|
158
|
-
</p>
|
159
|
-
<!-- End comment form alert messaging -->
|
160
|
-
<div class="form-group">
|
161
|
-
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
162
|
-
</div>
|
163
|
-
</form>
|
164
|
-
</div>
|
165
|
-
<!-- End new comment form -->
|
166
|
-
{% endif %}
|
167
|
-
</section>
|
168
|
-
{% when "utterances" %}
|
169
|
-
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
170
|
-
<section id="utterances-comments"></section>
|
171
|
-
{% when "custom" %}
|
172
|
-
<section id="custom-comments"></section>
|
173
|
-
{% endcase %}
|
174
|
-
</div>
|
1
|
+
<div class="page__comments">
|
2
|
+
{% capture comments_label %}{{ site.data.ui-text[site.locale].comments_label | default: "Comments" }}{% endcapture %}
|
3
|
+
{% case site.comments.provider %}
|
4
|
+
{% when "discourse" %}
|
5
|
+
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
6
|
+
<section id="discourse-comments"></section>
|
7
|
+
{% when "disqus" %}
|
8
|
+
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
9
|
+
<section id="disqus_thread"></section>
|
10
|
+
{% when "facebook" %}
|
11
|
+
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
12
|
+
<section class="fb-comments" data-href="{{ page.url | absolute_url }}" data-mobile="true" data-num-posts="{{ site.comments.facebook.num_posts | default: 5 }}" data-width="100%" data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"></section>
|
13
|
+
{% when "google-plus" %}
|
14
|
+
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
15
|
+
<section id="g-comments" class="g-comments">Loading Google+ Comments ...</section>
|
16
|
+
<script>
|
17
|
+
function initComment() {
|
18
|
+
gapi.comments.render("g-comments", {
|
19
|
+
href: "{{ page.url | absolute_url }}",
|
20
|
+
width: "624",
|
21
|
+
first_party_property: "BLOGGER",
|
22
|
+
view_type: "FILTERED_POSTMOD"
|
23
|
+
})
|
24
|
+
}
|
25
|
+
</script>
|
26
|
+
<script async type="text/javascript" src="https://apis.google.com/js/plusone.js" onload="initComment()" />
|
27
|
+
<noscript>Please enable JavaScript to view the <a href="https://plus.google.com/">comments powered by Google+.</a></noscript>-->
|
28
|
+
{% when "staticman_v2" %}
|
29
|
+
<section id="static-comments">
|
30
|
+
{% if site.repository and site.staticman.branch %}
|
31
|
+
<!-- Start static comments -->
|
32
|
+
<div class="js-comments">
|
33
|
+
{% if site.data.comments[page.slug] %}
|
34
|
+
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h4>
|
35
|
+
{% assign comments = site.data.comments[page.slug] | sort %}
|
36
|
+
|
37
|
+
{% for comment in comments %}
|
38
|
+
{% assign email = comment[1].email %}
|
39
|
+
{% assign name = comment[1].name %}
|
40
|
+
{% assign url = comment[1].url %}
|
41
|
+
{% assign date = comment[1].date %}
|
42
|
+
{% assign message = comment[1].message %}
|
43
|
+
{% include comment.html index=forloop.index email=email name=name url=url date=date message=message %}
|
44
|
+
{% endfor %}
|
45
|
+
{% endif %}
|
46
|
+
</div>
|
47
|
+
<!-- End static comments -->
|
48
|
+
|
49
|
+
<!-- Start new comment form -->
|
50
|
+
<div class="page__comments-form">
|
51
|
+
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
52
|
+
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
53
|
+
<form id="new_comment" class="page__comments-form js-form form" method="post" action="{{ site.staticman.endpoint | default: 'https://api.staticman.net/v2/entry/' }}{{ site.repository }}/{{ site.staticman.branch }}/comments">
|
54
|
+
<div class="form__spinner">
|
55
|
+
<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i>
|
56
|
+
<span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div class="form-group">
|
60
|
+
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label>
|
61
|
+
<textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
62
|
+
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
63
|
+
</div>
|
64
|
+
<div class="form-group">
|
65
|
+
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
66
|
+
<input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
|
67
|
+
</div>
|
68
|
+
<div class="form-group">
|
69
|
+
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
70
|
+
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
71
|
+
</div>
|
72
|
+
<div class="form-group">
|
73
|
+
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
74
|
+
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
75
|
+
</div>
|
76
|
+
<div class="form-group hidden" style="display: none;">
|
77
|
+
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
78
|
+
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
79
|
+
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
|
80
|
+
{% if site.reCaptcha.siteKey %}<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.reCaptcha.siteKey }}">{% endif %}
|
81
|
+
{% if site.reCaptcha.secret %}<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.reCaptcha.secret }}">{% endif %}
|
82
|
+
</div>
|
83
|
+
<!-- Start comment form alert messaging -->
|
84
|
+
<p class="hidden js-notice">
|
85
|
+
<strong class="js-notice-text"></strong>
|
86
|
+
</p>
|
87
|
+
<!-- End comment form alert messaging -->
|
88
|
+
{% if site.reCaptcha.siteKey %}
|
89
|
+
<div class="form-group">
|
90
|
+
<div class="g-recaptcha" data-sitekey="{{ site.reCaptcha.siteKey }}"></div>
|
91
|
+
</div>
|
92
|
+
{% endif %}
|
93
|
+
<div class="form-group">
|
94
|
+
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
95
|
+
</div>
|
96
|
+
</form>
|
97
|
+
</div>
|
98
|
+
<!-- End new comment form -->
|
99
|
+
{% if site.reCaptcha.siteKey %}<script async src="https://www.google.com/recaptcha/api.js"></script>{% endif %}
|
100
|
+
{% endif %}
|
101
|
+
</section>
|
102
|
+
{% when "staticman" %}
|
103
|
+
<section id="static-comments">
|
104
|
+
{% if site.repository and site.staticman.branch %}
|
105
|
+
<!-- Start static comments -->
|
106
|
+
<div class="js-comments">
|
107
|
+
{% if site.data.comments[page.slug] %}
|
108
|
+
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h4>
|
109
|
+
{% assign comments = site.data.comments[page.slug] | sort %}
|
110
|
+
|
111
|
+
{% for comment in comments %}
|
112
|
+
{% assign email = comment[1].email %}
|
113
|
+
{% assign name = comment[1].name %}
|
114
|
+
{% assign url = comment[1].url %}
|
115
|
+
{% assign date = comment[1].date %}
|
116
|
+
{% assign message = comment[1].message %}
|
117
|
+
{% include comment.html index=forloop.index email=email name=name url=url date=date message=message %}
|
118
|
+
{% endfor %}
|
119
|
+
{% endif %}
|
120
|
+
</div>
|
121
|
+
<!-- End static comments -->
|
122
|
+
|
123
|
+
<!-- Start new comment form -->
|
124
|
+
<div class="page__comments-form">
|
125
|
+
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
126
|
+
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
127
|
+
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
|
128
|
+
<div class="form__spinner">
|
129
|
+
<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i>
|
130
|
+
<span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<div class="form-group">
|
134
|
+
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label>
|
135
|
+
<textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
136
|
+
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
137
|
+
</div>
|
138
|
+
<div class="form-group">
|
139
|
+
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
140
|
+
<input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
|
141
|
+
</div>
|
142
|
+
<div class="form-group">
|
143
|
+
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
144
|
+
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
145
|
+
</div>
|
146
|
+
<div class="form-group">
|
147
|
+
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
148
|
+
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
149
|
+
</div>
|
150
|
+
<div class="form-group hidden" style="display: none;">
|
151
|
+
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
152
|
+
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
153
|
+
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
|
154
|
+
</div>
|
155
|
+
<!-- Start comment form alert messaging -->
|
156
|
+
<p class="hidden js-notice">
|
157
|
+
<strong class="js-notice-text"></strong>
|
158
|
+
</p>
|
159
|
+
<!-- End comment form alert messaging -->
|
160
|
+
<div class="form-group">
|
161
|
+
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
162
|
+
</div>
|
163
|
+
</form>
|
164
|
+
</div>
|
165
|
+
<!-- End new comment form -->
|
166
|
+
{% endif %}
|
167
|
+
</section>
|
168
|
+
{% when "utterances" %}
|
169
|
+
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
170
|
+
<section id="utterances-comments"></section>
|
171
|
+
{% when "custom" %}
|
172
|
+
<section id="custom-comments"></section>
|
173
|
+
{% endcase %}
|
174
|
+
</div>
|