j1-template 2023.0.12 → 2023.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +4 -4
  3. data/assets/data/banner.html +8 -7
  4. data/assets/data/panel.html +183 -88
  5. data/assets/themes/j1/adapter/js/j1.js +42 -15
  6. data/lib/j1/version.rb +1 -1
  7. data/lib/starter_web/Gemfile +1 -1
  8. data/lib/starter_web/README.md +5 -5
  9. data/lib/starter_web/_config.yml +3 -3
  10. data/lib/starter_web/_data/blocks/banner.yml +12 -7
  11. data/lib/starter_web/_data/blocks/panel.yml +13 -9
  12. data/lib/starter_web/_data/j1_config.yml +1 -1
  13. data/lib/starter_web/_data/modules/defaults/masterslider.yml +8 -11
  14. data/lib/starter_web/_data/modules/masterslider.yml +3 -3
  15. data/lib/starter_web/_data/templates/feed.xml +1 -1
  16. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  17. data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg +0 -0
  18. data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +4 -8
  19. data/lib/starter_web/index.html +0 -1
  20. data/lib/starter_web/package.json +1 -1
  21. data/lib/starter_web/pages/public/about/features.adoc +5 -6
  22. data/lib/starter_web/pages/public/about/reporting_issues.adoc +4 -5
  23. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +0 -1
  24. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +0 -1
  25. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +4 -6
  26. data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +9 -13
  27. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +4 -6
  28. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +9 -13
  29. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +8 -12
  30. data/lib/starter_web/pages/public/blog/navigator/index.html +5 -7
  31. data/lib/starter_web/pages/public/bookshelf/viewer_biography.adoc +0 -2
  32. data/lib/starter_web/pages/public/bookshelf/whats_up.adoc +1 -3
  33. data/lib/starter_web/pages/public/features/general.adoc +5 -5
  34. data/lib/starter_web/pages/public/features/template.adoc +4 -5
  35. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +0 -2
  36. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +43 -26
  37. data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -1
  38. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +5 -5
  39. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +5 -5
  40. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +5 -5
  41. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +5 -5
  42. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -3
  43. data/lib/starter_web/pages/public/plans/plans.adoc +2 -5
  44. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +1 -2
  45. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  46. data/lib/starter_web/utilsrv/package.json +1 -1
  47. metadata +3 -4
  48. data/assets/data/top_search_modal.html +0 -121
  49. data/lib/starter_web/assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg +0 -0
@@ -14,11 +14,6 @@ keywords: >
14
14
  categories: [ Features ]
15
15
  tags: [ General ]
16
16
 
17
- sitemap: true
18
- advertising: false
19
- comments: false
20
- fab_menu_id: page_ctrl
21
-
22
17
  robots:
23
18
  index: true
24
19
  follow: true
@@ -29,6 +24,11 @@ image:
29
24
  height: 1280
30
25
  alt: Photo by Christina on Unsplash
31
26
 
27
+ sitemap: true
28
+ advertising: false
29
+ comments: false
30
+ fab_menu_id: open_toc
31
+
32
32
  permalink: /pages/public/features/general_features/
33
33
  regenerate: false
34
34
 
@@ -15,11 +15,6 @@ keywords: >
15
15
  categories: [ Features ]
16
16
  tags: [ Module, Extension, Integration ]
17
17
 
18
- sitemap: true
19
- advertising: false
20
- comments: false
21
- fab_menu_id: page_ctrl
22
-
23
18
  robots:
24
19
  index: true
25
20
  follow: true
@@ -30,6 +25,10 @@ image:
30
25
  height: 1280
31
26
  alt: Photo by Christina on Unsplash
32
27
 
28
+ sitemap: true
29
+ advertising: false
30
+ fab_menu_id: open_toc
31
+ comments: false
33
32
  permalink: /pages/public/features/template_features/
34
33
  regenerate: true
35
34
 
@@ -25,8 +25,6 @@ image:
25
25
  permalink: /pages/public/learn/roundtrip/modals/
26
26
  regenerate: false
27
27
 
28
- # flowtext: false
29
-
30
28
  resources: [ animate ]
31
29
  resource_options:
32
30
  - attic:
@@ -120,12 +120,14 @@ under the link:{url-j1-docs--lightbox-module}[Lightbox module, {browser-window--
120
120
 
121
121
  == Lightbox block examples
122
122
 
123
+ [role="mb-4"]
123
124
  Find below an example of using the lightbox Lightbox standalone. See how
124
125
  single (individual) images are linked for use with Lightbox.
125
126
 
126
127
  .Lightbox block for standalone images
127
128
  lightbox::example-standalone[ 800, {data-images-standalone}, role="mb-4" ]
128
129
 
130
+ [role="mb-4"]
129
131
  Lightbox supports image groups (image sets). Click on the images below to
130
132
  see how Lightbox manages a group of images.
131
133
 
@@ -134,6 +136,7 @@ lightbox::example-group[ 395, {data-images-group}, group, role="mb-4 wm-800" ]
134
136
 
135
137
  === LightGallery example
136
138
 
139
+ [role="mb-4"]
137
140
  LightGallery provides more complex functions on image data. The module
138
141
  supports a gallery-style thumbnail preview plus image resizing, a download
139
142
  dialog, sharing provider support, and more helpful. Check what
@@ -141,7 +144,7 @@ LightGallery can do this by the following example.
141
144
 
142
145
  gallery::jg_old_times[ role="mb-4 wm-800" ]
143
146
 
144
- == J1 Carousel App
147
+ == J1 Carousel
145
148
 
146
149
  J1 Carousel is based on OWL Carousel V1 in the latest (and unfortunately
147
150
  last) version of 1.3.3. OWL Carousel is a clean and neat _jQuery_ slider
@@ -157,12 +160,13 @@ business use. And offers a lot of great features!
157
160
 
158
161
  === Simple Text Carousel
159
162
 
163
+ [role="mb-4"]
160
164
  A slider or carousel is typically used for displaying images. Still, the
161
165
  implementation for the J1 Theme supports a lot more sources to be
162
166
  displayed as a slide show: simple text, for example.
163
167
 
164
- .Carousel example
165
- carousel::demo_text_carousel[role="mb-3"]
168
+ .Text Carousel
169
+ carousel::demo_text_carousel[role="mb-4"]
166
170
 
167
171
  Important statements or topics can be placed, e.g., on top of an article or
168
172
  a paragraph, to give them better visibility. In one line, you can present
@@ -171,14 +175,15 @@ line. No much space is needed!
171
175
 
172
176
  === Parallax Text Carousel
173
177
 
178
+ [role="mb-4"]
174
179
  A more eye-minded type of text-based slide show is a parallax text slider. If
175
180
  you want to emphasize your statements focussing the meaning, this kind of a
176
181
  slide show may be interesting. Image-based slide shows may draw off the
177
182
  reader's attention from the text, therefore a pure text-based presentation
178
183
  maybe the better choice.
179
184
 
180
- .Carousel example
181
- carousel::demo_text_carousel_parallax[role="mb-3"]
185
+ .Parallax Text
186
+ carousel::demo_text_carousel_parallax[role="mb-4"]
182
187
 
183
188
  Parallax text shows can be placed as banners on a page. For text shows,
184
189
  different animations are available. Internally, J1 Theme uses some of
@@ -200,8 +205,8 @@ data.
200
205
  A simple image show is useful, for example, as an animated (or not animated)
201
206
  banner presenting exciting things about your site or the products offered.
202
207
 
203
- .Carousel example
204
- carousel::demo_simple[role="mb-3"]
208
+ .Image Carousel
209
+ carousel::demo_simple[role="mb-4"]
205
210
 
206
211
  === Carousel + Caption + Lightbox
207
212
 
@@ -210,7 +215,7 @@ This example shows some pictures having individual caption text and supports
210
215
  a lightbox to enlarge images full size. For the example below, an almost simple
211
216
  lightbox is used: Lightbox2; or short: lightbox.
212
217
 
213
- .Carousel example
218
+ .Image Carousel + Lightbox
214
219
  carousel::demo_cats[role="mb-3"]
215
220
 
216
221
  The J1 module lightbox is a simple Lightbox but offers a bunch of impressive
@@ -225,8 +230,8 @@ Here you find an example of a single image slide show with controls enabled
225
230
  to browse all images back and forth. An indicator below the slider shows how
226
231
  many images the show contains.
227
232
 
228
- .Carousel example
229
- carousel::demo_oneslide[role="mb-3"]
233
+ .One Slide Carousel
234
+ carousel::demo_oneslide[role="mb-4"]
230
235
 
231
236
  == J1 Master Slider
232
237
 
@@ -274,16 +279,18 @@ Lightboxes on sliders out-of-the-box.
274
279
  TIP: Click on the Lightbox symbol mdi:image-outline[18px, md-gray] in the
275
280
  slides to see the *colored* images configured for the slider.
276
281
 
277
- masterslider::ms_00001[role="mt-4 mb-5"]
282
+ .Slider using Controls
283
+ masterslider::ms_00001[role="mb-5"]
278
284
 
279
- === MS Slider using Text Elements
285
+ === MS Slider using Text Elements (MSInfo)
280
286
 
281
287
  One of the major features of sliders is to present additional (animated)
282
288
  elements, like text data, connected to the images presented by a slider:
283
289
  the slideshow. MS Slider provides functions to combine images and text
284
- elements: the *MSInfo* element.
290
+ elements: the MSInfo element.
285
291
 
286
- masterslider::ms_00003[role="mt-4 mb-5"]
292
+ .Slider using Text Elements
293
+ masterslider::ms_00003[role="mb-5"]
287
294
 
288
295
  === MS Slider using ThumbImages
289
296
 
@@ -292,28 +299,37 @@ elements like *thumbs* placed side-by-side (left|right), at the top, or at
292
299
  the bottom of a slideshow. Find two examples to control a slideshow by
293
300
  *thumb images*.
294
301
 
295
- masterslider::ms_00004[role="mt-4 mb-5"]
302
+ .Slider using ThumbImages
303
+ masterslider::ms_00004[role="mb-5"]
296
304
 
297
- masterslider::ms_00005[role="mt-4 mb-5"]
305
+ === MS Slider using ThumbInfo
298
306
 
299
- === MS Slider using MS Info in a complex Layout
307
+ To give the users better control over a slideshow, MS Slider provides
308
+ complex UI elements like thumbs placed side-by-side (left|right), at the
309
+ top, or at the bottom of a slideshow.
310
+
311
+ .Slider using ThumbInfo
312
+ masterslider::ms_00007[role="mb-5"]
313
+
314
+ === MS Slider using Layout partialview
300
315
 
301
316
  The following slider presents a slideshow that combines an MSInfo element
302
317
  at the bottom and the MS Layout `partialview`. A slideshow typically presents
303
- a larger number of slides. The layout `partialview` accompanies the *active*
318
+ a larger number of slides. The layout `partialview` accompanies the active
304
319
  slide by their neighbors on the left and the right.
305
320
 
306
- masterslider::ms_00009[role="mt-4"]
321
+ .Slider using Layout partialview
322
+ masterslider::ms_00009[role="mb-5"]
307
323
 
308
- === More about Master Sliders
324
+ === More about Master Slider
309
325
 
310
- If you're interested to learn more about MS Sliders, go for the following
326
+ If you're interested to learn more about MS Slider, go for the following
311
327
  documents:
312
328
 
313
- * link:{url-j1-masterslider-slider-previewer}[MS Slider Previewer, {browser-window--new}]
314
- * link:{url-j1-docs--masterslider-module}[MS Slider module documentation, {browser-window--new}]
315
-
329
+ * MS Slider link:{url-j1-masterslider-slider-previewer}[Previewer, {browser-window--new}]
330
+ * MS Slider link:{url-j1-docs--masterslider-module}[Module documentation, {browser-window--new}]
316
331
 
332
+ [role="mt-5"]
317
333
  == JustifiedGallery
318
334
 
319
335
  link:{url-justified-gallery--home}[JustifiedGallery, {browser-window--new}]
@@ -323,6 +339,7 @@ supported to enlarge the images of a gallery. See the gallery in action; and
323
339
  for sure, all that you see is even responsive. Change the size of your current
324
340
  browser window, by width or height to see what will happen!
325
341
 
342
+ [role="mb-4"]
326
343
  Pictures you've made are typically not even in size. Images may have the
327
344
  same size (resolution), but some are orientated landscapes, or others
328
345
  may be portraits. For that reason, a more powerful gallery is needed to create
@@ -331,8 +348,8 @@ layout. It works by placing elements in an optimal position based on available
331
348
  horizontal and vertical space. Sort of like mason fitting stones in a wall.
332
349
  You'll have seen it in use all over the Internet!
333
350
 
334
- .JustifiedGallery example
335
- gallery::jg_customizer[role="mb-4"]
351
+ .Masonry Grid Gallery
352
+ gallery::jg_customizer[role="mb-5"]
336
353
 
337
354
  == What next
338
355
 
@@ -21,7 +21,6 @@ image:
21
21
  alt: Photo by Alexander Redl on Unsplash
22
22
 
23
23
  fab_menu_id: default
24
-
25
24
  permalink: /pages/public/learn/where_to_go/
26
25
  regenerate: false
27
26
 
@@ -16,14 +16,14 @@ robots:
16
16
  follow: false
17
17
 
18
18
  image:
19
- path: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
19
+ path: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
20
20
  width: 1920
21
21
  height: 1280
22
- alt: J1 Themes Mockup
22
+ alt: J1 Starter Mockup
23
23
 
24
24
  sitemap: false
25
25
  exclude_from_search: true
26
- fab_menu_id: page_ctrl
26
+ fab_menu_id: open_toc
27
27
  scrollbar: false
28
28
  comments: false
29
29
  toc: true
@@ -36,8 +36,8 @@ resource_options:
36
36
  - attic:
37
37
  padding_top: 600
38
38
  slides:
39
- - url: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
40
- alt: J1 Themes Mockup
39
+ - url: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
40
+ alt: J1 Starter Mockup
41
41
  ---
42
42
 
43
43
  // Page Initializer
@@ -16,14 +16,14 @@ robots:
16
16
  follow: false
17
17
 
18
18
  image:
19
- path: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
19
+ path: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
20
20
  width: 1920
21
21
  height: 1280
22
- alt: J1 Themes Mockup
22
+ alt: J1 Starter Mockup
23
23
 
24
24
  sitemap: false
25
25
  exclude_from_search: true
26
- fab_menu_id: page_ctrl
26
+ fab_menu_id: default
27
27
  scrollbar: false
28
28
  comments: false
29
29
  toc: false
@@ -36,8 +36,8 @@ resource_options:
36
36
  - attic:
37
37
  padding_top: 600
38
38
  slides:
39
- - url: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
40
- alt: J1 Themes Mockup
39
+ - url: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
40
+ alt: J1 Starter Mockup
41
41
  ---
42
42
 
43
43
  // Page Initializer
@@ -15,14 +15,14 @@ robots:
15
15
  follow: false
16
16
 
17
17
  image:
18
- path: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
18
+ path: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
19
19
  width: 1920
20
20
  height: 1280
21
- alt: Photo by Markus Spiske on Unsplash
21
+ alt: J1 Starter Mockup
22
22
 
23
23
  sitemap: false
24
24
  exclude_from_search: true
25
- fab_menu_id: page_ctrl
25
+ fab_menu_id: open_toc
26
26
  scrollbar: false
27
27
  comments: false
28
28
  toc: true
@@ -35,8 +35,8 @@ resource_options:
35
35
  - attic:
36
36
  padding_top: 600
37
37
  slides:
38
- - url: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
39
- alt: J1 Themes Mockup
38
+ - url: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
39
+ alt: J1 Starter Mockup
40
40
  ---
41
41
 
42
42
  // Page Initializer
@@ -15,14 +15,14 @@ robots:
15
15
  follow: false
16
16
 
17
17
  image:
18
- path: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
18
+ path: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
19
19
  width: 1920
20
20
  height: 1280
21
- alt: J1 Themes Mockup
21
+ alt: J1 Starter Mockup
22
22
 
23
23
  sitemap: false
24
24
  exclude_from_search: true
25
- fab_menu_id: page_ctrl
25
+ fab_menu_id: open_toc
26
26
  scrollbar: false
27
27
  comments: false
28
28
  toc: true
@@ -35,8 +35,8 @@ resource_options:
35
35
  - attic:
36
36
  padding_top: 600
37
37
  slides:
38
- - url: /assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
39
- alt: J1 Themes Mockup
38
+ - url: /assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
39
+ alt: J1 Starter Mockup
40
40
  ---
41
41
 
42
42
  // Page Initializer
@@ -12,9 +12,6 @@ description: >
12
12
  categories: [ Info ]
13
13
  tags: [ Info, Jekyll, Template ]
14
14
 
15
- comments: false
16
- fab_menu_id: page_ctrl
17
-
18
15
  robots:
19
16
  index: false
20
17
  follow: false
@@ -25,6 +22,8 @@ image:
25
22
  height: 1280
26
23
  alt: Photo by Alexander Andrews on Unsplash
27
24
 
25
+ comments: false
26
+ fab_menu_id: open_toc
28
27
  exclude_from_search: true
29
28
  permalink: /pages/public/panels/intro_panel/
30
29
  regenerate: false
@@ -9,7 +9,6 @@ description: >
9
9
  brilliant. J1 Theme supports your Web for full responsiveness, for the
10
10
  best user experience on all modern devices.
11
11
 
12
-
13
12
  categories: [ Info ]
14
13
  tags: [ Plan, Template ]
15
14
 
@@ -17,17 +16,15 @@ robots:
17
16
  index: false
18
17
  follow: false
19
18
 
20
- exclude_from_search: true
21
-
22
19
  image:
23
20
  path: /assets/images/modules/attics/gift-from-hand-1920x1280.jpg
24
21
  width: 1920
25
22
  height: 1280
26
23
  alt: Plan Details
27
24
 
25
+ exclude_from_search: true
28
26
  comments: false
29
- fab_menu_id: page_ctrl
30
-
27
+ fab_menu_id: open_toc
31
28
  permalink: /pages/public/plans/plan_details/
32
29
  regenerate: false
33
30
 
@@ -20,7 +20,6 @@ image:
20
20
  comments: false
21
21
  fab_menu_id: page_ctrl
22
22
  scrollbar: false
23
-
24
23
  permalink: /pages/public/previewer/current_theme/
25
24
  regenerate: false
26
25
 
@@ -29,7 +28,7 @@ resource_options:
29
28
  - toccer:
30
29
  collapseDepth: 3
31
30
  - attic:
32
- padding_top: 600
31
+ padding_top: 600
33
32
  slides:
34
33
  - url: /assets/images/modules/attics/themes-1920x1280-bw.jpg
35
34
  alt: Photo by Clem Onojeghuo on Unsplash
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "utls",
4
- "version": "2023.0.12",
4
+ "version": "2023.0.13",
5
5
  "description": "J1 Theme Utility Server",
6
6
  "homepage": "https://jekyll.one",
7
7
  "author": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "utls",
4
- "version": "2023.0.12",
4
+ "version": "2023.0.13",
5
5
  "description": "J1 Theme Utility Server",
6
6
  "homepage": "https://jekyll.one",
7
7
  "author": {
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: 2023.0.12
4
+ version: 2023.0.13
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: 2023-02-07 00:00:00.000000000 Z
11
+ date: 2023-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -341,7 +341,6 @@ files:
341
341
  - assets/data/rtext_resizer.html
342
342
  - assets/data/themes.bootswatch.json
343
343
  - assets/data/themes.json
344
- - assets/data/top_search_modal.html
345
344
  - assets/data/translator.html
346
345
  - assets/error_pages/HTTP204.html
347
346
  - assets/error_pages/HTTP400.html
@@ -2039,7 +2038,7 @@ files:
2039
2038
  - lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-1.jpg
2040
2039
  - lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-2.jpg
2041
2040
  - lib/starter_web/assets/images/modules/attics/1920x1280/j1-content-mockup-3.jpg
2042
- - lib/starter_web/assets/images/modules/attics/1920x1280/j1-theme-mockup-1.jpg
2041
+ - lib/starter_web/assets/images/modules/attics/1920x1280/j1-starter-mockup-1.jpg
2043
2042
  - lib/starter_web/assets/images/modules/attics/1920x1280/john-schnobrich-2.jpg
2044
2043
  - lib/starter_web/assets/images/modules/attics/1920x1280/josh-liu.jpg
2045
2044
  - lib/starter_web/assets/images/modules/attics/1920x1280/kristopher-roller.jpg
@@ -1,121 +0,0 @@
1
- ---
2
- regenerate: true
3
- exclude_from_search: true
4
- ---
5
-
6
- {% capture cache %}
7
-
8
- {% comment %}
9
- # -----------------------------------------------------------------------------
10
- # ~/assets/data/translator.html
11
- # Liquid PROCEDURE to generate the HTML (data) portion of all modals used
12
- # by the J1 Translator module
13
- #
14
- # Product/Info:
15
- # https://jekyll.one
16
- #
17
- # Copyright (C) 2023 Juergen Adams
18
- #
19
- # J1 Theme is licensed under the MIT License.
20
- # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
21
- # -----------------------------------------------------------------------------
22
- # Test data:
23
- # liquid_var: {{ liquid_var | debug }}
24
- # config: {{ config | debug }}
25
- # -----------------------------------------------------------------------------
26
- {% endcomment %}
27
-
28
- {% comment %} Liquid procedures
29
- -------------------------------------------------------------------------------- {% endcomment %}
30
-
31
- {% comment %} Set global settings
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- {% assign environment = site.environment %}
34
-
35
- {% comment %} Set config files
36
- -------------------------------------------------------------------------------- {% endcomment %}
37
- {% assign modules = site.data.modules %}
38
-
39
- {% comment %} Process YML config data
40
- ================================================================================ {% endcomment %}
41
-
42
- {% comment %} Set config files
43
- -------------------------------------------------------------------------------- {% endcomment %}
44
- {% assign translate_defaults = modules.defaults.translator.defaults %}
45
- {% assign translate_settings = modules.translator.settings %}
46
-
47
- {% comment %} Set config options
48
- -------------------------------------------------------------------------------- {% endcomment %}
49
- {% assign translate_options = translate_defaults | merge: translate_settings %}
50
-
51
- {% comment %} Detect prod mode
52
- -------------------------------------------------------------------------------- {% endcomment %}
53
- {% assign production = false %}
54
- {% if environment == 'prod' or environment == 'production' %}
55
- {% assign production = true %}
56
- {% endif %}
57
-
58
-
59
- {% comment %} Main
60
- ================================================================================ {% endcomment %}
61
- <!-- [INFO ] [~/assets/data/translator.html ] [ set meta data (robots) to exclude HTML datafiles from index ] -->
62
- <head>
63
- <meta name="robots" content="noindex, nofollow" />
64
- </head>
65
-
66
- {% comment %} i18n: translations
67
- -------------------------------------------------------------------------------- {% endcomment %}
68
-
69
- {% comment %} Modal Top Search dialog (default: en-EN)
70
- -------------------------------------------------------------------------------- {% endcomment %}
71
- <div id="searchModal-en">
72
-
73
- <!-- Modal Top Search -->
74
- <div id="searchModal"
75
- class="modal fade top"
76
- tabindex="-1"
77
- role="dialog"
78
- aria-labelledby="myModalLabel" aria-hidden="true"
79
- data-keyboard="false"
80
- data-backdrop="static">
81
-
82
- <div class="modal-dialog modal-frame modal-top modal-notify modal-info" role="document">
83
-
84
- <!-- Content -->
85
- <div class="modal-content">
86
- <!-- Body -->
87
- <div class="modal-body">
88
- <div id="navigator_nav_topsearch" class="top-search ml-4 mr-4">
89
- <span class="bmd-form-group">
90
- <div class="input-group">
91
- <span class="input-group-addon"><i class="mdi mdi-magnify mdi-2x mb-2" style="color:#9E9E9E"></i></span>
92
- <input id="search-query" type="text" name="q" placeholder="Your search expression" autocomplete="off" class="form-control">
93
- <span id="clear-topsearch" class="form-clear form-clear-searcher d-none" style="margin-top: 0.75rem"> <i class="mdi mdi-format-clear mdi-2x" style="color:#9E9E9E"></i> </span>
94
- </div>
95
- </span>
96
- <!-- [INFO ] [~/assets/data/top_search_modal.html ] [ place: results container ] -->
97
- <div class="search-results hide-scrollbar mt-4">
98
- <section id="search-results" style="display: none;"></section>
99
- </div>
100
- </div>
101
- </div>
102
- </div>
103
- <!-- END Content -->
104
-
105
- </div>
106
- </div>
107
- <!-- END Modal Top Search -->
108
-
109
- </div>
110
-
111
- {% comment %} END Modal Google Translator dialog (en-EN)
112
- -------------------------------------------------------------------------------- {% endcomment %}
113
-
114
- {% endcapture %}
115
-
116
- {% if production %}
117
- {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
118
- {% else %}
119
- {{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
120
- {% endif %}
121
- {% assign cache = nil %}