j1-template 2023.9.1 → 2023.9.2
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/assets/data/speak2me.html +9 -7
- data/assets/themes/j1/adapter/js/navigator.js +5 -2
- data/assets/themes/j1/adapter/js/speak2me.js +181 -46
- data/assets/themes/j1/core/js/template.js +107 -90
- data/assets/themes/j1/core/js/template.min.js +5 -5
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/speak2me.yml +7 -4
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +44 -62
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +3093 -3104
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +2 -2
data/lib/j1/version.rb
CHANGED
data/lib/starter_web/README.md
CHANGED
@@ -379,7 +379,7 @@ This command creates a **initial** project in folder **my-starter**.
|
|
379
379
|
2023-02-28 18:12:12 - GENERATE: Resolving dependencies...
|
380
380
|
2023-02-28 18:12:12 - GENERATE: Using bundler 2.3.7
|
381
381
|
...
|
382
|
-
2023-02-28 18:12:12 - GENERATE: Using j1-template 2023.9.
|
382
|
+
2023-02-28 18:12:12 - GENERATE: Using j1-template 2023.9.2
|
383
383
|
2023-02-28 18:12:12 - GENERATE: Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
|
384
384
|
2023-02-28 18:12:12 - GENERATE: Bundled gems are installed into `../../.gem`
|
385
385
|
2023-02-28 18:12:12 - GENERATE: C:/Users/xxx/.gem/ruby/3.1.0;C:/DevTools/Ruby31-x64/lib/ruby/gems/3.1.0;
|
@@ -415,7 +415,7 @@ commands are available as well.
|
|
415
415
|
2023-02-28 18:17:48 - SETUP: Initialize the project ...
|
416
416
|
2023-02-28 18:17:48 - SETUP: Be patient, this will take a while ...
|
417
417
|
2023-02-28 18:17:49 - SETUP:
|
418
|
-
2023-02-28 18:17:49 - SETUP: > j1@2023.9.
|
418
|
+
2023-02-28 18:17:49 - SETUP: > j1@2023.9.2 setup C:\Users\xxx\j1-projects\my-starter
|
419
419
|
2023-02-28 18:17:49 - SETUP: > npm --silent run setup-start && npm --silent run setup-base && run-s -s setup:*
|
420
420
|
2023-02-28 18:17:49 - SETUP:
|
421
421
|
2023-02-28 18:17:50 - SETUP: Setup project for first use ..
|
@@ -460,7 +460,7 @@ browser. Let's start the journey ...
|
|
460
460
|
Check setup state of the J1 project ...
|
461
461
|
2023-02-28 18:26:18 - SITE: Starting up your site ...
|
462
462
|
2023-02-28 18:26:18 - SITE:
|
463
|
-
2023-02-28 18:26:18 - SITE: > j1@2023.9.
|
463
|
+
2023-02-28 18:26:18 - SITE: > j1@2023.9.2 j1-site C:\Users\jadams\j1-projects\my-starter
|
464
464
|
2023-02-28 18:26:18 - SITE: > run-p -s j1-site:*
|
465
465
|
2023-02-28 18:26:18 - SITE:
|
466
466
|
2023-02-28 18:26:20 - SITE: Startup UTILSRV ..
|
@@ -499,7 +499,7 @@ Check setup state of the J1 project ...
|
|
499
499
|
REBUILD: Rebuild the projects website ...
|
500
500
|
REBUILD: Be patient, this will take a while ...
|
501
501
|
2023-02-28 18:45:09 - REBUILD:
|
502
|
-
2023-02-28 18:45:09 - REBUILD: > j1@2023.9.
|
502
|
+
2023-02-28 18:45:09 - REBUILD: > j1@2023.9.2 rebuild C:\Users\xxx\j1-projects\my-starter
|
503
503
|
2023-02-28 18:45:09 - REBUILD: > run-s -s rebuild:* && run-s -s post-rebuild:*
|
504
504
|
2023-02-28 18:45:09 - REBUILD:
|
505
505
|
2023-02-28 18:45:10 - REBUILD: Rebuild site incremental ..
|
@@ -547,7 +547,7 @@ using Lerna for all packages:
|
|
547
547
|
2023-02-28 18:29:07 - RESET: Reset the project to factory state ...
|
548
548
|
2023-02-28 18:29:07 - RESET: Be patient, this will take a while ...
|
549
549
|
2023-02-28 18:29:08 - RESET:
|
550
|
-
2023-02-28 18:29:08 - RESET: > j1@2023.9.
|
550
|
+
2023-02-28 18:29:08 - RESET: > j1@2023.9.2 reset C:\Users\xxx\j1-projects\my-starter
|
551
551
|
2023-02-28 18:29:08 - RESET: > run-s -s reset:*
|
552
552
|
2023-02-28 18:29:08 - RESET:
|
553
553
|
2023-02-28 18:29:08 - RESET: Reset project to factory state ..
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: development
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of the site
|
55
55
|
#
|
56
|
-
version: 2023.9.
|
56
|
+
version: 2023.9.2
|
57
57
|
|
58
58
|
# copyright
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -29,8 +29,11 @@ defaults:
|
|
29
29
|
speechSelector: main
|
30
30
|
chrome_pause_resume_cycle: 5000
|
31
31
|
|
32
|
+
mobilesDisabled: true
|
33
|
+
browsersDisabled: [] # [Firefox, Opera]
|
34
|
+
|
32
35
|
modal:
|
33
|
-
title: Text-2-Speech
|
36
|
+
title: Text-2-Speech Control
|
34
37
|
|
35
38
|
settings:
|
36
39
|
voice_settings_title: Voice Settings
|
@@ -40,13 +43,13 @@ defaults:
|
|
40
43
|
speak_button_text: Speak
|
41
44
|
speak_button_style: success
|
42
45
|
stop_button_text: Stop
|
43
|
-
stop_button_style:
|
46
|
+
stop_button_style: danger
|
44
47
|
pause_button_text: Pause
|
45
|
-
pause_button_style:
|
48
|
+
pause_button_style: warning
|
46
49
|
resume_button_text: Resume
|
47
50
|
resume_button_style: info
|
48
51
|
exit_button_text: Close
|
49
|
-
exit_button_style:
|
52
|
+
exit_button_style: primary
|
50
53
|
|
51
54
|
voice_speed_min: 0.1
|
52
55
|
voice_speed_max: 3.0
|
@@ -57,7 +57,7 @@
|
|
57
57
|
<id>{{ page.url | absolute_url | xml_escape }}</id>
|
58
58
|
<post_limited>{{ limit_posts }}</post_limited>
|
59
59
|
<template_name>J1 Theme</template_name>
|
60
|
-
<template_version>2023.9.
|
60
|
+
<template_version>2023.9.2</template_version>
|
61
61
|
|
62
62
|
{% assign title = site.title | default: site.name %}
|
63
63
|
{% if page.collection != "posts" %}
|
@@ -36,7 +36,7 @@ Asciidoctor::Extensions.register do
|
|
36
36
|
def process parent, target, attrs
|
37
37
|
|
38
38
|
title_html = (attrs.has_key? 'title') ? %(<div class="carousel-title">#{attrs['title']}</div>\n) : nil
|
39
|
-
html = %(#{title_html} <
|
39
|
+
html = %(#{title_html} <div id="#{target}" class="slider #{attrs['role']}"></div>)
|
40
40
|
create_pass_block parent, html, attrs, subs: nil
|
41
41
|
end
|
42
42
|
end
|
@@ -34,7 +34,7 @@ Asciidoctor::Extensions.register do
|
|
34
34
|
|
35
35
|
def process parent, target, attrs
|
36
36
|
title_html = (attrs.has_key? 'title') ? %(<div class="gallery-title">#{attrs['title']}</div>\n) : nil
|
37
|
-
html = %(#{title_html} <
|
37
|
+
html = %(#{title_html} <div id="#{target}" class="gallery #{attrs['role']}"></div>)
|
38
38
|
create_pass_block parent, html, attrs, subs: nil
|
39
39
|
end
|
40
40
|
end
|
@@ -73,7 +73,7 @@ Asciidoctor::Extensions.register do
|
|
73
73
|
end
|
74
74
|
content = html_block.target! # See: https://stackoverflow.com/questions/4961609/extra-to-s-when-using-builder-to-generate-xml
|
75
75
|
|
76
|
-
html = %(#{title_html} <
|
76
|
+
html = %(#{title_html} <div id="lb-#{target}" class="lightbox-block imageblock"> #{content} </div>)
|
77
77
|
|
78
78
|
create_pass_block parent, html, attrs, subs: nil
|
79
79
|
end
|
@@ -38,7 +38,7 @@ Asciidoctor::Extensions.register do
|
|
38
38
|
|
39
39
|
def process parent, target, attrs
|
40
40
|
title_html = (attrs.has_key? 'title') ? %(<div class="masonry-title">#{attrs['title']}</div>\n) : nil
|
41
|
-
html = %(#{title_html} <
|
41
|
+
html = %(#{title_html} <div id="#{target}_parent" class="masonry masonry-parent #{attrs['role']}"></div>)
|
42
42
|
create_pass_block parent, html, attrs, subs: nil
|
43
43
|
end
|
44
44
|
|
@@ -38,7 +38,7 @@ Asciidoctor::Extensions.register do
|
|
38
38
|
def process parent, target, attrs
|
39
39
|
|
40
40
|
title_html = (attrs.has_key? 'title') ? %(<div class="carousel-title">#{attrs['title']}</div>\n) : nil
|
41
|
-
html = %(#{title_html} <
|
41
|
+
html = %(#{title_html} <div id="p_#{target}" class="slider master-slider-parent #{attrs['role']}"></div>)
|
42
42
|
create_pass_block parent, html, attrs, subs: nil
|
43
43
|
end
|
44
44
|
end
|
@@ -39,7 +39,7 @@ Asciidoctor::Extensions.register do
|
|
39
39
|
def process parent, target, attrs
|
40
40
|
|
41
41
|
title_html = (attrs.has_key? 'title') ? %(<div class="carousel-title">#{attrs['title']}</div>\n) : nil
|
42
|
-
html = %(#{title_html} <
|
42
|
+
html = %(#{title_html} <div id="#{target}_parent" class="slider slider-parent #{attrs['role']}"></div>)
|
43
43
|
create_pass_block parent, html, attrs, subs: nil
|
44
44
|
end
|
45
45
|
end
|
data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb
CHANGED
@@ -104,7 +104,7 @@ performance beyond the limits of a database-driven site.
|
|
104
104
|
[role="mt-4"]
|
105
105
|
=== What's different?
|
106
106
|
|
107
|
-
A dynamic website uses a database and PHP
|
107
|
+
A dynamic website uses a database and PHP to generate the content of
|
108
108
|
a page when a user requests it. For example, building a website using
|
109
109
|
WordPress CMS will result in having a dynamic Website.
|
110
110
|
|
@@ -79,11 +79,11 @@ resource_options:
|
|
79
79
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
80
80
|
[role="dropcap"]
|
81
81
|
Welcome to the preview page focussing on image modules. This page shows
|
82
|
-
all the
|
82
|
+
all of the powerful features of the J1 Template to manage your image-based
|
83
83
|
content using lightboxes, carousels, sliders, grids, and galleries.
|
84
84
|
|
85
85
|
The image-related modules of the J1 Template offer a wide range of complex
|
86
|
-
functionality based on powerful Open Source libraries like Lightbox
|
86
|
+
functionality based on powerful Open Source libraries like Lightbox Version 2,
|
87
87
|
Slick Slider, Master Slider, or Masonry Grid and JustifiedGallery to create
|
88
88
|
masonry-styled preview maps.
|
89
89
|
|
@@ -98,14 +98,14 @@ mdi:clock-time-five-outline[24px, md-gray mt-4 mr-2]
|
|
98
98
|
|
99
99
|
A Lightbox is a helper which displays enlarged, almost screen-filling versions
|
100
100
|
of images while dimming the remainder of the page. The technique, introduced
|
101
|
-
by Lightbox
|
102
|
-
term *Lightbox* has been employed since then for Javascript libraries to
|
101
|
+
by Lightbox Version 2, gained widespread popularity thanks to its simple style.
|
102
|
+
The term *Lightbox* has been employed since then for Javascript libraries to
|
103
103
|
support such functionality.
|
104
104
|
|
105
105
|
For J1 Template, different lightbox modules are available:
|
106
106
|
|
107
|
-
* Lightbox
|
108
|
-
* LightGallery
|
107
|
+
* Lightbox Version 2 (default)
|
108
|
+
* Lightbox LightGallery (optional)
|
109
109
|
* Slick Lightbox (for Slick Carousels only)
|
110
110
|
|
111
111
|
The *default* tool employed by J1 Template is Lightbox V2, a Javascript
|
@@ -127,8 +127,8 @@ under the link:{url-j1-docs--lightbox-module}[Lightbox module, {browser-window--
|
|
127
127
|
=== Default Lightbox
|
128
128
|
|
129
129
|
[role="mb-4"]
|
130
|
-
Find below an example of using the
|
131
|
-
images. See how
|
130
|
+
Find below an example of using the the default lightbox used for standalone
|
131
|
+
images. See how individual images are linked.
|
132
132
|
|
133
133
|
.Lightbox for standalone images
|
134
134
|
lightbox::example-standalone[ 800, {data-images-standalone}, role="mb-4" ]
|
@@ -164,8 +164,8 @@ gallery::jg_old_times[]
|
|
164
164
|
== J1 Carousel
|
165
165
|
|
166
166
|
J1 Carousel is based on OWL Carousel V1 in the latest version. OWL Carousel
|
167
|
-
is a
|
168
|
-
|
167
|
+
is a powerful jQuery plugin for creating fully responsive and touch-enabled
|
168
|
+
carousel sliders.
|
169
169
|
|
170
170
|
[role="mt-4"]
|
171
171
|
=== Simple Text Carousel
|
@@ -178,20 +178,19 @@ displayed as a slide show: simple text, for example.
|
|
178
178
|
.Text Carousel
|
179
179
|
carousel::demo_text_carousel[role="mb-4"]
|
180
180
|
|
181
|
-
Important statements or topics can be placed
|
182
|
-
a paragraph
|
181
|
+
Important statements or topics can be placed on top of an article or
|
182
|
+
a paragraph to give them better visibility. In one line, you can present
|
183
183
|
many facts to know animated for the reader's attention within a single
|
184
|
-
line.
|
184
|
+
line.
|
185
185
|
|
186
186
|
[role="mt-4"]
|
187
187
|
=== Parallax Text Carousel
|
188
188
|
|
189
189
|
[role="mb-4"]
|
190
|
-
A more
|
191
|
-
you want to
|
192
|
-
|
193
|
-
|
194
|
-
maybe the better choice.
|
190
|
+
A more emphasized type of text-based carousel is a parallax text slider. If
|
191
|
+
you want to focus the meaning, this kind of a slide show may be interesting.
|
192
|
+
Image-based slide shows may draw off the reader's attention from the text,
|
193
|
+
therefore a pure text-based presentation maybe the better choice.
|
195
194
|
|
196
195
|
.Parallax Text
|
197
196
|
carousel::demo_text_carousel_parallax[role="mb-4"]
|
@@ -228,16 +227,15 @@ carousel::demo_simple[role="mb-4"]
|
|
228
227
|
|
229
228
|
Carousels are used for an exceptionally compact form of image galleries.
|
230
229
|
This example shows some pictures having individual caption text and supports
|
231
|
-
a lightbox to enlarge images full size.
|
232
|
-
lightbox is used: Lightbox2; or short: lightbox.
|
230
|
+
a lightbox to enlarge images full size.
|
233
231
|
|
234
232
|
.Image Carousel + Lightbox
|
235
233
|
carousel::demo_cats[role="mb-3"]
|
236
234
|
|
237
235
|
The J1 module lightbox is a simple Lightbox but offers a bunch of impressive
|
238
236
|
features for displaying images. For example, the lightbox can display all
|
239
|
-
images
|
240
|
-
|
237
|
+
images as a group. If one picture is opened in the lightbox, others are
|
238
|
+
browsed by easy-to-use control buttons.
|
241
239
|
|
242
240
|
[role="mt-4"]
|
243
241
|
=== One Slide Carousel + Lightbox
|
@@ -254,7 +252,7 @@ carousel::demo_oneslide[role="mb-4"]
|
|
254
252
|
== J1 Slick Carousel
|
255
253
|
|
256
254
|
[role="mb-4"]
|
257
|
-
|
255
|
+
Slick is a popular jQuery plugin for creating responsive and fully
|
258
256
|
customizable carousels. It allows developers to easily create beautiful
|
259
257
|
and dynamic carousels that can display images, videos, or any other type
|
260
258
|
of content in a visually appealing way.
|
@@ -329,11 +327,11 @@ link:{url-j1-slick-previewer}[Slick Previewer, {browser-window--new}],
|
|
329
327
|
[[masterSlider]]
|
330
328
|
== J1 Master Slider
|
331
329
|
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
330
|
+
Masterslider is a jQuery plugin fully integrated into the J1 Template.
|
331
|
+
Jekyll One uses the *free* version of Masterslider well-known as MS Lite.
|
332
|
+
The lite version does *not* support all features of the full product.
|
333
|
+
The functionality of filters and layouts are limited and no overlay
|
334
|
+
techniques are supported by the MS Lite version.
|
337
335
|
|
338
336
|
[role="mt-4"]
|
339
337
|
[[carousel_versus_slider]]
|
@@ -398,26 +396,19 @@ masterslider::ms_00003[]
|
|
398
396
|
|
399
397
|
[role="mt-4"]
|
400
398
|
[[thumb_images]]
|
401
|
-
===
|
399
|
+
=== [role="mt-4"] Slider using Thumb Elements
|
402
400
|
|
403
401
|
To give the users better control over a slideshow, sliders provide complex UI
|
404
|
-
elements
|
405
|
-
the bottom of a slideshow. Find two examples
|
406
|
-
|
402
|
+
elements to place dor example mini-images or short text elements side-by-side
|
403
|
+
left or right, or at the bottom of a slideshow. Find two examples below how
|
404
|
+
to control such a carousel element.
|
407
405
|
|
408
|
-
.
|
409
|
-
masterslider::ms_00004[]
|
406
|
+
.Image controls
|
407
|
+
masterslider::ms_00004[role="mb-5"]
|
410
408
|
|
411
|
-
|
412
|
-
[
|
413
|
-
=== MS Slider using ThumbInfo
|
414
|
-
|
415
|
-
To give the users better control over a slideshow, MS Slider provides
|
416
|
-
complex UI elements like thumbs placed side-by-side (left|right), at the
|
417
|
-
top, or at the bottom of a slideshow.
|
409
|
+
.Text controls
|
410
|
+
masterslider::ms_00007[role="mt-4 mb-5"]
|
418
411
|
|
419
|
-
.Slider using ThumbInfo
|
420
|
-
masterslider::ms_00007[]
|
421
412
|
|
422
413
|
[role="mt-4"]
|
423
414
|
[[partialview]]
|
@@ -445,32 +436,22 @@ documents:
|
|
445
436
|
[role="mt-5"]
|
446
437
|
== J1 Masonry
|
447
438
|
|
448
|
-
J1 Masonry is
|
449
|
-
|
450
|
-
|
451
|
-
horizontally in a responsive grid.
|
439
|
+
J1 Masonry is a great tool to create dynamic image galleries. Image galleries
|
440
|
+
are popular on many websites, and masonry can be a useful tool for creating
|
441
|
+
dynamic and visually appealing galleries.
|
452
442
|
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
[role="mt-4"]
|
458
|
-
=== Grid of Images
|
443
|
+
[role="mb-4"]
|
444
|
+
By using masonry, you can create a gallery that displays images of different
|
445
|
+
sizes in an aesthetically pleasing and functional way.
|
459
446
|
|
460
|
-
|
461
|
-
|
462
|
-
Find an example below of how Bootstrap cards can be combined with the Masonry
|
463
|
-
module for a fully responsive image grid.
|
447
|
+
.Image Cards
|
448
|
+
masonry::card_example[role="mb-5"]
|
464
449
|
|
465
450
|
[TIP]
|
466
451
|
====
|
467
|
-
|
468
|
-
in action.
|
452
|
+
Change the size of your current browser width to see what will happen!
|
469
453
|
====
|
470
454
|
|
471
|
-
.Grid of Images
|
472
|
-
masonry::card_example[]
|
473
|
-
|
474
455
|
|
475
456
|
[role="mt-5"]
|
476
457
|
== JustifiedGallery
|
@@ -494,6 +475,7 @@ You'll have seen it in use all over the Internet!
|
|
494
475
|
.Masonry Grid Gallery
|
495
476
|
gallery::jg_customizer[]
|
496
477
|
|
478
|
+
|
497
479
|
[role="mt-5"]
|
498
480
|
== What next
|
499
481
|
|