j1-template 2023.1.0 → 2023.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_collection.html +2 -3
  3. data/assets/data/banner.html +8 -6
  4. data/assets/data/masonry.html +263 -73
  5. data/assets/data/slick.html +155 -59
  6. data/assets/error_pages/HTTP204.html +1 -1
  7. data/assets/error_pages/HTTP400.html +1 -1
  8. data/assets/error_pages/HTTP401.html +1 -1
  9. data/assets/error_pages/HTTP403.html +1 -1
  10. data/assets/error_pages/HTTP404.html +1 -1
  11. data/assets/error_pages/HTTP444.html +1 -1
  12. data/assets/error_pages/HTTP445.html +1 -1
  13. data/assets/error_pages/HTTP446.html +1 -1
  14. data/assets/error_pages/HTTP447.html +1 -1
  15. data/assets/error_pages/HTTP448.html +1 -1
  16. data/assets/error_pages/HTTP500.html +1 -1
  17. data/assets/error_pages/HTTP501.html +1 -1
  18. data/assets/error_pages/HTTP502.html +1 -1
  19. data/assets/error_pages/HTTP503.html +1 -1
  20. data/assets/themes/j1/adapter/js/masonry.js +9 -1
  21. data/assets/themes/j1/adapter/js/slick.js +239 -134
  22. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +247 -0
  23. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  24. data/assets/themes/j1/core/js/template.js +55 -57
  25. data/assets/themes/j1/core/js/template.min.js +6 -6
  26. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  27. data/assets/themes/j1/modules/masonry/css/theme/uno.css +1 -1
  28. data/assets/themes/j1/modules/masonry/css/theme/uno.min.css +1 -1
  29. data/assets/themes/j1/modules/slick/lightbox/README.md +6 -1
  30. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +36 -0
  31. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +15 -0
  32. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.js +1 -1
  33. data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +173 -137
  34. data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
  35. data/assets/themes/j1/modules/slick/slider/js/slick.js +2970 -2233
  36. data/assets/themes/j1/modules/translator/css/translator.css +3 -19
  37. data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
  38. data/lib/j1/version.rb +1 -1
  39. data/lib/starter_web/Gemfile +2 -2
  40. data/lib/starter_web/README.md +5 -5
  41. data/lib/starter_web/_config.yml +25 -1
  42. data/lib/starter_web/_data/blocks/banner.yml +45 -46
  43. data/lib/starter_web/_data/blocks/panel.yml +9 -9
  44. data/lib/starter_web/_data/layouts/home.yml +39 -21
  45. data/lib/starter_web/_data/modules/defaults/slick.yml +2 -2
  46. data/lib/starter_web/_data/modules/masonry.yml +154 -41
  47. data/lib/starter_web/_data/modules/navigator_menu.yml +45 -4
  48. data/lib/starter_web/_data/modules/scroller.yml +1 -1
  49. data/lib/starter_web/_data/modules/slick.yml +260 -54
  50. data/lib/starter_web/_data/puma/config.rb +10 -0
  51. data/lib/starter_web/_data/resources.yml +1 -0
  52. data/lib/starter_web/_data/templates/feed.xml +1 -1
  53. data/lib/starter_web/_includes/attributes.asciidoc +24 -0
  54. data/lib/starter_web/_includes/custom/static/readme +1 -1
  55. data/lib/starter_web/_includes/custom/templates/collection_panel.html +131 -0
  56. data/lib/starter_web/_includes/custom/templates/custom_header.html +98 -76
  57. data/lib/starter_web/_includes/custom/templates/people_panel.html +144 -0
  58. data/lib/starter_web/_includes/custom/templates/readme +1 -1
  59. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +1 -1
  60. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +1 -1
  61. data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +1 -1
  62. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
  63. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
  64. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
  65. data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +10 -0
  66. data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +44 -0
  67. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +1 -1
  68. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  69. data/lib/starter_web/assets/images/collections/people/diana-petersen.jpg +0 -0
  70. data/lib/starter_web/assets/images/collections/people/larry-parker.jpg +0 -0
  71. data/lib/starter_web/assets/images/collections/people/parveen-anand.jpg +0 -0
  72. data/lib/starter_web/assets/images/modules/attics/1920x1280/kelly-sikkemal.jpg +0 -0
  73. data/lib/starter_web/assets/images/modules/attics/1920x1280/kira-auf-der-heide.jpg +0 -0
  74. data/lib/starter_web/assets/images/modules/gallery/old_times/image_02.jpg +0 -0
  75. data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +5 -5
  76. data/lib/starter_web/collections/_biography/becoming.adoc +5 -5
  77. data/lib/starter_web/collections/_biography/born-to-run.adoc +5 -5
  78. data/lib/starter_web/collections/_biography/forty-autumns.adoc +5 -5
  79. data/lib/starter_web/collections/_biography/not-dead-yet.adoc +5 -6
  80. data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +5 -5
  81. data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +6 -7
  82. data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +14 -4
  83. data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +13 -3
  84. data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +11 -3
  85. data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +15 -3
  86. data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +11 -3
  87. data/lib/starter_web/collections/_fantasy/terry-pratchet-diary-2017.adoc +11 -3
  88. data/lib/starter_web/collections/_people/diana-petersen.adoc +167 -0
  89. data/lib/starter_web/collections/_people/larry-parker.adoc +167 -0
  90. data/lib/starter_web/collections/_people/parveen-anand.adoc +167 -0
  91. data/lib/starter_web/collections/_portfolio/branding.adoc +97 -0
  92. data/lib/starter_web/collections/_portfolio/graphic_design.adoc +97 -0
  93. data/lib/starter_web/collections/_portfolio/identity.adoc +99 -0
  94. data/lib/starter_web/collections/_portfolio/illustration.adoc +101 -0
  95. data/lib/starter_web/collections/_portfolio/photography.adoc +100 -0
  96. data/lib/starter_web/collections/_portfolio/web_design.adoc +109 -0
  97. data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes-a.adoc +12 -3
  98. data/lib/starter_web/collections/_romance/dressmaker-the.adoc +10 -3
  99. data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +13 -3
  100. data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +11 -3
  101. data/lib/starter_web/collections/_romance/outlander-novel.adoc +12 -3
  102. data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +16 -4
  103. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +1 -1
  104. data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +2 -2
  105. data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
  106. data/lib/starter_web/collections/posts/public/series/_posts/2022-08-01-organize-your-life.adoc +4 -4
  107. data/lib/starter_web/collections/posts/public/series/_posts/2022-08-02-organize-your-life.adoc +4 -4
  108. data/lib/starter_web/collections/posts/public/series/_posts/2022-08-03-organize-your-life.adoc +4 -4
  109. data/lib/starter_web/collections/posts/public/series/_posts/2022-09-01-organize-your-life.adoc +4 -4
  110. data/lib/starter_web/collections/posts/public/series/_posts/2022-09-02-organize-your-life.adoc +4 -4
  111. data/lib/starter_web/index.html +129 -129
  112. data/lib/starter_web/package.json +1 -1
  113. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  114. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  115. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +107 -0
  116. data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_biography.adoc +21 -12
  117. data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_fantasy.adoc +11 -6
  118. data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_romance.adoc +11 -5
  119. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
  120. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +53 -4
  121. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +1 -1
  122. data/lib/starter_web/pages/public/plans/plans.adoc +25 -12
  123. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +54 -82
  124. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  125. data/lib/starter_web/utilsrv/package.json +1 -1
  126. metadata +59 -79
  127. data/assets/data/masonry.4.html +0 -213
  128. data/assets/themes/j1/adapter/js/slick.3.js +0 -365
  129. data/lib/starter_web/assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg +0 -0
  130. data/lib/starter_web/assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg +0 -0
  131. data/lib/starter_web/assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg +0 -0
  132. data/lib/starter_web/assets/images/parsa/customers/200x150/img1.png +0 -0
  133. data/lib/starter_web/assets/images/parsa/customers/200x150/img2.png +0 -0
  134. data/lib/starter_web/assets/images/parsa/customers/200x150/img3.png +0 -0
  135. data/lib/starter_web/assets/images/parsa/customers/200x150/img4.png +0 -0
  136. data/lib/starter_web/assets/images/parsa/customers/200x150/img5.png +0 -0
  137. data/lib/starter_web/assets/images/parsa/customers/200x150/img6.png +0 -0
  138. data/lib/starter_web/assets/images/parsa/customers/200x150/img7.png +0 -0
  139. data/lib/starter_web/assets/images/parsa/customers/200x150/img8.png +0 -0
  140. data/lib/starter_web/assets/images/parsa/customers/200x150/img9.png +0 -0
  141. data/lib/starter_web/assets/images/parsa/customers/client-1.png +0 -0
  142. data/lib/starter_web/assets/images/parsa/customers/client-2.png +0 -0
  143. data/lib/starter_web/assets/images/parsa/customers/client-3.png +0 -0
  144. data/lib/starter_web/assets/images/parsa/customers/client-4.png +0 -0
  145. data/lib/starter_web/assets/images/parsa/customers/client-5.png +0 -0
  146. data/lib/starter_web/assets/images/parsa/customers/client-6.png +0 -0
  147. data/lib/starter_web/assets/images/parsa/customers/client-7.png +0 -0
  148. data/lib/starter_web/assets/images/parsa/icons/favicon.ico +0 -0
  149. data/lib/starter_web/assets/images/parsa/icons/icon.png +0 -0
  150. data/lib/starter_web/assets/images/parsa/icons/icon.svg +0 -152
  151. data/lib/starter_web/assets/images/parsa/icons/logo.svg +0 -172
  152. data/lib/starter_web/assets/images/parsa/masthead/19-02-_2023_09-05-46.jpg +0 -0
  153. data/lib/starter_web/assets/images/parsa/masthead/banner-img.png +0 -0
  154. data/lib/starter_web/assets/images/parsa/pages/1920x1280/author.jpg +0 -0
  155. data/lib/starter_web/assets/images/parsa/pages/1920x1280/contact.jpg +0 -0
  156. data/lib/starter_web/assets/images/parsa/pages/author.jpg +0 -0
  157. data/lib/starter_web/assets/images/parsa/pages/contact.jpg +0 -0
  158. data/lib/starter_web/assets/images/parsa/partners/scalable/facebook.svg +0 -34
  159. data/lib/starter_web/assets/images/parsa/partners/scalable/google.svg +0 -35
  160. data/lib/starter_web/assets/images/parsa/partners/scalable/ibm.svg +0 -24
  161. data/lib/starter_web/assets/images/parsa/partners/scalable/microsoft.svg +0 -42
  162. data/lib/starter_web/assets/images/parsa/posts/1280x1024/post-img.jpg +0 -0
  163. data/lib/starter_web/assets/images/parsa/posts/1280x1024/post-single.jpg +0 -0
  164. data/lib/starter_web/assets/images/parsa/promo/home/screenshot.jpg +0 -0
  165. data/lib/starter_web/pages/public/previewer/preview_masonry.adoc +0 -361
  166. data/lib/starter_web/pages/public/previewer/preview_slick_slider.adoc +0 -375
  167. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/1.jpg +0 -0
  168. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/2.jpg +0 -0
  169. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/3.jpg +0 -0
  170. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/4.jpg +0 -0
  171. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/5.jpg +0 -0
  172. /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/6.jpg +0 -0
  173. /data/lib/starter_web/assets/images/{parsa/icons → icons/controls}/close-icon.svg +0 -0
  174. /data/lib/starter_web/assets/images/{parsa/icons → icons/controls}/up.svg +0 -0
  175. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/dynamic-web-access.png +0 -0
  176. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jamstack-generators.png +0 -0
  177. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.1200x400.png +0 -0
  178. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.png +0 -0
  179. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-1.jpg +0 -0
  180. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-2.jpg +0 -0
  181. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-3.jpg +0 -0
  182. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-4.jpg +0 -0
  183. /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-5.jpg +0 -0
  184. /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/static-web-access.png +0 -0
  185. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-1.jpg +0 -0
  186. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-10.jpg +0 -0
  187. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-11.jpg +0 -0
  188. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-12.jpg +0 -0
  189. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-13.jpg +0 -0
  190. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-2.jpg +0 -0
  191. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-3.jpg +0 -0
  192. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-4.jpg +0 -0
  193. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-5.jpg +0 -0
  194. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-6.jpg +0 -0
  195. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-7.jpg +0 -0
  196. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-8.jpg +0 -0
  197. /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-9.jpg +0 -0
  198. /data/lib/starter_web/assets/images/{parsa/posts → posts}/post-img.jpg +0 -0
  199. /data/lib/starter_web/assets/images/{parsa/posts → posts}/post-single.jpg +0 -0
  200. /data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/jekyll_collections.adoc +0 -0
@@ -1,365 +0,0 @@
1
- ---
2
- regenerate: true
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/themes/j1/adapter/js/slick.js
10
- # Liquid template to create the Template Adapter for J1 Slick
11
- #
12
- # Product/Info:
13
- # http://jekyll.one
14
- #
15
- # Copyright (C) 2023 Juergen Adams
16
- #
17
- # J1 Theme is licensed under the MIT License.
18
- # For details, see: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
19
- # -----------------------------------------------------------------------------
20
- # Test data:
21
- # {{ liquid_var | debug }}
22
- # cookie_options: {{ cookie_options | debug }}
23
- # -----------------------------------------------------------------------------
24
- {% endcomment %}
25
-
26
- {% comment %} Liquid var initialization
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
-
29
- {% comment %} Set config files
30
- -------------------------------------------------------------------------------- {% endcomment %}
31
- {% assign environment = site.environment %}
32
- {% assign blocks = site.data.blocks %}
33
- {% assign modules = site.data.modules %}
34
- {% assign template_config = site.data.j1_config %}
35
-
36
- {% comment %} Set config data
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- {% assign slick_defaults = modules.defaults.slick.defaults %}
39
- {% assign slick_settings = modules.slick.settings %}
40
-
41
- {% comment %} Set config options
42
- -------------------------------------------------------------------------------- {% endcomment %}
43
-
44
- {% comment %} Set variables
45
- -------------------------------------------------------------------------------- {% endcomment %}
46
-
47
- {% comment %} Detect prod mode
48
- -------------------------------------------------------------------------------- {% endcomment %}
49
- {% assign production = false %}
50
- {% if environment == 'prod' or environment == 'production' %}
51
- {% assign production = true %}
52
- {% endif %}
53
-
54
- /*
55
- # -----------------------------------------------------------------------------
56
- # ~/assets/themes/j1/adapter/js/slick.js
57
- # JS Adapter for J1 Slick
58
- #
59
- # Product/Info:
60
- # http://jekyll.one
61
- #
62
- # Copyright (C) 2023 Juergen Adams
63
- #
64
- # J1 Theme is licensed under MIT License.
65
- # See: https://github.com/jekyll-one/J1 Theme/blob/master/LICENSE
66
- # -----------------------------------------------------------------------------
67
- # Adapter generated: {{site.time}}
68
- # -----------------------------------------------------------------------------
69
- */
70
-
71
- // -----------------------------------------------------------------------------
72
- // ESLint shimming
73
- // -----------------------------------------------------------------------------
74
- /* eslint indent: "off" */
75
- /* eslint quotes: "off" */
76
- // -----------------------------------------------------------------------------
77
- 'use strict';
78
- j1.adapter.slick = (function (j1, window) {
79
- var environment = '{{environment}}';
80
- var responsiveSettings = [];
81
- var sliderResponsiveSettings = [];
82
- var _this;
83
- var logger;
84
- var logText;
85
- var slickDefaults;
86
- var slickSettings;
87
- var slickOptions;
88
- var sliderOptions;
89
- var sliderSettings;
90
-
91
- // ---------------------------------------------------------------------------
92
- // Helper functions
93
- // ---------------------------------------------------------------------------
94
-
95
- // ---------------------------------------------------------------------------
96
- // Main object
97
- // ---------------------------------------------------------------------------
98
- return {
99
-
100
- // -------------------------------------------------------------------------
101
- // Initializer
102
- // -------------------------------------------------------------------------
103
- init: function (options) {
104
- var xhrLoadState = 'pending'; // (initial) load state for the HTML portion of the slider
105
- var load_dependencies = {}; // dynamic variable
106
- var sliderResponsiveSettingsOBJ = {}; // initial object for responsive settings
107
- var dependency;
108
- var sliderResponsiveSettingsYAML;
109
- var sliderResponsiveSettingsSTRING;
110
-
111
- // -----------------------------------------------------------------------
112
- // Default module settings
113
- // -----------------------------------------------------------------------
114
- var settings = $.extend({
115
- module_name: 'j1.adapter.cookieConsent',
116
- generated: '{{site.time}}'
117
- }, options);
118
-
119
- // Load module DEFAULTS|CONFIG
120
- slickDefaults = $.extend({}, {{slick_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
121
- slickSettings = $.extend({}, {{slick_settings | replace: 'nil', 'null' | replace: '=>', ':' }});
122
- slickOptions = $.extend(true, {}, slickDefaults, slickSettings);
123
-
124
- // -----------------------------------------------------------------------
125
- // Global variable settings
126
- // -----------------------------------------------------------------------
127
- _this = j1.adapter.slick;
128
- logger = log4javascript.getLogger('j1.adapter.slick');
129
-
130
- _this.setState('started');
131
- logger.debug('\n' + 'state: ' + _this.getState());
132
- logger.info('\n' + 'module is being initialized');
133
-
134
- // load HTML portion for all sliders
135
- console.debug('loading HTML portion for all sliders configured');
136
- _this.loadSliderHTML(slickOptions, slickOptions.sliders);
137
-
138
- // -----------------------------------------------------------------------
139
- // initializer
140
- // -----------------------------------------------------------------------
141
- var dependencies_met_page_ready = setInterval (function (options) {
142
- var pageState = $('#no_flicker').css("display");
143
- var pageVisible = (pageState == 'block') ? true: false;
144
-
145
- if ( j1.getState() === 'finished' && pageVisible ) {
146
-
147
- {% for slider in slick_settings.sliders %} {% if slider.enabled %}
148
- logger.info('\n' + 'slider is being initialized on id: ' + '{{slider.id}}');
149
-
150
- {% if slider.options.responsive %}
151
- logger.info('\n' + 'collect responsive settings for slider on id: ' + '{{slider.id}}');
152
- // collect breakpoint settings from slider config
153
- responsiveSettings = $.extend({}, {{slider.responsive | replace: 'nil', 'null' | replace: '=>', ':' }});
154
- // generate slider breakpoint settings as YAML data structure
155
- sliderResponsiveSettings = '[' ;
156
- for (const [obj_key, obj_value] of Object.entries(responsiveSettings)) {
157
- var length = Object.keys(obj_value.settings).length;
158
- var count = 0;
159
- for (const [key, value] of Object.entries(obj_value.settings)) {
160
- count++;
161
- if (key == 'breakOn' && count == 1) {
162
- sliderResponsiveSettings += ' {' ;
163
- sliderResponsiveSettings += ' breakpoint: ' + value + ',' ;
164
- sliderResponsiveSettings += ' settings: {' ;
165
- } else {
166
- sliderResponsiveSettings += ' ' + key + ': ' + value + ',' ;
167
- }
168
- // close current breakpoint element
169
- if (count == length) {
170
- sliderResponsiveSettings += ' }' ;
171
- sliderResponsiveSettings += ' },' ;
172
- }
173
- }
174
- } // End generate breakpoint YAML elements
175
-
176
- // close breakpoint YAML data
177
- sliderResponsiveSettings += ']';
178
- {% endif %}
179
-
180
- // create dynamic loader variable|s
181
- dependency = 'dependencies_met_html_loaded_{{slider.id}}';
182
- load_dependencies[dependency] = '';
183
-
184
- // initialize slider if HTML portion successfully loaded
185
- load_dependencies['dependencies_met_html_loaded_{{slider.id}}'] = setInterval (function (options) {
186
- // check if HTML portion of the slider is loaded successfully (loadSliderHTML)
187
- xhrLoadState = j1.xhrDOMState['#{{slider.id}}_parent'];
188
- if ( xhrLoadState === 'success' ) {
189
-
190
- // collect general slider settings
191
- sliderOptions = $.extend({}, {{slider.options | replace: 'nil', 'null' | replace: '=>', ':' }});
192
- sliderSettings = $.extend(true, {}, slickDefaults, sliderOptions );
193
-
194
- // convert slider responsive settings to object (sliderResponsiveSettingsOBJ)
195
- sliderResponsiveSettingsYAML = yaml.loadAll(sliderResponsiveSettings, 'utf8');
196
- sliderResponsiveSettingsOBJ = sliderResponsiveSettingsYAML[0];
197
- sliderResponsiveSettingsSTRING = JSON.stringify(sliderResponsiveSettingsOBJ, null, 4);
198
- logger.debug('\n' + 'responsive settings on slider id #{{slider.id}}: ' + '\n' + sliderResponsiveSettingsSTRING);
199
-
200
- $('.{{slider.id | replace: '_','-' }}').on('init', function(event, slick) {
201
- logger.info('\n' + 'slider initialized on id: {{slider.id}}');
202
- if ({{slider.lightbox.enabled}}) {
203
- logger.info('\n' + 'initialize lightbox on id: {{slider.id}}');
204
- $('#{{slider.id}}').slickLightbox({
205
- background: 'rgba(0,0,0,.8)',
206
- closeOnEscape: true,
207
- closeOnBackdropClick: true,
208
- navigateByKeyboard: true,
209
- destroyTimeout: 500,
210
- src: '{{slider.lightbox.src}}',
211
- itemSelector: '{{slider.lightbox.itemSelector}}',
212
- imageMaxHeight: 0.9,
213
- lazy: false,
214
- });
215
- }
216
- });
217
-
218
- // setup the slider
219
- logger.info('\n' + 'slider is being setup on id: ' + '{{slider.id}}');
220
- $('.{{slider.id | replace: '_','-' }}').slick({
221
- accessibility: sliderSettings.accessibility,
222
- adaptiveHeight: sliderSettings.adaptiveHeight,
223
- arrows: sliderSettings.arrows,
224
- autoplay: sliderSettings.autoplay,
225
- autoplaySpeed: sliderSettings.autoplaySpeed,
226
- centerMode: sliderSettings.centerMode,
227
- centerPadding: sliderSettings.centerPadding,
228
- cssEase: sliderSettings.cssEase,
229
- dots: sliderSettings.dots,
230
- dotsClass: sliderSettings.dotsClass,
231
- draggable: sliderSettings.draggable,
232
- easing: sliderSettings.easing,
233
- edgeFriction: sliderSettings.edgeFriction,
234
- fade: sliderSettings.fade,
235
- focusOnSelect: sliderSettings.focusOnSelect,
236
- focusOnChange: sliderSettings.focusOnChange,
237
- infinite: sliderSettings.infinite,
238
- initialSlide: sliderSettings.initialSlide,
239
- lazyLoad: sliderSettings.lazyLoad,
240
- mobileFirst: sliderSettings.mobileFirst,
241
- pauseOnDotsHover: sliderSettings.pauseOnDotsHover,
242
- pauseOnFocus: sliderSettings.pauseOnFocus,
243
- pauseOnHover: sliderSettings.pauseOnHover,
244
- respondTo: sliderSettings.respondTo,
245
- rows: sliderSettings.rows,
246
- rtl: sliderSettings.rtl,
247
- slide: sliderSettings.slide,
248
- slidesPerRow: sliderSettings.slidesPerRow,
249
- slidesToScroll: sliderSettings.slidesToScroll,
250
- slidesToShow: sliderSettings.slidesToShow,
251
- speed: sliderSettings.speed,
252
- swipe: sliderSettings.swipe,
253
- swipeToSlide: sliderSettings.swipeToSlide,
254
- touchMove: sliderSettings.touchMove,
255
- touchThreshold: sliderSettings.touchThreshold,
256
- useCSS: sliderSettings.useCSS,
257
- useTransform: sliderSettings.useTransform,
258
- variableWidth: sliderSettings.variableWidth,
259
- vertical: sliderSettings.vertical,
260
- verticalSwiping: sliderSettings.verticalSwiping,
261
- waitForAnimate: sliderSettings.waitForAnimate,
262
- zIndex: sliderSettings.zIndex,
263
- responsive: sliderResponsiveSettingsOBJ
264
- });
265
- clearInterval(load_dependencies['dependencies_met_html_loaded_{{slider.id}}']);
266
- }
267
- }, 25); // END
268
- {% endif %} {% endfor %} // ENDFOR (all) sliders
269
-
270
- _this.setState('finished');
271
- logger.debug('\n' + 'state: ' + _this.getState());
272
- logger.info('\n' + 'module initialization finished');
273
-
274
- clearInterval(dependencies_met_page_ready);
275
-
276
- }
277
- }, 25);
278
-
279
- }, // END init
280
-
281
- // -------------------------------------------------------------------------
282
- // loadSliderHTML()
283
- // load all Slick sliders (HTML portion) dynanically configured
284
- // and enabled (AJAX) from YAMLdata file
285
- // NOTE: Make sure the placeholder is available in the content page
286
- // eg. using the asciidoc extension masterslider::
287
- // -------------------------------------------------------------------------
288
- loadSliderHTML: function (options, slider) {
289
- var numSliders = Object.keys(slider).length;
290
- var active_sliders = numSliders;
291
- var xhr_data_path = options.xhr_data_path + '/index.html';
292
- var xhr_container_id;
293
-
294
- // console.debug('load HTML portion of all sliders configured found in page');
295
- console.debug('number of sliders found: ' + numSliders);
296
-
297
- _this.setState('load_data');
298
- Object.keys(slider).forEach(function(key) {
299
- if (slider[key].enabled) {
300
- xhr_container_id = slider[key].id + '_parent';
301
-
302
- console.debug('load HTML data on slider id: ' + slider[key].id);
303
- j1.loadHTML({
304
- xhr_container_id: xhr_container_id,
305
- xhr_data_path: xhr_data_path,
306
- xhr_data_element: slider[key].id
307
- });
308
- } else {
309
- console.debug('slider found disabled on id: ' + slider[key].id);
310
- active_sliders--;
311
- }
312
- });
313
- console.debug('sliders loaded in page enabled|all: ' + active_sliders + '|' + numSliders);
314
- _this.setState('data_loaded');
315
- }, // END loadSliderHTML
316
-
317
- // -------------------------------------------------------------------------
318
- // messageHandler: MessageHandler for J1 CookieConsent module
319
- // Manage messages send from other J1 modules
320
- // -------------------------------------------------------------------------
321
- messageHandler: function (sender, message) {
322
- var json_message = JSON.stringify(message, undefined, 2);
323
-
324
- logText = '\n' + 'received message from ' + sender + ': ' + json_message;
325
- logger.debug(logText);
326
-
327
- // -----------------------------------------------------------------------
328
- // Process commands|actions
329
- // -----------------------------------------------------------------------
330
- if (message.type === 'command' && message.action === 'module_initialized') {
331
- //
332
- // Place handling of command|action here
333
- //
334
- logger.info('\n' + message.text);
335
- }
336
-
337
- //
338
- // Place handling of other command|action here
339
- //
340
-
341
- return true;
342
- }, // END messageHandler
343
-
344
- // -------------------------------------------------------------------------
345
- // setState()
346
- // Sets the current (processing) state of the module
347
- // -------------------------------------------------------------------------
348
- setState: function (stat) {
349
- _this.state = stat;
350
- }, // END setState
351
-
352
- // -------------------------------------------------------------------------
353
- // getState()
354
- // Returns the current (processing) state of the module
355
- // -------------------------------------------------------------------------
356
- getState: function () {
357
- return _this.state;
358
- }, // END getState
359
-
360
- }; // END return
361
- })(j1, window);
362
-
363
- {% endcapture %}
364
- {{ cache | strip_empty_lines }}
365
- {% assign cache = nil %}
@@ -1,152 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns:dc="http://purl.org/dc/elements/1.1/"
4
- xmlns:cc="http://creativecommons.org/ns#"
5
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
- xmlns:svg="http://www.w3.org/2000/svg"
7
- xmlns="http://www.w3.org/2000/svg"
8
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
- width="64"
11
- height="64"
12
- viewBox="0 0 64 64"
13
- version="1.1"
14
- id="svg29"
15
- sodipodi:docname="icon.svg"
16
- inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
17
- inkscape:export-filename="D:\github\jekyll-parsa\assets\images\logo\icon.png"
18
- inkscape:export-xdpi="96"
19
- inkscape:export-ydpi="96">
20
- <metadata
21
- id="metadata33">
22
- <rdf:RDF>
23
- <cc:Work
24
- rdf:about="">
25
- <dc:format>image/svg+xml</dc:format>
26
- <dc:type
27
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
28
- <dc:title />
29
- </cc:Work>
30
- </rdf:RDF>
31
- </metadata>
32
- <sodipodi:namedview
33
- pagecolor="#ffffff"
34
- bordercolor="#666666"
35
- borderopacity="1"
36
- objecttolerance="10"
37
- gridtolerance="10"
38
- guidetolerance="10"
39
- inkscape:pageopacity="0"
40
- inkscape:pageshadow="2"
41
- inkscape:window-width="1941"
42
- inkscape:window-height="747"
43
- id="namedview31"
44
- showgrid="false"
45
- inkscape:zoom="5.370389"
46
- inkscape:cx="87.889351"
47
- inkscape:cy="38.02125"
48
- inkscape:window-x="0"
49
- inkscape:window-y="0"
50
- inkscape:window-maximized="0"
51
- inkscape:current-layer="svg29"
52
- inkscape:document-rotation="0" />
53
- <defs
54
- id="defs12">
55
- <linearGradient
56
- id="linear-gradient"
57
- y1="2213.0669"
58
- x2="2221.2595"
59
- y2="2213.2083"
60
- gradientUnits="userSpaceOnUse"
61
- gradientTransform="matrix(0.91770835,0,0,1.0896708,-1868.238,-2389.408)"
62
- x1="2209.4858">
63
- <stop
64
- offset="0"
65
- stop-color="#ff3158"
66
- id="stop2" />
67
- <stop
68
- offset="1"
69
- stop-color="#ff1249"
70
- id="stop4" />
71
- </linearGradient>
72
- <linearGradient
73
- id="linear-gradient-2"
74
- y1="2847.989"
75
- x2="1728.0228"
76
- y2="2848.1963"
77
- gradientUnits="userSpaceOnUse"
78
- gradientTransform="matrix(1.1815539,0,0,0.84634313,-1867.772,-2388.608)"
79
- x1="1712.072">
80
- <stop
81
- offset="0"
82
- stop-color="#ff4e70"
83
- id="stop7" />
84
- <stop
85
- offset="1"
86
- stop-color="#ff3158"
87
- id="stop9" />
88
- </linearGradient>
89
- </defs>
90
- <g
91
- id="g880"
92
- transform="matrix(2.2183883,0,0,1.8886127,-333.23886,2.1186893)">
93
- <path
94
- id="add"
95
- d="m 168.54233,6.05425 -1.05,-0.582 a 0.07103017,0.07103017 0 0 1 -0.0277,-0.09656 l 0.58103,-1.04825 a 0.35314999,0.35314999 0 1 0 -0.61688,-0.341925 l -0.58199,1.05 a 0.07103017,0.07103017 0 0 1 -0.0966,0.02769 l -1.05,-0.582 a 0.35314999,0.35314999 0 0 0 -0.34192,0.616875 l 1.05,0.582 a 0.07103017,0.07103017 0 0 1 0.0277,0.09656 l -0.582,1.05 a 0.35314999,0.35314999 0 1 0 0.61687,0.341925 l 0.582,-1.05 a 0.07103017,0.07103017 0 0 1 0.0975,-0.02944 l 1.05,0.582 a 0.35314999,0.35314999 0 0 0 0.34193,-0.616875 z m 0,0"
96
- fill="#222222"
97
- style="stroke-width:1.00042" />
98
- <path
99
- id="minus"
100
- d="m 164.8731,0.1698 -2.26009,1.101132 a 0.39100967,0.39100967 0 0 0 0.34252,0.703018 l 2.26009,-1.101132 A 0.39100967,0.39100967 0 0 0 164.8731,0.1698 Z"
101
- fill="#222222"
102
- style="stroke-width:1.00002" />
103
- <g
104
- id="Ellipse_359"
105
- data-name="Ellipse 359"
106
- transform="translate(159.07,4.725)"
107
- fill="none"
108
- stroke="#222222"
109
- stroke-width="0.8">
110
- <circle
111
- cx="1.408"
112
- cy="1.408"
113
- r="1.408"
114
- stroke="none"
115
- id="circle16" />
116
- <circle
117
- cx="1.408"
118
- cy="1.408"
119
- r="1.008"
120
- fill="none"
121
- id="circle18" />
122
- </g>
123
- <path
124
- id="Path_28989"
125
- data-name="Path 28989"
126
- d="m 159.728,18.45 a 5.4,5.4 0 0 1 5.563,0.62 c 3.925,1.087 4.705,0.56 4.705,0.56 0,0 1.923,10.548 -5.248,11.13 -7.171,0.582 -5.02,-12.31 -5.02,-12.31 z"
127
- fill="url(#linear-gradient)"
128
- style="fill:url(#linear-gradient)" />
129
- <path
130
- id="Path_28990"
131
- data-name="Path 28990"
132
- d="m 169.728,19.203 a 3.954,3.954 0 0 0 -5.536,-0.409 4.021,4.021 0 0 1 -4.7,0.409 c 0,0 -4.756,7.383 -4.332,10.574 0.9,2.325 6.238,0.685 9.273,0.927 3.305,0.264 8.276,1.75 9.547,-0.927 -0.252,-3.137 -4.197,-10.507 -4.252,-10.574 z"
133
- fill="url(#linear-gradient-2)"
134
- style="fill:url(#linear-gradient-2)" />
135
- <path
136
- id="Path_28991"
137
- data-name="Path 28991"
138
- d="m 174.479,29.008 -6.56,-14.458 a 2,2 0 0 1 -0.135,-0.661 v -1.332 a 0.6,0.6 0 0 1 0.318,-0.475 1.486,1.486 0 0 0 -0.724,-2.787 h -5.5 a 1.488,1.488 0 0 0 -0.846,2.714 0.691,0.691 0 0 1 0.3,0.505 v 1.539 a 1.838,1.838 0 0 1 -0.145,0.656 l -6.651,14.306 a 1.645,1.645 0 0 0 0.024,1.6 1.646,1.646 0 0 0 1.439,0.7 h 16.96 a 1.564,1.564 0 0 0 1.52,-2.3 z m -0.948,0.656 c 0,0 0.364,0.554 -0.217,0.581 0,0.053 -13.11,0.052 -17.587,0 -0.554,0 -0.29,-0.534 -0.29,-0.534 0,-0.016 3.7,-8.143 3.78,-8.315 l 3,-6.459 a 1.825,1.825 0 0 0 0.124,-0.656 v -2.644 c 0,-0.217 -0.105,-0.393 -0.234,-0.393 h -0.232 a 0.459,0.459 0 0 1 0,-0.917 h 5.5 a 0.459,0.459 0 0 1 0,0.917 h -0.308 a 0.358,0.358 0 0 0 -0.307,0.393 v 2.464 a 2,2 0 0 0 0.124,0.661 l 2.828,6.63 c 0.078,0.174 3.866,8.288 3.819,8.272 z"
139
- fill="#030104" />
140
- <g
141
- id="Group_1040"
142
- data-name="Group 1040"
143
- transform="translate(159.773,19.95)">
144
- <path
145
- id="Path_28966"
146
- data-name="Path 28966"
147
- d="m 120.962,6.575 -3.875,-6.342 a 0.486,0.486 0 0 0 -0.829,0 l -3.875,6.342 a 0.486,0.486 0 0 0 0.742,0.612 5.311,5.311 0 0 1 7.1,0 0.485,0.485 0 0 0 0.742,-0.611 z"
148
- transform="translate(-112.311)"
149
- fill="#222222" />
150
- </g>
151
- </g>
152
- </svg>