minimal-mistakes-jekyll 4.12.0 → 4.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/_data/ui-text.yml +1082 -1080
- 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/comments.html +170 -170
- data/_includes/page__hero.html +1 -1
- data/_includes/scripts.html +28 -28
- data/_includes/search/search_form.html +17 -17
- data/_includes/seo.html +164 -164
- data/_layouts/default.html +1 -1
- data/_layouts/posts.html +29 -29
- data/_layouts/splash.html +21 -21
- data/_layouts/tags.html +42 -42
- data/_sass/minimal-mistakes.scss +1 -1
- data/_sass/minimal-mistakes/_footer.scss +91 -91
- data/_sass/minimal-mistakes/_utilities.scss +524 -524
- data/_sass/minimal-mistakes/_variables.scss +154 -154
- data/assets/js/main.min.js +5 -5
- metadata +15 -15
@@ -1,9 +1,9 @@
|
|
1
|
-
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.tracking_id }}"></script>
|
3
|
-
<script>
|
4
|
-
window.dataLayer = window.dataLayer || [];
|
5
|
-
function gtag(){dataLayer.push(arguments);}
|
6
|
-
gtag('js', new Date());
|
7
|
-
|
8
|
-
gtag('config', '{{ site.analytics.google.tracking_id }}', { 'anonymize_ip': {{ site.analytics.google.anonymize_ip | default: false }}});
|
9
|
-
</script>
|
1
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.tracking_id }}"></script>
|
3
|
+
<script>
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '{{ site.analytics.google.tracking_id }}', { 'anonymize_ip': {{ site.analytics.google.anonymize_ip | default: false }}});
|
9
|
+
</script>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<script>
|
2
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
|
-
|
7
|
-
ga('create', '{{ site.analytics.google.tracking_id }}', 'auto');
|
8
|
-
ga('set', 'anonymizeIp', {{ site.analytics.google.anonymize_ip | default: false }})
|
9
|
-
ga('send', 'pageview');
|
10
|
-
</script>
|
1
|
+
<script>
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
|
+
|
7
|
+
ga('create', '{{ site.analytics.google.tracking_id }}', 'auto');
|
8
|
+
ga('set', 'anonymizeIp', {{ site.analytics.google.anonymize_ip | default: false }})
|
9
|
+
ga('send', 'pageview');
|
10
|
+
</script>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<script type="text/javascript">
|
2
|
-
var _gaq = _gaq || [];
|
3
|
-
_gaq.push(['_setAccount', '{{ site.analytics.google.tracking_id }}']);
|
4
|
-
{% if site.analytics.google.anonymize_ip == true %}
|
5
|
-
_gaq.push(['_gat._anonymizeIp']);
|
6
|
-
{% endif %}
|
7
|
-
_gaq.push(['_trackPageview']);
|
8
|
-
|
9
|
-
(function() {
|
10
|
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
11
|
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
12
|
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
13
|
-
})();
|
1
|
+
<script type="text/javascript">
|
2
|
+
var _gaq = _gaq || [];
|
3
|
+
_gaq.push(['_setAccount', '{{ site.analytics.google.tracking_id }}']);
|
4
|
+
{% if site.analytics.google.anonymize_ip == true %}
|
5
|
+
_gaq.push(['_gat._anonymizeIp']);
|
6
|
+
{% endif %}
|
7
|
+
_gaq.push(['_trackPageview']);
|
8
|
+
|
9
|
+
(function() {
|
10
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
11
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
12
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
13
|
+
})();
|
14
14
|
</script>
|
data/_includes/analytics.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
{% if jekyll.environment == 'production' and site.analytics.provider and page.analytics != false %}
|
2
|
-
|
3
|
-
{% case site.analytics.provider %}
|
4
|
-
{% when "google" %}
|
5
|
-
{% include /analytics-providers/google.html %}
|
6
|
-
{% when "google-universal" %}
|
7
|
-
{% include /analytics-providers/google-universal.html %}
|
8
|
-
{% when "google-gtag" %}
|
9
|
-
{% include /analytics-providers/google-gtag.html %}
|
10
|
-
{% when "custom" %}
|
11
|
-
{% include /analytics-providers/custom.html %}
|
12
|
-
{% endcase %}
|
13
|
-
|
1
|
+
{% if jekyll.environment == 'production' and site.analytics.provider and page.analytics != false %}
|
2
|
+
|
3
|
+
{% case site.analytics.provider %}
|
4
|
+
{% when "google" %}
|
5
|
+
{% include /analytics-providers/google.html %}
|
6
|
+
{% when "google-universal" %}
|
7
|
+
{% include /analytics-providers/google-universal.html %}
|
8
|
+
{% when "google-gtag" %}
|
9
|
+
{% include /analytics-providers/google-gtag.html %}
|
10
|
+
{% when "custom" %}
|
11
|
+
{% include /analytics-providers/custom.html %}
|
12
|
+
{% endcase %}
|
13
|
+
|
14
14
|
{% endif %}
|
data/_includes/comments.html
CHANGED
@@ -1,171 +1,171 @@
|
|
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="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 "custom" %}
|
169
|
-
<section id="custom-comments"></section>
|
170
|
-
{% endcase %}
|
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="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 "custom" %}
|
169
|
+
<section id="custom-comments"></section>
|
170
|
+
{% endcase %}
|
171
171
|
</div>
|
data/_includes/page__hero.html
CHANGED
@@ -45,7 +45,7 @@
|
|
45
45
|
{% if page.header.show_overlay_excerpt != false and page.excerpt %}
|
46
46
|
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
|
47
47
|
{% endif %}
|
48
|
-
{% if
|
48
|
+
{% if page.read_time %}
|
49
49
|
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
|
50
50
|
{% endif %}
|
51
51
|
{% if page.header.cta_url %}
|