beautiful-jekyll-theme 5.0.0 → 6.0.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.
@@ -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
- var form = this;
7
+ const form = this;
10
8
 
11
9
  $(form).addClass('disabled');
12
10
 
13
11
  {% assign sm = site.staticman -%}
14
- var endpoint = '{{ sm.endpoint | default: "https://staticman3.herokuapp.com/v3/entry/github/" }}';
15
- var repository = '{{ sm.repository }}';
16
- var branch = '{{ sm.branch }}';
17
-
18
- $.ajax({
19
- type: $(this).attr('method'),
20
- url: endpoint + repository + '/' + branch + '/comments',
21
- data: $(this).serialize(),
22
- contentType: 'application/x-www-form-urlencoded',
23
- success: function (data) {
24
- $('#comment-form-submit').addClass('d-none');
25
- $('#comment-form-submitted').removeClass('d-none');
26
- $('.page__comments-form .js-notice').removeClass('alert-danger');
27
- $('.page__comments-form .js-notice').addClass('alert-success');
28
- showAlert('success');
29
- },
30
- error: function (err) {
31
- console.log(err);
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. It defaults to "staticman3.herokuapp.com".
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: 5.0.0
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: 2020-09-15 00:00:00.000000000 Z
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: '3.8'
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: '3.8'
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.0
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: 2.3.0
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.1.2
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