j1-template 2021.1.16 → 2021.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +30 -7
- data/assets/themes/j1/adapter/js/j1.js +20 -0
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/j1_config.yml +50 -39
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450ab87c08a2d4dbf209d876c093c719728b94f8442d6102a9b70aa5d19c83a3
|
4
|
+
data.tar.gz: 490fba75a77784eea4ac47ee3b61a8cbe31e9698539571218a95ed3c9d9388e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c3741110b08384383ce195f7f5de6443343d12b825d4699f36d30fa86169b2fa9c362dce3ddfcc3e4a65b9eff5f7d9f9ec88637c985b538dda6f041790cf7cc
|
7
|
+
data.tar.gz: 18bbbddf4bf71098a1dd12aaa280f2eb3278569870b3d256d92e14e3bf74418cc08a1f86c705b41a35c8f5d1a56c6f91c538c10f71d6508bce8c9a611f8b802b
|
@@ -79,14 +79,28 @@
|
|
79
79
|
{% endif %}
|
80
80
|
{% else %}
|
81
81
|
{% if page.description %}
|
82
|
+
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ detected content type: PAGE ] -->
|
82
83
|
{% assign size = site.description|size %}
|
83
|
-
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ SIZE of page description: {{size}} ] -->
|
84
|
-
{% if size >=
|
85
|
-
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ GRATULATIONS. Your page description has more than
|
84
|
+
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ SIZE of page description: {{size}} chars ] -->
|
85
|
+
{% if size >= 70 %}
|
86
|
+
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ GRATULATIONS. Your page description has more than 70 characters. (Recommended: 70-160 characters) ] -->
|
86
87
|
{% else %}
|
87
|
-
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ Consider
|
88
|
+
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ Consider to IMPROVE|INCREASE your page description! ] -->
|
88
89
|
{% endif %}
|
89
90
|
<meta name="description" content="{{page.description}}" />
|
91
|
+
{% elsif page.excerpt %}
|
92
|
+
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ detected content type: POST ] -->
|
93
|
+
{% assign size = page.excerpt|size %}
|
94
|
+
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ SIZE of page exerpt: {{size}} chars ] -->
|
95
|
+
{% if size >= 70 %}
|
96
|
+
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ GRATULATIONS. Your page description (exerpt) has more than 70 characters. (Recommended: 70-160 characters) ] -->
|
97
|
+
{% else %}
|
98
|
+
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ Consider to IMPROVE|INCREASE your post excerpt for a valid page description! ] -->
|
99
|
+
{% endif %}
|
100
|
+
<meta name="description" content="{{page.excerpt|strip_html}}" />
|
101
|
+
{% else %}
|
102
|
+
<!-- [WARNING] [j1.layout.meta_data_generator.html ] [ NO page description detected ] -->
|
103
|
+
<!-- [SEO ] [j1.layout.meta_data_generator.html ] [ Consider to add a page description! ] -->
|
90
104
|
{% endif %}
|
91
105
|
{% endif %}
|
92
106
|
|
@@ -173,7 +187,7 @@
|
|
173
187
|
{{robots_follow}}
|
174
188
|
|
175
189
|
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ meta tag for provider APIs: analytics ] -->
|
176
|
-
{% if page.analytics %}
|
190
|
+
{% if page.analytics and site.data.j1_config.analytics.enabled %}
|
177
191
|
{% capture analytics %}<meta name="analytics" content="true" />{% endcapture %}
|
178
192
|
{% else %}
|
179
193
|
{% capture analytics %}<meta name="analytics" content="false" />{% endcapture %}
|
@@ -182,7 +196,7 @@
|
|
182
196
|
{{analytics}}
|
183
197
|
|
184
198
|
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ meta tag for provider APIs: comments ] -->
|
185
|
-
{% if page.comments %}
|
199
|
+
{% if page.comments and site.data.j1_config.comments.enabled %}
|
186
200
|
{% capture comments %}<meta name="comments" content="true" />{% endcapture %}
|
187
201
|
{% else %}
|
188
202
|
{% capture comments %}<meta name="comments" content="false" />{% endcapture %}
|
@@ -191,7 +205,7 @@
|
|
191
205
|
{{comments}}
|
192
206
|
|
193
207
|
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ meta tag for provider APIs: advertising ] -->
|
194
|
-
{% if page.advertising %}
|
208
|
+
{% if page.advertising and site.data.j1_config.advertising.enabled %}
|
195
209
|
{% capture advertising %}<meta name="advertising" content="true" />{% endcapture %}
|
196
210
|
{% else %}
|
197
211
|
{% capture advertising %}<meta name="advertising" content="false" />{% endcapture %}
|
@@ -199,6 +213,15 @@
|
|
199
213
|
|
200
214
|
{{advertising}}
|
201
215
|
|
216
|
+
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ meta tag for provider APIs: advertising ] -->
|
217
|
+
{% if page.translation and site.data.j1_config.translation.enabled %}
|
218
|
+
{% capture translation %}<meta name="translation" content="true" />{% endcapture %}
|
219
|
+
{% else %}
|
220
|
+
{% capture translation %}<meta name="translation" content="false" />{% endcapture %}
|
221
|
+
{% endif %}
|
222
|
+
|
223
|
+
{{translation}}
|
224
|
+
|
202
225
|
<!-- [INFO ] [j1.layout.meta_data_generator.html ] [ meta tag for provider APIs: youtube ] -->
|
203
226
|
{% if page.youtube %}
|
204
227
|
{% capture youtube %}<meta name="youtube" content="true" />{% endcapture %}
|
@@ -1022,6 +1022,16 @@ var j1 = (function () {
|
|
1022
1022
|
// display page
|
1023
1023
|
$('#no_flicker').css('display', 'block');
|
1024
1024
|
|
1025
|
+
// add recommended title to hyvor iframe for SEO optimization (if loadad)
|
1026
|
+
if (comment_provider === 'hyvor') {
|
1027
|
+
var dependencies_met_load_finished = setInterval (function () {
|
1028
|
+
if ($('#hyvor-talk-view').children().length) {
|
1029
|
+
$('#hyvor-talk-iframe').prop('title', 'Hyvor talk iframe');
|
1030
|
+
clearInterval(dependencies_met_load_finished);
|
1031
|
+
}
|
1032
|
+
}, 25);
|
1033
|
+
}
|
1034
|
+
|
1025
1035
|
// NOTE: Placed tracking warning/info here because page may reloaded
|
1026
1036
|
// after cookie consent selection
|
1027
1037
|
if (user_consent.analyses) {
|
@@ -1147,6 +1157,16 @@ var j1 = (function () {
|
|
1147
1157
|
// display page
|
1148
1158
|
$('#no_flicker').css('display', 'block');
|
1149
1159
|
|
1160
|
+
// add recommended title to hyvor iframe for SEO optimization (if loadad)
|
1161
|
+
if (comment_provider === 'hyvor') {
|
1162
|
+
var dependencies_met_load_finished = setInterval (function () {
|
1163
|
+
if ($('#hyvor-talk-view').children().length) {
|
1164
|
+
$('#hyvor-talk-iframe').prop('title', 'Hyvor talk iframe');
|
1165
|
+
clearInterval(dependencies_met_load_finished);
|
1166
|
+
}
|
1167
|
+
}, 25);
|
1168
|
+
}
|
1169
|
+
|
1150
1170
|
// NOTE: Placed tracking warning/info here because page may reloaded
|
1151
1171
|
// after cookie consent selection
|
1152
1172
|
if (user_consent.analyses) {
|
data/lib/j1/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module J1
|
2
|
-
VERSION = '2021.1.
|
3
|
-
end
|
1
|
+
module J1
|
2
|
+
VERSION = '2021.1.17'
|
3
|
+
end
|
data/lib/starter_web/Gemfile
CHANGED
@@ -53,7 +53,7 @@ gem 'jekyll', '~> 4.2'
|
|
53
53
|
|
54
54
|
# Theme Rubies, default: J1 Template (NOT used for the development system)
|
55
55
|
#
|
56
|
-
gem 'j1-template', '~> 2021.1.
|
56
|
+
gem 'j1-template', '~> 2021.1.17'
|
57
57
|
|
58
58
|
# ------------------------------------------------------------------------------
|
59
59
|
# PRODUCTION: Gem needed for the Jekyll and J1 prod environment
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: production
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of J1 Template Gem
|
55
55
|
#
|
56
|
-
version: 2021.1.
|
56
|
+
version: 2021.1.17
|
57
57
|
|
58
58
|
# version
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -366,6 +366,11 @@ body:
|
|
366
366
|
line-height: 1.5
|
367
367
|
|
368
368
|
|
369
|
+
# ==============================================================================
|
370
|
+
# CONNECTOR configuration settings
|
371
|
+
#
|
372
|
+
# ------------------------------------------------------------------------------
|
373
|
+
|
369
374
|
# ==============================================================================
|
370
375
|
# CONNECTOR configuration settings
|
371
376
|
#
|
@@ -374,13 +379,17 @@ body:
|
|
374
379
|
# ------------------------------------------------------------------------------
|
375
380
|
# COMMENTS settings
|
376
381
|
#
|
377
|
-
# Set 'enabled' to false to turn
|
378
|
-
#
|
382
|
+
# Set 'enabled' to false to turn off globally. Affects all pages independently
|
383
|
+
# from what is set pagewise!
|
384
|
+
# Set 'provider' to the provider you want to use.
|
379
385
|
# ------------------------------------------------------------------------------
|
380
|
-
#
|
386
|
+
# hyvor
|
381
387
|
#
|
382
|
-
#
|
388
|
+
# site_id: your-website-id
|
389
|
+
# ------------------------------------------------------------------------------
|
390
|
+
# disqus
|
383
391
|
#
|
392
|
+
# site_id: your-disqus-short-name
|
384
393
|
# ------------------------------------------------------------------------------
|
385
394
|
comments:
|
386
395
|
enabled: false
|
@@ -389,7 +398,7 @@ comments:
|
|
389
398
|
xhr_data_path: /assets/data
|
390
399
|
comments_headline:
|
391
400
|
en: Leave a comment
|
392
|
-
de: Kommentieren
|
401
|
+
de: Kommentieren # hyvor | disqus
|
393
402
|
|
394
403
|
hyvor:
|
395
404
|
site_id: 'hyvor-site-id'
|
@@ -398,16 +407,16 @@ comments:
|
|
398
407
|
site_id: '<your-site-short-name>'
|
399
408
|
|
400
409
|
# commento: # currently NOT supported
|
401
|
-
# site_id:
|
410
|
+
# site_id: 'commento-site-id'
|
402
411
|
#
|
403
412
|
# just-comments: # currently NOT supported
|
404
|
-
# site_id:
|
413
|
+
# site_id: 'just-comments-site-id'
|
405
414
|
|
406
415
|
# facebook: # currently NOT supported
|
407
|
-
# appid:
|
408
|
-
# num_posts:
|
409
|
-
# width:
|
410
|
-
# colorscheme:
|
416
|
+
# appid: 'facebook-app-id'
|
417
|
+
# num_posts: 5
|
418
|
+
# width: 580
|
419
|
+
# colorscheme: light
|
411
420
|
|
412
421
|
# custom: # currently NOT supported
|
413
422
|
# custom_data:
|
@@ -415,9 +424,10 @@ comments:
|
|
415
424
|
# ------------------------------------------------------------------------------
|
416
425
|
# ANALYTICS settings
|
417
426
|
#
|
418
|
-
# Set 'enabled' to false to turn
|
419
|
-
#
|
420
|
-
#
|
427
|
+
# Set 'enabled' to false to turn off globally. Affects all pages independently
|
428
|
+
# from what is set pagewise!
|
429
|
+
# Set 'provider' to the provider you want to use.
|
430
|
+
# ------------------------------------------------------------------------------
|
421
431
|
analytics:
|
422
432
|
enabled: false
|
423
433
|
provider: google
|
@@ -425,40 +435,40 @@ analytics:
|
|
425
435
|
google:
|
426
436
|
tracking_id: '<your-tracking-id>'
|
427
437
|
|
428
|
-
|
429
|
-
|
438
|
+
custom:
|
439
|
+
custom_data:
|
430
440
|
|
431
441
|
# ------------------------------------------------------------------------------
|
432
442
|
# ADVERTISING settings
|
433
443
|
#
|
434
|
-
# Set 'enabled' to false to turn
|
435
|
-
#
|
436
|
-
#
|
444
|
+
# Set 'enabled' to false to turn off globally. Affects all pages independently
|
445
|
+
# from what is set pagewise!
|
446
|
+
# Set 'provider' to the provider you want to use.
|
447
|
+
# ------------------------------------------------------------------------------
|
437
448
|
advertising:
|
438
449
|
enabled: false
|
439
450
|
provider: google
|
440
|
-
|
441
451
|
google:
|
442
452
|
publisher_id: '<your-publisher-id>'
|
443
|
-
|
444
|
-
|
445
|
-
# custom_data:
|
453
|
+
custom:
|
454
|
+
custom_data:
|
446
455
|
|
447
456
|
# ------------------------------------------------------------------------------
|
448
|
-
# TRANSLATOR settings
|
449
|
-
#
|
450
|
-
# Set 'enabled' to false to turn translators off globally
|
451
|
-
# Set 'provider' to the translation provider you want to use
|
457
|
+
# TRANSLATOR settings
|
452
458
|
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
459
|
+
# Set 'enabled' to false to turn off globally. Affects all pages independently
|
460
|
+
# from what is set pagewise!
|
461
|
+
# Set 'provider' to the provider you want to use.
|
462
|
+
# ------------------------------------------------------------------------------
|
463
|
+
translation:
|
464
|
+
enabled: false
|
465
|
+
provider: google
|
466
|
+
|
467
|
+
google:
|
468
|
+
layout: default
|
469
|
+
meta_data: [google-translate-customization]
|
470
|
+
page_language: en
|
471
|
+
translation_languages: [all]
|
462
472
|
|
463
473
|
# ------------------------------------------------------------------------------
|
464
474
|
# SHARING settings (currently NOT supported)
|
@@ -467,9 +477,10 @@ advertising:
|
|
467
477
|
# like, reddit buttons etc. Set 'provider' to the sharing provider you
|
468
478
|
# want to use. Set 'provider' to false to turn sharing off globally.
|
469
479
|
#
|
470
|
-
# Set 'enabled' to false to turn
|
471
|
-
#
|
472
|
-
#
|
480
|
+
# Set 'enabled' to false to turn off globally. Affects all pages independently
|
481
|
+
# from what is set pagewise!
|
482
|
+
# Set 'provider' to the provider you want to use.
|
483
|
+
# ------------------------------------------------------------------------------
|
473
484
|
# sharing:
|
474
485
|
# enabled: false
|
475
486
|
# provider:
|
@@ -412,7 +412,7 @@ end::tables[]
|
|
412
412
|
// -----------------------------------------------------------------------------
|
413
413
|
tag::products[]
|
414
414
|
:j1--license: MIT License
|
415
|
-
:j1--version: 2021.1.
|
415
|
+
:j1--version: 2021.1.17
|
416
416
|
:j1--site-name: Jekyll One
|
417
417
|
end::products[]
|
418
418
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: j1-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2021.1.
|
4
|
+
version: 2021.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- juergen_jekyll_one
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|