beautiful-jekyll-theme 5.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +46 -31
- data/_includes/cloudflare_analytics.html +8 -0
- data/_includes/commentbox.html +7 -0
- data/_includes/comments.html +2 -0
- data/_includes/footer.html +6 -1
- data/_includes/giscus-comment.html +16 -0
- data/_includes/google_analytics.html +12 -0
- data/_includes/head.html +8 -5
- data/_includes/header.html +6 -6
- data/_includes/nav.html +19 -3
- data/_includes/search.html +39 -0
- data/_includes/social-networks-links.html +80 -4
- data/_includes/social-share.html +9 -1
- data/_layouts/base.html +1 -1
- data/_layouts/home.html +74 -66
- data/_layouts/post.html +2 -2
- data/assets/css/beautifuljekyll.css +167 -45
- data/assets/img/install-steps.gif +0 -0
- data/assets/js/beautifuljekyll.js +42 -14
- data/assets/js/staticman.js +39 -28
- data/feed.xml +2 -2
- data/staticman.yml +1 -1
- data/tags.html +1 -1
- metadata +27 -9
data/assets/js/staticman.js
CHANGED
@@ -3,40 +3,51 @@ layout: null
|
|
3
3
|
---
|
4
4
|
|
5
5
|
(function ($) {
|
6
|
-
var $comments = $('.js-comments');
|
7
|
-
|
8
6
|
$('#new_comment').submit(function () {
|
9
|
-
|
7
|
+
const form = this;
|
10
8
|
|
11
9
|
$(form).addClass('disabled');
|
12
10
|
|
13
11
|
{% assign sm = site.staticman -%}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
$('#comment-form-submitted').addClass('d-none');
|
33
|
-
$('#comment-form-submit').removeClass('d-none');
|
34
|
-
$('.page__comments-form .js-notice').removeClass('alert-success');
|
35
|
-
$('.page__comments-form .js-notice').addClass('alert-danger');
|
36
|
-
showAlert('failure');
|
37
|
-
$(form).removeClass('disabled');
|
12
|
+
const endpoint = '{{ sm.endpoint }}';
|
13
|
+
const repository = '{{ sm.repository }}';
|
14
|
+
const branch = '{{ sm.branch }}';
|
15
|
+
const url = endpoint + repository + '/' + branch + '/comments';
|
16
|
+
const data = $(this).serialize();
|
17
|
+
|
18
|
+
const xhr = new XMLHttpRequest();
|
19
|
+
xhr.open("POST", url);
|
20
|
+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
21
|
+
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
22
|
+
xhr.onreadystatechange = function () {
|
23
|
+
if(xhr.readyState === XMLHttpRequest.DONE) {
|
24
|
+
const status = xhr.status;
|
25
|
+
if (status >= 200 && status < 400) {
|
26
|
+
formSubmitted();
|
27
|
+
} else {
|
28
|
+
formError();
|
29
|
+
}
|
38
30
|
}
|
39
|
-
}
|
31
|
+
};
|
32
|
+
|
33
|
+
function formSubmitted() {
|
34
|
+
$('#comment-form-submit').addClass('d-none');
|
35
|
+
$('#comment-form-submitted').removeClass('d-none');
|
36
|
+
$('.page__comments-form .js-notice').removeClass('alert-danger');
|
37
|
+
$('.page__comments-form .js-notice').addClass('alert-success');
|
38
|
+
showAlert('success');
|
39
|
+
}
|
40
|
+
|
41
|
+
function formError() {
|
42
|
+
$('#comment-form-submitted').addClass('d-none');
|
43
|
+
$('#comment-form-submit').removeClass('d-none');
|
44
|
+
$('.page__comments-form .js-notice').removeClass('alert-success');
|
45
|
+
$('.page__comments-form .js-notice').addClass('alert-danger');
|
46
|
+
showAlert('failure');
|
47
|
+
$(form).removeClass('disabled');
|
48
|
+
}
|
49
|
+
|
50
|
+
xhr.send(data);
|
40
51
|
|
41
52
|
return false;
|
42
53
|
});
|
data/feed.xml
CHANGED
@@ -15,9 +15,9 @@ layout: null
|
|
15
15
|
{% assign excerpt_length = site.excerpt_length | default: 50 %}
|
16
16
|
{% for post in site.posts limit:20 %}
|
17
17
|
<item>
|
18
|
-
<title>{{ post.title | xml_escape }}</title>
|
18
|
+
<title>{{ post.title | strip_html | xml_escape }}</title>
|
19
19
|
<description>
|
20
|
-
{% if post.subtitle %}{{ post.subtitle | xml_escape }} - {% endif %}
|
20
|
+
{% if post.subtitle %}{{ post.subtitle | strip_html | xml_escape }} - {% endif %}
|
21
21
|
{{ post.content | strip_html | xml_escape | truncatewords: excerpt_length }}
|
22
22
|
</description>
|
23
23
|
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
|
data/staticman.yml
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# To encrypt strings use the following endpoint:
|
6
6
|
# https://{STATICMAN API INSTANCE}/v3/encrypt/{TEXT TO BE ENCRYPTED}
|
7
7
|
# {STATICMAN API INSTANCE} should match the `endpoint` in the theme config
|
8
|
-
# file.
|
8
|
+
# file.
|
9
9
|
|
10
10
|
comments:
|
11
11
|
# (*) REQUIRED
|
data/tags.html
CHANGED
@@ -25,7 +25,7 @@ title: 'Tag Index'
|
|
25
25
|
<div class="post-list">
|
26
26
|
{%- for post in site.tags[tag] -%}
|
27
27
|
<div class="tag-entry">
|
28
|
-
<a href="{{ post.url | relative_url }}">{{- post.title -}}</a>
|
28
|
+
<a href="{{ post.url | relative_url }}">{{- post.title | strip_html -}}</a>
|
29
29
|
<div class="entry-date">
|
30
30
|
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: date_format -}}</time>
|
31
31
|
</div>
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beautiful-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dean Attali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.9.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.9.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-paginate
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.3.
|
75
|
+
version: 2.3.2
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.3.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webrick
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.8'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
96
|
+
version: '1.8'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,6 +133,8 @@ files:
|
|
119
133
|
- LICENSE
|
120
134
|
- README.md
|
121
135
|
- _data/ui-text.yml
|
136
|
+
- _includes/cloudflare_analytics.html
|
137
|
+
- _includes/commentbox.html
|
122
138
|
- _includes/comments.html
|
123
139
|
- _includes/disqus.html
|
124
140
|
- _includes/ext-css.html
|
@@ -127,6 +143,7 @@ files:
|
|
127
143
|
- _includes/footer-minimal.html
|
128
144
|
- _includes/footer-scripts.html
|
129
145
|
- _includes/footer.html
|
146
|
+
- _includes/giscus-comment.html
|
130
147
|
- _includes/google_analytics.html
|
131
148
|
- _includes/gtag.html
|
132
149
|
- _includes/gtm_body.html
|
@@ -136,6 +153,7 @@ files:
|
|
136
153
|
- _includes/matomo.html
|
137
154
|
- _includes/nav.html
|
138
155
|
- _includes/readtime.html
|
156
|
+
- _includes/search.html
|
139
157
|
- _includes/social-networks-links.html
|
140
158
|
- _includes/social-share.html
|
141
159
|
- _includes/staticman-comment.html
|
@@ -185,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
203
|
- !ruby/object:Gem::Version
|
186
204
|
version: '0'
|
187
205
|
requirements: []
|
188
|
-
rubygems_version: 3.
|
206
|
+
rubygems_version: 3.3.5
|
189
207
|
signing_key:
|
190
208
|
specification_version: 4
|
191
209
|
summary: Beautiful Jekyll is a ready-to-use Jekyll theme to help you create an awesome
|