j1-template 2023.2.4 → 2023.2.6
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/procedures/collections/create_collection_article_preview.proc +1 -1
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_calendar.proc +4 -2
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +3 -3
- data/_layouts/default.html +1 -1
- data/assets/data/banner.html +2 -2
- data/assets/themes/j1/adapter/js/attic.js +66 -60
- data/assets/themes/j1/adapter/js/carousel.js +5 -1
- data/assets/themes/j1/adapter/js/dropdowns.js +5 -1
- data/assets/themes/j1/adapter/js/fab.js +5 -1
- data/assets/themes/j1/adapter/js/justifiedGallery.js +5 -1
- data/assets/themes/j1/adapter/js/masterslider.js +5 -3
- 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/attics.yml +3 -23
- data/lib/starter_web/_data/modules/defaults/attics.yml +7 -1
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/placeholder/1x1.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/placeholder/transparent-1920x1280.png +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +0 -1
- data/lib/starter_web/index.html +3 -4
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +4 -0
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +4 -0
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +4 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4d458f72e08d1d546dbb575681f126ef4ba6b344b6835ce85cfc3d12b95744f
|
4
|
+
data.tar.gz: 7f766fa24c59e2ffb9d849cfeaa245364fb8c3c925a2605b56e275109f360158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d050416e397b5bc4a59fda4375bca910cfee934222188b817428a09e9897398ddcafc6abe5219de6ce3be47e1c78c30586ea1332142344d83057dc360a66d21
|
7
|
+
data.tar.gz: c5fc4c37a25784353e66216091c05e8a93654b88119eb1e31aae66a1b390904dac8c19de76a932b2e0ea2fa51c7e7fd527c38973d7e36272962a86e5567d8c9a
|
@@ -174,7 +174,7 @@ NO need to load this again
|
|
174
174
|
{% if resource_settings.pass_init_data %}
|
175
175
|
|
176
176
|
// [INFO ] [j1.layout.module_writer.proc ] [ pass init data for: {{resource_settings.id}} ]
|
177
|
-
{% capture settings %}{"layout": "{{page.layout}}", "fab_menu_id": "{{page.fab_menu_id}}", "scrollbar": "{{page.scrollbar}}", "toc": "{{page.toc}}", "comments": "{{page.comments}}", "scrollDynamicPagesTopOnChange": "{{page.scrollDynamicPagesTopOnChange}}"}{% endcapture %}
|
177
|
+
{% capture settings %}{"layout": "{{page.layout}}", "title": "{{page.title}}", "tagline": "{{page.tagline}}", "fab_menu_id": "{{page.fab_menu_id}}", "scrollbar": "{{page.scrollbar}}", "toc": "{{page.toc}}", "comments": "{{page.comments}}", "scrollDynamicPagesTopOnChange": "{{page.scrollDynamicPagesTopOnChange}}"}{% endcapture %}
|
178
178
|
var settings = $.extend({}, {{settings}});
|
179
179
|
|
180
180
|
{% comment %} create resource_settings.dependencies (if any)
|
@@ -120,7 +120,9 @@
|
|
120
120
|
|
121
121
|
<i class="tmicon rounded-x hidden-xs"></i>
|
122
122
|
<div class="tmlabel">
|
123
|
-
<a href="{{post.url}}
|
123
|
+
<a href="{{post.url}}">
|
124
|
+
<div class="calendar-headline"><h4 id="{{ 100000 | rand }}">{{ post.title }}</h4></div>
|
125
|
+
</a>
|
124
126
|
<div class="row">
|
125
127
|
<!-- Collect image data from frontmatter -->
|
126
128
|
{% if post.image %}
|
@@ -218,4 +220,4 @@
|
|
218
220
|
{% endif %}
|
219
221
|
|
220
222
|
<!-- Reset procedure variable -->
|
221
|
-
{% assign posts_collate = nil %}
|
223
|
+
{% assign posts_collate = nil %}
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
<div class="card-footer r-text-200 text-lowercase">
|
178
178
|
|
179
|
-
<a href="{{post.url}}
|
179
|
+
<a href="{{post.url}}"
|
180
180
|
class="btn btn-secondary btn-flex mb-0">
|
181
181
|
<i class="mdi mdi-eye mdi-lg mr-1" style="color:#FFFFFF;">
|
182
182
|
</i> {{readmore_text}} · {{post.tagline}}
|
@@ -198,7 +198,7 @@
|
|
198
198
|
</div>
|
199
199
|
<div class="card-footer r-text-200 text-lowercase">
|
200
200
|
|
201
|
-
<a href="{{post.url}}
|
201
|
+
<a href="{{post.url}}"
|
202
202
|
class="btn btn-secondary btn-flex mb-0">
|
203
203
|
<i class="mdi mdi-eye mdi-lg mr-1" style="color:#FFFFFF;">
|
204
204
|
</i> {{readmore_text}} · {{post.tagline}}
|
@@ -261,7 +261,7 @@
|
|
261
261
|
<span class="sr-tags">{{tags}}</span>
|
262
262
|
</p>
|
263
263
|
<a class="card-link text-lowercase"
|
264
|
-
href="{{post.url}}
|
264
|
+
href="{{post.url}}">
|
265
265
|
{{readmore_text}} · {{post.tagline}}
|
266
266
|
</a>
|
267
267
|
</div>
|
data/_layouts/default.html
CHANGED
@@ -199,7 +199,7 @@ debug: false
|
|
199
199
|
<!-- [INFO ] [j1.layout.default.html ] [ place wrapper to prevent "DOM flicker" ] -->
|
200
200
|
<!-- [INFO ] [j1.layout.default.html ] [ make page hidden (suppress flicker) ] -->
|
201
201
|
<!-- [INFO ] [j1.layout.default.html ] [ suppress page overflows (overflow: hidden) ] -->
|
202
|
-
<!--
|
202
|
+
<!-- [INFO ] [j1.layout.default.html ] [ hide page (display: none) on id "no_flicker" ] -->
|
203
203
|
<div id="no_flicker" style="overflow: hidden; display: none">
|
204
204
|
|
205
205
|
{% comment %} collect the BODY-NAVIGATION region
|
data/assets/data/banner.html
CHANGED
@@ -259,8 +259,8 @@ exclude_from_search: true
|
|
259
259
|
<img
|
260
260
|
class="sticker-image"
|
261
261
|
src="/assets/images/sticker/600x600/sticker-new-version.png"
|
262
|
-
alt="Get new version 2023.2.
|
263
|
-
title="Get new version 2023.2.
|
262
|
+
alt="Get new version 2023.2.6"
|
263
|
+
title="Get new version 2023.2.6"
|
264
264
|
style="width: 140px; height: 120px;"
|
265
265
|
>
|
266
266
|
</a>
|
@@ -144,9 +144,12 @@ j1.adapter.attic = (function (j1, window) {
|
|
144
144
|
var dependencies_met_page_ready = setInterval (function (options) {
|
145
145
|
var pageState = $('#no_flicker').css("display");
|
146
146
|
var pageVisible = (pageState == 'block') ? true: false;
|
147
|
-
|
147
|
+
|
148
|
+
// run on 'pageVisible'
|
149
|
+
//
|
150
|
+
if (pageVisible) {
|
148
151
|
{% if attic_options.enabled %}
|
149
|
-
logger.info('\n' + '
|
152
|
+
logger.info('\n' + 'module initializaton: started');
|
150
153
|
|
151
154
|
if (atticOptions.hide_oninit) {
|
152
155
|
// hide page while attic is being created
|
@@ -184,15 +187,14 @@ j1.adapter.attic = (function (j1, window) {
|
|
184
187
|
{% if item.attic.enabled %}
|
185
188
|
{% assign attic_id = item.attic.id %}
|
186
189
|
|
187
|
-
// Create
|
188
|
-
|
190
|
+
// Create RUNNER for id: {{attic_id}}
|
191
|
+
//
|
192
|
+
function {{attic_id}}_runner (atticOptions) {
|
189
193
|
var atticOptionsFilters = {};
|
190
194
|
var atticItemFilters = {};
|
191
195
|
var atticFilters = {};
|
192
196
|
var my_attic = $.extend({}, {{item.attic | replace: 'nil', 'null' | replace: '=>', ':' }});
|
193
197
|
|
194
|
-
logger.info('\n' + 'initialize attic on id: {{attic_id}}');
|
195
|
-
|
196
198
|
// collect attic filter settings to object to array to string
|
197
199
|
//
|
198
200
|
{% if item.attic.filters %}
|
@@ -209,7 +211,8 @@ j1.adapter.attic = (function (j1, window) {
|
|
209
211
|
});
|
210
212
|
filterStr = filterArray.join(' ');
|
211
213
|
|
212
|
-
//
|
214
|
+
// fire backstretch for all slides on attic_id
|
215
|
+
//
|
213
216
|
if ($('#{{attic_id}}').length) {
|
214
217
|
$('#{{attic_id}}').backstretch(
|
215
218
|
atticOptions.slides, {
|
@@ -258,9 +261,9 @@ j1.adapter.attic = (function (j1, window) {
|
|
258
261
|
);
|
259
262
|
}
|
260
263
|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
+
// run callback backstretch.before
|
265
|
+
//
|
266
|
+
$(window).on('backstretch.before', function (e, instance, index) {
|
264
267
|
var evt = e;
|
265
268
|
var inst = instance;
|
266
269
|
var idx = index;
|
@@ -295,11 +298,12 @@ j1.adapter.attic = (function (j1, window) {
|
|
295
298
|
j1.adapter.particles.init();
|
296
299
|
}
|
297
300
|
|
298
|
-
}); // END
|
301
|
+
}); // // END callback backstretch.before
|
299
302
|
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
+
// run callback backstretch.after
|
304
|
+
// NOTE: add a 'caption' or 'badge' if configured
|
305
|
+
// SEE: https://github.com/jquery-backstretch/jquery-backstretch/issues/194
|
306
|
+
//
|
303
307
|
$(window).on('backstretch.after', function (e, instance, index) {
|
304
308
|
var textOverlayTitle = instance.images[index].title
|
305
309
|
var textOverlayTagline = instance.images[index].tagline;
|
@@ -307,8 +311,8 @@ j1.adapter.attic = (function (j1, window) {
|
|
307
311
|
var frontmatterOptions = _this.frontmatterOptions;
|
308
312
|
var textOverlayHTML;
|
309
313
|
|
310
|
-
// apply
|
311
|
-
//
|
314
|
+
// apply FRONTMATTER settings for title|tagline if
|
315
|
+
// NOT set with the FIRST backstretch (image) instance
|
312
316
|
//
|
313
317
|
if (index == 0) {
|
314
318
|
if (typeof instance.images[index].title == 'undefined') {
|
@@ -361,9 +365,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
361
365
|
|
362
366
|
}
|
363
367
|
|
364
|
-
// TODO: Add additional styles to head-title-text|head-tagline-
|
365
|
-
// text (e.g. text-center)
|
366
|
-
// atticOptions.tagline_align
|
368
|
+
// TODO: Add additional styles to head-title-text|head-tagline (e.g. text-center)
|
367
369
|
//
|
368
370
|
textOverlayHTML = ''
|
369
371
|
+ '<div id="head-title" class="head-title animate__animated ">'
|
@@ -373,7 +375,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
373
375
|
+ ' <h3 id="head-tagline-text" class="notoc text-' + atticOptions.tagline_align + '">' + textOverlayTagline + '</h3>'
|
374
376
|
+ '</div>';
|
375
377
|
|
376
|
-
// hide textOverlay while animate classes are being
|
378
|
+
// hide textOverlay while animate classes are being applied
|
377
379
|
//
|
378
380
|
$('.textOverlay').html(textOverlayHTML).hide();
|
379
381
|
|
@@ -423,21 +425,19 @@ j1.adapter.attic = (function (j1, window) {
|
|
423
425
|
|
424
426
|
_this.setState('finished');
|
425
427
|
logger.debug('\n' + 'state: ' + _this.getState());
|
426
|
-
logger.info('\n' + '
|
427
|
-
|
428
|
+
logger.info('\n' + 'initialize attic on id {{attic_id}}: finished');
|
429
|
+
logger.info('\n' + 'module initializaton: finished');
|
430
|
+
|
431
|
+
}); // END callback backstretch.after
|
428
432
|
|
429
433
|
} // END if attic_id exists
|
430
434
|
|
431
|
-
//
|
435
|
+
// run attic found in page: {{attic_id}}
|
436
|
+
//
|
432
437
|
if ($('#{{attic_id}}').length) {
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
{% comment %} NOTE:
|
438
|
-
Unclear why title_size|tagline_size evaluated to 1 if NOT set
|
439
|
-
------------------------------------------------------------------- {% endcomment %}
|
440
|
-
|
438
|
+
// apply CSS styles
|
439
|
+
// NOTE: unclear why title_size|tagline_size evaluated to 1 if NOT set
|
440
|
+
//
|
441
441
|
{% for item in attic_options.attics %}
|
442
442
|
{% if item.attic.id == attic_id %}
|
443
443
|
|
@@ -535,10 +535,12 @@ j1.adapter.attic = (function (j1, window) {
|
|
535
535
|
}
|
536
536
|
/* eslint-enable */
|
537
537
|
|
538
|
-
//
|
538
|
+
// merge|overload Attic OPTIONS
|
539
|
+
//
|
539
540
|
atticOptions = $.extend({}, atticOptions, atticOptionsHeader, atticOptionsBackstretch);
|
540
541
|
|
541
|
-
//
|
542
|
+
// overload Attic OPTIONS by settings from frontmatterOptions
|
543
|
+
//
|
542
544
|
if (frontmatterOptions.background_color_1) atticOptions.background_color_1 = frontmatterOptions.background_color_1;
|
543
545
|
if (frontmatterOptions.background_color_2) atticOptions.background_color_2 = frontmatterOptions.background_color_2;
|
544
546
|
{% else %}
|
@@ -546,8 +548,8 @@ j1.adapter.attic = (function (j1, window) {
|
|
546
548
|
{% endif %} // ENDIF attic_id
|
547
549
|
{% endfor %} // ENDFOR item in header_config.attics
|
548
550
|
|
549
|
-
|
550
|
-
|
551
|
+
// frontmatter takes precedence (over header options)
|
552
|
+
//
|
551
553
|
if (frontmatterOptions) {
|
552
554
|
if (typeof frontmatterOptions.raised_level != 'undefined') { atticOptions.raised_level = frontmatterOptions.raised_level; }
|
553
555
|
if (typeof frontmatterOptions.r_text != 'undefined') { atticOptions.r_text = frontmatterOptions.r_text; }
|
@@ -590,11 +592,11 @@ j1.adapter.attic = (function (j1, window) {
|
|
590
592
|
if (typeof frontmatterOptions.slides != 'undefined') { atticOptions.slides = frontmatterOptions.slides; }
|
591
593
|
}
|
592
594
|
|
593
|
-
|
594
|
-
|
595
|
+
// add r-text|raised_level settings
|
596
|
+
//
|
595
597
|
if (atticOptions.r_text == 'enabled') { $('#{{attic_id}}').addClass('r-text'); }
|
596
|
-
|
597
598
|
var raised_level = 'raised-z' +atticOptions.raised_level;
|
599
|
+
|
598
600
|
$('#{{attic_id}}').addClass(raised_level);
|
599
601
|
$('#head-title').addClass(atticOptions.title_animate);
|
600
602
|
$('#head-title').addClass(atticOptions.title_animate_delay);
|
@@ -612,11 +614,12 @@ j1.adapter.attic = (function (j1, window) {
|
|
612
614
|
$('#{{attic_id}}').addClass('notranslate');
|
613
615
|
}
|
614
616
|
|
615
|
-
|
616
|
-
|
617
|
+
// add header CSS styles to <HEAD>
|
618
|
+
//
|
617
619
|
var attic_style = '';
|
618
620
|
|
619
|
-
//
|
621
|
+
// initialze header background gradient
|
622
|
+
//
|
620
623
|
attic_style += '<style> .attic { ';
|
621
624
|
attic_style += 'background-image: -webkit-gradient(linear, left top, left bottom, from(' +atticOptions.background_color_1 + '), to(' +atticOptions.background_color_2+ ')) !important;';
|
622
625
|
attic_style += 'background-image: -webkit-linear-gradient(top, ' +atticOptions.background_color_1 + ' 0%, ' +atticOptions.background_color_2 + ' 100%) !important;';
|
@@ -648,6 +651,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
648
651
|
|
649
652
|
// Add opacity to ALL header (backstretch) images
|
650
653
|
// See: https://tympanus.net/codrops/2013/11/07/css-overlay-techniques/
|
654
|
+
//
|
651
655
|
var item_opacity = !!my_attic.opacity ? my_attic.opacity : atticOptions.opacity;
|
652
656
|
var backstretch_opacity = '<style> .backstretch-item { opacity: ' +item_opacity+ '; </style>';
|
653
657
|
$('head').append(backstretch_opacity);
|
@@ -655,36 +659,38 @@ j1.adapter.attic = (function (j1, window) {
|
|
655
659
|
_this.setState('initialized');
|
656
660
|
logger.debug('\n' + 'state: ' + _this.getState());
|
657
661
|
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
});
|
668
|
-
}
|
669
|
-
|
662
|
+
// start RUNNER on page 'ready'|module state 'initialized'
|
663
|
+
//
|
664
|
+
$(function() {
|
665
|
+
var dependencies_met_attic_ready = setInterval (function (options) {
|
666
|
+
if (_this.getState() === 'initialized') {
|
667
|
+
logger.info('\n' + 'initialize attic on id {{attic_id}}: started');
|
668
|
+
{{attic_id}}_runner (atticOptions);
|
669
|
+
clearInterval(dependencies_met_attic_ready);
|
670
|
+
}
|
671
|
+
}, 25);
|
672
|
+
});
|
673
|
+
|
674
|
+
} // END apply CSS styles|start ATTIC RUNNER
|
670
675
|
|
671
676
|
{% else %}
|
672
677
|
{% assign attic_id = item.attic.id %}
|
673
678
|
// add additional top space
|
674
679
|
$('#content').addClass('mt-8');
|
675
|
-
logger.info('\n' + '
|
680
|
+
logger.info('\n' + 'attic on id {{attic_id}}: disabled');
|
676
681
|
{% endif %} // END if header enabled
|
677
682
|
{% endfor %} // END for item in header_config.attics
|
678
683
|
|
679
684
|
// NO header found in page
|
680
|
-
if ($('#no_header').length) {
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
}
|
685
|
+
// if ($('#no_header').length) {
|
686
|
+
// _this.setState('completed');
|
687
|
+
// logger.debug('\n' + 'state: ' + _this.getState());
|
688
|
+
// logger.warn('\n' + 'no header configured or found in page');
|
689
|
+
// }
|
685
690
|
|
686
691
|
return true;
|
687
|
-
|
692
|
+
|
693
|
+
}, // END apply CSS styles|start ATTIC RUNNER
|
688
694
|
|
689
695
|
// -------------------------------------------------------------------------
|
690
696
|
// messageHandler: MessageHandler for J1 CookieConsent module
|
@@ -131,7 +131,11 @@ j1.adapter.carousel = (function (j1, window) {
|
|
131
131
|
carouselOptions = $.extend(true, {}, carouselDefaults, carouselSettings);
|
132
132
|
|
133
133
|
var dependencies_met_page_finished = setInterval(function() {
|
134
|
-
|
134
|
+
var pageState = $('#no_flicker').css("display");
|
135
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
136
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
137
|
+
|
138
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
135
139
|
|
136
140
|
_this.setState('started');
|
137
141
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -130,7 +130,11 @@ j1.adapter.dropdowns = (function (j1, window) {
|
|
130
130
|
logger.info('\n' + 'module is being initialized');
|
131
131
|
|
132
132
|
var dependencies_met_j1_finished = setInterval(function() {
|
133
|
-
|
133
|
+
var pageState = $('#no_flicker').css("display");
|
134
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
135
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
136
|
+
|
137
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
134
138
|
var elms = document.querySelectorAll('.dropdowns');
|
135
139
|
|
136
140
|
// -------------------------------------------------------------------
|
@@ -154,7 +154,11 @@ j1.adapter.fab = (function (j1, window) {
|
|
154
154
|
_this['moduleOptions'] = fabOptions;
|
155
155
|
|
156
156
|
var dependencies_met_navigator = setInterval(function() {
|
157
|
-
|
157
|
+
var pageState = $('#no_flicker').css("display");
|
158
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
159
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
160
|
+
|
161
|
+
if (j1.adapter.navigator.getState() == 'finished' && pageVisible && atticFinished) {
|
158
162
|
logger.debug('\n' + 'met dependencies for: navigator');
|
159
163
|
_this.fabLoader(fabOptions);
|
160
164
|
clearInterval(dependencies_met_navigator);
|
@@ -130,7 +130,11 @@ j1.adapter.justifiedGallery = (function (j1, window) {
|
|
130
130
|
logger = log4javascript.getLogger('j1.adapter.justifiedGallery');
|
131
131
|
|
132
132
|
var dependencies_met_j1_finished= setInterval(function() {
|
133
|
-
|
133
|
+
var pageState = $('#no_flicker').css("display");
|
134
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
135
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
136
|
+
|
137
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
134
138
|
// initialize state flag
|
135
139
|
_this.setState('started');
|
136
140
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -160,9 +160,11 @@ j1.adapter.masterslider = (function (j1, window) {
|
|
160
160
|
|
161
161
|
// load the slider manager to DISPLAY instances in page (if visible)
|
162
162
|
var dependencies_met_module_finished = setInterval(function() {
|
163
|
-
var pageState
|
164
|
-
var pageVisible
|
165
|
-
|
163
|
+
var pageState = $('#no_flicker').css("display");
|
164
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
165
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
166
|
+
|
167
|
+
if (_this.getState() == 'sliders_initialized' && pageVisible && atticFinished) {
|
166
168
|
// TODO: Check why a timeout is required to load the Slider Manager
|
167
169
|
setTimeout (function() {
|
168
170
|
if (sliderManager) document.body.appendChild(msSliderManager);
|
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.2.
|
382
|
+
2023-02-28 18:12:12 - GENERATE: Using j1-template 2023.2.6
|
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.2.
|
418
|
+
2023-02-28 18:17:49 - SETUP: > j1@2023.2.6 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.2.
|
463
|
+
2023-02-28 18:26:18 - SITE: > j1@2023.2.6 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.2.
|
502
|
+
2023-02-28 18:45:09 - REBUILD: > j1@2023.2.6 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.2.
|
550
|
+
2023-02-28 18:29:08 - RESET: > j1@2023.2.6 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.2.
|
56
|
+
version: 2023.2.6
|
57
57
|
|
58
58
|
# copyright
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -62,20 +62,20 @@ settings:
|
|
62
62
|
padding_top: 600
|
63
63
|
|
64
64
|
# --------------------------------------------------------------------------
|
65
|
-
#
|
65
|
+
# Pages
|
66
66
|
#
|
67
67
|
- name: Pages
|
68
68
|
attic:
|
69
69
|
enabled: true
|
70
70
|
|
71
71
|
id: attic_page
|
72
|
-
layout:
|
72
|
+
layout: page
|
73
73
|
|
74
74
|
title_animate: animate__fadeInDown
|
75
75
|
padding_top: 600
|
76
76
|
|
77
77
|
# --------------------------------------------------------------------------
|
78
|
-
#
|
78
|
+
# Posts
|
79
79
|
#
|
80
80
|
- name: Posts
|
81
81
|
attic:
|
@@ -87,25 +87,5 @@ settings:
|
|
87
87
|
title_animate: animate__fadeInDown
|
88
88
|
padding_top: 600
|
89
89
|
|
90
|
-
# --------------------------------------------------------------------------
|
91
|
-
# Attic Raw
|
92
|
-
#
|
93
|
-
- name: Raw
|
94
|
-
attic:
|
95
|
-
enabled: true
|
96
|
-
|
97
|
-
id: attic_raw
|
98
|
-
layout: [ raw ]
|
99
|
-
|
100
|
-
# --------------------------------------------------------------------------
|
101
|
-
# Attic Text
|
102
|
-
#
|
103
|
-
- name: Text
|
104
|
-
attic:
|
105
|
-
enabled: true
|
106
|
-
|
107
|
-
id: attic_text
|
108
|
-
layout: [ app ]
|
109
|
-
|
110
90
|
# ------------------------------------------------------------------------------
|
111
91
|
# END config
|
@@ -42,7 +42,7 @@ defaults:
|
|
42
42
|
# Global settings for text- and image-based header
|
43
43
|
#
|
44
44
|
debug: false
|
45
|
-
hide_oninit:
|
45
|
+
hide_oninit: false
|
46
46
|
|
47
47
|
circuit: false
|
48
48
|
notranslate: true
|
@@ -84,6 +84,12 @@ defaults:
|
|
84
84
|
background_color_1: "#0D47A1" # md-blue-900
|
85
85
|
background_color_2: "#0D47A1" # md-blue-900
|
86
86
|
|
87
|
+
# placeholder slide, used if NO slides given in FRONTMATTER (of a page|post)
|
88
|
+
#
|
89
|
+
slides:
|
90
|
+
- url: /assets/images/modules/attics/placeholder/transparent-1920x1280.png
|
91
|
+
alt: Placeholder background image
|
92
|
+
|
87
93
|
# CSS filter setting applied on (backstretch|background) image
|
88
94
|
#
|
89
95
|
filters:
|
@@ -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.2.
|
60
|
+
<template_version>2023.2.6</template_version>
|
61
61
|
|
62
62
|
{% assign title = site.title | default: site.name %}
|
63
63
|
{% if page.collection != "posts" %}
|
Binary file
|
Binary file
|
data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb
CHANGED
@@ -8,7 +8,7 @@ description: >
|
|
8
8
|
files that make up your website, which can be hosted on any web server.
|
9
9
|
Jekyll is built with Ruby and requires basic command line knowledge.
|
10
10
|
|
11
|
-
categories: [
|
11
|
+
categories: [ Jekyll ]
|
12
12
|
tags: [ J1, Jekyll ]
|
13
13
|
|
14
14
|
image:
|
@@ -70,7 +70,6 @@ As a result, the site creation process gets out of your way.
|
|
70
70
|
|
71
71
|
// Include sub-documents (if any)
|
72
72
|
// -----------------------------------------------------------------------------
|
73
|
-
[[readmore]]
|
74
73
|
== What is a static site?
|
75
74
|
|
76
75
|
A static site serves the content straight to the user as it is stored on
|
data/lib/starter_web/index.html
CHANGED
@@ -100,15 +100,14 @@ accordion:
|
|
100
100
|
transition does limit overflow.
|
101
101
|
|
102
102
|
resources: [ animate, iconify, scroller ]
|
103
|
+
# resource_options: []
|
103
104
|
resource_options:
|
104
105
|
- attic:
|
105
|
-
# padding_top: 800
|
106
|
-
# opacity: 0.8
|
107
106
|
slides:
|
108
107
|
- url: /assets/images/modules/attics/1920x1280/kristopher-roller.jpg
|
109
108
|
alt: Photo by Kristopher Roller on Unsplash
|
110
|
-
|
111
|
-
|
109
|
+
# title: Starter
|
110
|
+
# tagline: Build-In Theme
|
112
111
|
badge:
|
113
112
|
type: unsplash
|
114
113
|
author: Kristopher Roller
|
@@ -63,6 +63,10 @@ Find below all available articles the `Booskhelf` collections contains.
|
|
63
63
|
The content is automatically generated and taken from the articles the
|
64
64
|
collections contains.
|
65
65
|
|
66
|
+
NOTE: *Resize* the browser window to see the `masonry` module, applied on
|
67
|
+
this page, in action. All elements gets automatically *re-ordered* to fit
|
68
|
+
the grid positions calculated by the module.
|
69
|
+
|
66
70
|
// Include sub-documents (if any)
|
67
71
|
// -----------------------------------------------------------------------------
|
68
72
|
== Available Books
|
@@ -63,6 +63,10 @@ now gone mainstream in a big way, from the mega-popular Harry Potter series
|
|
63
63
|
capturing the world's attention for a decade; brought Fantasy to readers of
|
64
64
|
all ages.
|
65
65
|
|
66
|
+
NOTE: *Resize* the browser window to see the `masonry` module, applied on
|
67
|
+
this page, in action. All elements gets automatically *re-ordered* to fit
|
68
|
+
the grid positions calculated by the module.
|
69
|
+
|
66
70
|
// Include sub-documents (if any)
|
67
71
|
// -----------------------------------------------------------------------------
|
68
72
|
== Available Books
|
@@ -64,6 +64,10 @@ two people overcome adversity to obtain their happily ever after. According to
|
|
64
64
|
the Romance Writers of America, women count for 82% percent of the genre’s
|
65
65
|
readership.
|
66
66
|
|
67
|
+
NOTE: *Resize* the browser window to see the `masonry` module, applied on
|
68
|
+
this page, in action. All elements gets automatically *re-ordered* to fit
|
69
|
+
the grid positions calculated by the module.
|
70
|
+
|
67
71
|
// Include sub-documents (if any)
|
68
72
|
// -----------------------------------------------------------------------------
|
69
73
|
== Available Books
|
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.2.
|
4
|
+
version: 2023.2.6
|
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-05-
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -2113,6 +2113,8 @@ files:
|
|
2113
2113
|
- lib/starter_web/assets/images/modules/attics/matthaeus-1920x1280.jpg
|
2114
2114
|
- lib/starter_web/assets/images/modules/attics/matthew-dockery-1920x1280.jpg
|
2115
2115
|
- lib/starter_web/assets/images/modules/attics/no-time-1920x1280.jpg
|
2116
|
+
- lib/starter_web/assets/images/modules/attics/placeholder/1x1.png
|
2117
|
+
- lib/starter_web/assets/images/modules/attics/placeholder/transparent-1920x1280.png
|
2116
2118
|
- lib/starter_web/assets/images/modules/attics/rirri-1920x1280.jpg
|
2117
2119
|
- lib/starter_web/assets/images/modules/attics/shubham-dhage-1920x1280.jpg
|
2118
2120
|
- lib/starter_web/assets/images/modules/attics/shutterstock_sponsor-1920x1280.jpg
|