j1-template 2022.1.0 → 2022.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_article_navigator.html +4 -5
  3. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +4 -5
  4. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +35 -19
  5. data/_includes/themes/j1/modules/navigator/procedures/topsearch.0.proc +129 -0
  6. data/_includes/themes/j1/modules/navigator/procedures/topsearch.1.proc +113 -0
  7. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +3 -3
  8. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -5
  9. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +29 -7
  10. data/_includes/themes/j1/procedures/posts/pager.proc +2 -3
  11. data/assets/data/authclient.html +6 -6
  12. data/assets/data/carousel.json +2 -2
  13. data/assets/data/galleries.json +17 -5
  14. data/assets/data/gallery_customizer.html +4 -5
  15. data/assets/data/j1_config.json +42 -0
  16. data/assets/data/panel.html +17 -0
  17. data/assets/data/quicklinks.html +4 -4
  18. data/assets/themes/j1/adapter/js/advertising.js +2 -2
  19. data/assets/themes/j1/adapter/js/algolia.js +5 -5
  20. data/assets/themes/j1/adapter/js/analytics.js +1 -1
  21. data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
  22. data/assets/themes/j1/adapter/js/attic.js +5 -5
  23. data/assets/themes/j1/adapter/js/bmd.js +12 -12
  24. data/assets/themes/j1/adapter/js/carousel.js +40 -30
  25. data/assets/themes/j1/adapter/js/clipboard.js +2 -2
  26. data/assets/themes/j1/adapter/js/comments.js +2 -2
  27. data/assets/themes/j1/adapter/js/cookieConsent.js +2 -2
  28. data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
  29. data/assets/themes/j1/adapter/js/customModule.js +2 -2
  30. data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
  31. data/assets/themes/j1/adapter/js/fab.js +4 -4
  32. data/assets/themes/j1/adapter/js/framer.js +2 -2
  33. data/assets/themes/j1/adapter/js/j1.js +9 -9
  34. data/assets/themes/j1/adapter/js/justifiedGallery.js +42 -30
  35. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +126 -113
  36. data/assets/themes/j1/adapter/js/lightbox.js +34 -30
  37. data/assets/themes/j1/adapter/js/logger.js +2 -2
  38. data/assets/themes/j1/adapter/js/{quicksearch.js → lunr.js} +17 -19
  39. data/assets/themes/j1/adapter/js/mmenu.js +7 -7
  40. data/assets/themes/j1/adapter/js/navigator.js +5 -5
  41. data/assets/themes/j1/adapter/js/rangeSlider.js +96 -83
  42. data/assets/themes/j1/adapter/js/rouge.js +26 -22
  43. data/assets/themes/j1/adapter/js/rtable.js +2 -2
  44. data/assets/themes/j1/adapter/js/rtextResizer.js +6 -22
  45. data/assets/themes/j1/adapter/js/scroller.js +2 -2
  46. data/assets/themes/j1/adapter/js/themer.js +3 -3
  47. data/assets/themes/j1/adapter/js/toccer.js +5 -5
  48. data/assets/themes/j1/adapter/js/translator.js +2 -2
  49. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +19 -6
  50. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +2 -2
  51. data/assets/themes/j1/core/css/vendor.css +2 -3
  52. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  53. data/assets/themes/j1/core/js/template.js +1 -6
  54. data/assets/themes/j1/core/js/template.min.js +1 -6
  55. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  56. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.css +1315 -0
  57. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.min.css +7 -0
  58. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.structure.css +886 -0
  59. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.structure.min.css +5 -0
  60. data/assets/themes/j1/modules/jquery/css/{jqueryUI/theme.css → jquery-ui/jquery-ui.theme.css} +9 -6
  61. data/assets/themes/j1/modules/jquery/css/jquery-ui/jquery-ui.theme.min.css +5 -0
  62. data/assets/themes/j1/modules/jquery/js/{jqueryUI.js → jquery-ui.js} +1067 -711
  63. data/assets/themes/j1/modules/jquery/js/jquery-ui.min.js +6 -0
  64. data/assets/themes/j1/modules/jquery/js/jquery.min.map +1 -0
  65. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +1 -1
  66. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +1 -1
  67. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +28 -12
  68. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.min.js +1 -1
  69. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +1 -1
  70. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +1 -2
  71. data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -11
  72. data/assets/themes/j1/modules/{lunrSearch/css/quicksearch.css → lunr/css/j1.css} +2 -2
  73. data/assets/themes/j1/modules/lunr/css/j1.min.css +15 -0
  74. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/dateformat.js +0 -0
  75. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/dateformat.min.js +0 -0
  76. data/assets/themes/j1/modules/{lunrSearch/js/quicksearch.js → lunr/js/j1.js} +11 -8
  77. data/assets/themes/j1/modules/{lunrSearch/js/quicksearch.min.js → lunr/js/j1.min.js} +1 -1
  78. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.js +0 -0
  79. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.language.support.js +0 -0
  80. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.language.support.min.js +0 -0
  81. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.min.js +0 -0
  82. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/mustache.js +0 -0
  83. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/mustache.min.js +0 -0
  84. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/uri.js +0 -0
  85. data/assets/themes/j1/modules/{lunrSearch → lunr}/js/uri.min.js +0 -0
  86. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ar.js +0 -0
  87. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ar.min.js +0 -0
  88. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.da.js +0 -0
  89. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.da.min.js +0 -0
  90. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.de.js +0 -0
  91. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.de.min.js +0 -0
  92. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.du.js +0 -0
  93. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.du.min.js +0 -0
  94. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.es.js +0 -0
  95. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.es.min.js +0 -0
  96. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fi.js +0 -0
  97. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fi.min.js +0 -0
  98. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fr.js +0 -0
  99. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fr.min.js +0 -0
  100. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.hu.js +0 -0
  101. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.hu.min.js +0 -0
  102. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.it.js +0 -0
  103. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.it.min.js +0 -0
  104. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ja.js +0 -0
  105. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ja.min.js +0 -0
  106. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.jp.js +0 -0
  107. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.jp.min.js +0 -0
  108. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.multi.js +0 -0
  109. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.multi.min.js +0 -0
  110. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.nl.js +0 -0
  111. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.nl.min.js +0 -0
  112. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.no.js +0 -0
  113. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.no.min.js +0 -0
  114. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.pt.js +0 -0
  115. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.pt.min.js +0 -0
  116. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ro.js +0 -0
  117. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ro.min.js +0 -0
  118. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ru.js +0 -0
  119. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ru.min.js +0 -0
  120. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.sv.js +0 -0
  121. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.sv.min.js +0 -0
  122. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.th.js +0 -0
  123. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.tr.js +0 -0
  124. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.tr.min.js +0 -0
  125. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.vi.js +0 -0
  126. data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.vi.min.js +0 -0
  127. data/assets/themes/j1/modules/mmenuLight/css/mmenu-light.css +1 -0
  128. data/assets/themes/j1/modules/mmenuLight/css/mmenu-light.min.css +2 -374
  129. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +15 -5
  130. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +2 -178
  131. data/assets/themes/j1/modules/msDropdown/css/msDropdown.min.css +1 -12
  132. data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.css +3 -1
  133. data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.min.css +23 -0
  134. data/assets/themes/j1/modules/videojs/css/video-js.css +6 -2
  135. data/assets/themes/j1/modules/videojs/css/video-js.min.css +1 -1
  136. data/lib/j1/version.rb +1 -1
  137. data/lib/starter_web/Gemfile +1 -1
  138. data/lib/starter_web/_config.yml +37 -94
  139. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +168 -0
  140. data/lib/starter_web/_data/blocks/banner.yml +3 -3
  141. data/lib/starter_web/_data/blocks/panel.yml +2 -0
  142. data/lib/starter_web/_data/j1_config.yml +33 -1
  143. data/lib/starter_web/_data/layouts/app.yml +11 -6
  144. data/lib/starter_web/_data/layouts/article_navigator.yml +8 -3
  145. data/lib/starter_web/_data/layouts/blog_archive.yml +8 -3
  146. data/lib/starter_web/_data/layouts/collection.yml +14 -21
  147. data/lib/starter_web/_data/layouts/default.yml +11 -36
  148. data/lib/starter_web/_data/layouts/home.yml +14 -22
  149. data/lib/starter_web/_data/layouts/news_panel_posts.yml +8 -3
  150. data/lib/starter_web/_data/layouts/page.yml +8 -14
  151. data/lib/starter_web/_data/layouts/post.yml +8 -3
  152. data/lib/starter_web/_data/layouts/raw.yml +14 -9
  153. data/lib/starter_web/_data/{builder → modules}/blog_navigator.yml +4 -4
  154. data/lib/starter_web/_data/{apps → modules}/carousel.yml +2 -2
  155. data/lib/starter_web/_data/{builder → modules}/defaults/blog_navigator.yml +4 -5
  156. data/lib/starter_web/_data/{apps → modules}/defaults/carousel.yml +1 -1
  157. data/lib/starter_web/_data/{apps → modules}/defaults/justifiedGallery.yml +1 -1
  158. data/lib/starter_web/_data/{apps → modules}/defaults/lightGallery.yml +1 -1
  159. data/lib/starter_web/_data/{apps → modules}/defaults/lightbox.yml +2 -2
  160. data/lib/starter_web/_data/modules/defaults/{quicksearch.yml → lunr.yml} +6 -15
  161. data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
  162. data/lib/starter_web/_data/{apps → modules}/justifiedGallery.yml +101 -50
  163. data/lib/starter_web/_data/{apps → modules}/lightGallery.yml +1 -1
  164. data/lib/starter_web/_data/{apps → modules}/lightbox.yml +2 -2
  165. data/lib/starter_web/_data/modules/{quicksearch.yml → lunr.yml} +4 -7
  166. data/lib/starter_web/_data/modules/navigator_menu.yml +1 -1
  167. data/lib/starter_web/_data/modules/rangeSlider.yml +2 -2
  168. data/lib/starter_web/_data/resources.yml +73 -31
  169. data/lib/starter_web/_includes/attributes.asciidoc +16 -3
  170. data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +6 -4
  171. data/lib/starter_web/_plugins/filters.rb +53 -0
  172. data/lib/starter_web/_plugins/lunr_index.rb +14 -9
  173. data/lib/starter_web/assets/images/modules/attics/joanna-kosinska-1920x1280.jpg +0 -0
  174. data/lib/starter_web/assets/videos/gallery/dailymotion/meditation.jpg +0 -0
  175. data/lib/starter_web/assets/videos/gallery/dailymotion/pilates.jpg +0 -0
  176. data/lib/starter_web/assets/videos/gallery/html5/video1.mp4 +0 -0
  177. data/lib/starter_web/assets/videos/gallery/html5/video2.mp4 +0 -0
  178. data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
  179. data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
  180. data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/battle.jpg +0 -0
  181. data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/ben.jpg +0 -0
  182. data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/constance.jpg +0 -0
  183. data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/elisa.jpg +0 -0
  184. data/lib/starter_web/collections/asciidoc_skeletons/simple-post/{yyyy-mm-dd-your-post-name.adoc → _posts/yyyy-mm-dd-your-post-name.asciidoc} +26 -12
  185. data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +2 -2
  186. data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-28-about-j1.adoc +1 -1
  187. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +2 -2
  188. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +2 -2
  189. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +2 -2
  190. data/lib/starter_web/package.json +1 -1
  191. data/lib/starter_web/pages/public/_blog/navigator/archive/categoryview.html +254 -0
  192. data/lib/starter_web/pages/public/_blog/navigator/archive/dateview.html +238 -0
  193. data/lib/starter_web/pages/public/_blog/navigator/archive/tagview.html +283 -0
  194. data/lib/starter_web/pages/public/_blog/navigator/archive.html +204 -0
  195. data/lib/starter_web/pages/public/_blog/navigator/index.html +53 -0
  196. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +2 -4
  197. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +15 -3
  198. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +15 -3
  199. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +5 -7
  200. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +5 -7
  201. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +5 -7
  202. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +33 -12
  203. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +30 -11
  204. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +28 -11
  205. data/lib/starter_web/pages/public/blog/navigator/archive.html +29 -11
  206. data/lib/starter_web/pages/public/blog/navigator/index.html +2 -1
  207. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +18 -23
  208. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +100 -16
  209. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -2
  210. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +6 -0
  211. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +75 -75
  212. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  213. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +2 -1
  214. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +3 -4
  215. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +13 -20
  216. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
  217. data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -2
  218. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  219. data/lib/starter_web/utilsrv/package.json +1 -1
  220. metadata +100 -82
  221. data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.min.css +0 -5
  222. data/assets/themes/j1/modules/jquery/js/jquery-3.5.1.min.map +0 -1
  223. data/assets/themes/j1/modules/jquery/js/jqueryUI.min.js +0 -13
  224. data/assets/themes/j1/modules/lunrSearch/css/quicksearch.min.css +0 -32
  225. data/lib/starter_web/_data/layouts/home.ads.yml +0 -262
  226. data/lib/starter_web/_data/layouts/home.no-ads.yml +0 -262
  227. data/lib/starter_web/_data/pages/builder.yml +0 -87
  228. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +0 -265
  229. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +0 -237
  230. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +0 -237
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------
2
2
  # ~/_plugins/lunr_index.rb
3
- # Creates an lunr index file (json) to be used by J1LunrSearch
3
+ # Creates an Lunr index file (json) to be used by J1 Lunr
4
4
  #
5
5
  # Product/Info:
6
6
  # http://jekyll.one
@@ -28,11 +28,14 @@ module Jekyll
28
28
  @template = config['theme']
29
29
 
30
30
  @module_path = File.join(File.dirname(__FILE__))
31
- @module_path.slice! "_plugins"
31
+ @module_path.slice! '_plugins'
32
32
  @module_config_path = File.join(@module_path, config['data_dir'], 'modules')
33
+ @j1_config_path = config['data_dir']
33
34
 
34
- @module_config_default = YAML::load(File.open(File.join(@module_config_path, 'defaults', 'quicksearch.yml')))
35
- @module_config_user = YAML::load(File.open(File.join(@module_config_path,'quicksearch.yml')))
35
+ @j1_config = YAML::load(File.open(File.join(@j1_config_path, 'j1_config.yml')))
36
+
37
+ @module_config_default = YAML::load(File.open(File.join(@module_config_path, 'defaults', 'lunr.yml')))
38
+ @module_config_user = YAML::load(File.open(File.join(@module_config_path,'lunr.yml')))
36
39
 
37
40
  @module_config_default_settings = @module_config_default['defaults']
38
41
  @module_config_user_settings = @module_config_user['settings']
@@ -53,6 +56,8 @@ module Jekyll
53
56
  }
54
57
  }.merge!(@module_config || {})
55
58
 
59
+ @lunr_config.merge!(@j1_config['posts'])
60
+
56
61
  @module_dir = @lunr_config['module_dir']
57
62
  @index_dir = @lunr_config['index_dir']
58
63
  @index_name = @lunr_config['index_name']
@@ -85,7 +90,7 @@ module Jekyll
85
90
 
86
91
  # @strip_categories configuration
87
92
  #
88
- @strip_categories = @lunr_config['strip_categories']
93
+ @strip_categories = @lunr_config['category_blacklist']
89
94
  @stripped_categories = @strip_categories.join(',').gsub!(',', ' ')
90
95
 
91
96
  # stop word exclusion configuration
@@ -107,7 +112,7 @@ module Jekyll
107
112
 
108
113
  if @module_config['rebuild'] == false
109
114
  if File.exist?(index_file)
110
- Jekyll.logger.info 'J1 QuickSearch:', 'recreate index disabled.'
115
+ Jekyll.logger.info 'J1 Lunr:', 'recreate index disabled.'
111
116
  # Keep the index file from being cleaned by Jekyll
112
117
  #
113
118
  site.static_files << SearchIndexFile.new(site, site.dest, '/', @module_config['index_file'])
@@ -115,7 +120,7 @@ module Jekyll
115
120
  end
116
121
  end
117
122
 
118
- Jekyll.logger.info 'J1 QuickSearch:', 'creating search index ...'
123
+ Jekyll.logger.info 'J1 Lunr:', 'creating search index ...'
119
124
 
120
125
  # gather posts and pages
121
126
  #
@@ -181,7 +186,7 @@ module Jekyll
181
186
  #
182
187
  FileUtils.mkdir_p(File.dirname(filepath))
183
188
  File.open(filepath, 'w') { |f| f.write(JSON.dump(total)) }
184
- Jekyll.logger.info 'J1 QuickSearch:', "finished, index ready."
189
+ Jekyll.logger.info 'J1 Lunr:', "finished, index ready."
185
190
  added_files = [filename]
186
191
 
187
192
  # Keep the written files from being cleaned by Jekyll
@@ -364,6 +369,6 @@ end
364
369
 
365
370
  module Jekyll
366
371
  module J1LunrSearch
367
- VERSION = '2022.1.0'
372
+ VERSION = '2022.1.3'
368
373
  end
369
374
  end
@@ -1,28 +1,39 @@
1
1
  ---
2
+ layout: post
3
+
2
4
  title: Your title
3
5
  tagline: your tagline
4
- date: YYYY-MM-DD 00:00:00 +0100
5
6
  keywords: >
6
7
  place, your, keywords, here
7
8
 
8
- categories: [ Featured, Post ]
9
- tags: [ J1, Jekyll ]
9
+ categories: [ Template ]
10
+ tags: [ Simple Post ]
11
+
12
+ image: /assets/images/modules/attics/sigmund-1920x1280.jpg
10
13
 
11
- image: /assets/images/modules/attics/katie-moum-1920x1280.jpg
14
+ #personalization: false
15
+ #exclude_from_search: false
16
+ #series: false
17
+ #toc: true
18
+ #fab_menu_id: page_ctrl_simple
19
+ #scrollbar: false
12
20
 
13
21
  regenerate: false
14
- resources: [ animate ]
22
+
23
+ resources: []
15
24
  resource_options:
16
25
  - attic:
26
+ padding_top: 400
27
+ padding_bottom: 50
17
28
  opacity: 0.5
18
29
  slides:
19
- - url: /assets/images/modules/attics/katie-moum-1920x1280.jpg
20
- alt: Photo by Katie Moum on Unsplash
30
+ - url: /assets/images/modules/attics/sigmund-1920x1280.jpg
31
+ alt: Photo by Sigmund on Unsplash
21
32
  alignY: 0.3
22
33
  badge:
23
34
  type: unsplash
24
- author: Katie Moum
25
- href: https://unsplash.com/@katiemoum
35
+ author: Sigmund
36
+ href: https://unsplash.com/@sigmund
26
37
  ---
27
38
 
28
39
  // Page Initializer
@@ -33,13 +44,13 @@ resource_options:
33
44
  // Set (local) page attributes here
34
45
  // -----------------------------------------------------------------------------
35
46
  // :page--attr: <attr-value>
47
+ // :post-image: /assets/images/modules/attics/sigmund-1920x1280.jpg
36
48
 
37
49
  // Place an excerpt at the most top position
38
50
  // -----------------------------------------------------------------------------
39
51
  [role="dropcap"]
40
- All you’re doing at the end of the day is writing your content, and the J1
41
- Template does all the tricky things: putting out HTML, Javascript, and CSS.
42
- As a result, the site creation process gets out of your way.
52
+ The Asciidoc skeleton *simple-post* a helper for setting up a base file
53
+ and folder structure for post articles.
43
54
 
44
55
  excerpt__end
45
56
 
@@ -58,6 +69,9 @@ excerpt__end
58
69
  // Include sub-documents (if any)
59
70
  // -----------------------------------------------------------------------------
60
71
 
72
+ // [role="mt-3 mb-5"]
73
+ // image::{post-image}[{{page.title}}]
74
+
61
75
  [[readmore]]
62
76
  == What is a static site?
63
77
 
@@ -2,8 +2,8 @@
2
2
  title: Site Generators
3
3
  tagline: top open source tools
4
4
 
5
- categories: [ Knowledge ]
6
- tags: [ Jekyll, Generators ]
5
+ categories: [ Knowledge, Jekyll ]
6
+ tags: [ Static Site, Generators ]
7
7
 
8
8
  image: /assets/images/modules/attics/machine-generator-1920x1280.jpg
9
9
 
@@ -2,7 +2,7 @@
2
2
  title: J1 Template
3
3
  tagline: first version for the public is out
4
4
 
5
- categories: [ Knowledge ]
5
+ categories: [ Knowledge, Jekyll ]
6
6
  tags: [ J1, Template ]
7
7
 
8
8
  image: /assets/images/modules/attics/runner-1920x1200.jpg
@@ -2,8 +2,8 @@
2
2
  title: Minneapolis
3
3
  tagline: largest city in the state of minnesota
4
4
 
5
- categories: [ Examples ]
6
- tags: [ Series, USA, Minnesota, Cities, Minneapolis ]
5
+ categories: [ Examples, Series ]
6
+ tags: [ USA, Minnesota, Cities, Minneapolis ]
7
7
 
8
8
  series: wiki-series
9
9
  image: /assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg
@@ -2,8 +2,8 @@
2
2
  title: Narcisse Snake Dens
3
3
  tagline: largest snake population
4
4
 
5
- categories: [ Examples ]
6
- tags: [ Series, Canada, Cities, Narcisse ]
5
+ categories: [ Examples, Series ]
6
+ tags: [ Canada, Cities, Narcisse ]
7
7
 
8
8
  series: wiki-series
9
9
  image: /assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg
@@ -2,8 +2,8 @@
2
2
  title: Columbia River
3
3
  tagline: largest river in the pacific northwest
4
4
 
5
- categories: [ Examples ]
6
- tags: [ Series, USA, Rivers ]
5
+ categories: [ Examples, Series ]
6
+ tags: [ USA, Rivers ]
7
7
 
8
8
  series: wiki-series
9
9
  image: /assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1",
4
- "version": "2022.1.0",
4
+ "version": "2022.1.3",
5
5
  "description": "J1 Template Starter Web",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -0,0 +1,254 @@
1
+ ---
2
+ layout: page
3
+ title: Starter Blog
4
+ tagline: posts by category
5
+ date: 2023-01-01 01:00:00 +100
6
+ description: Browse articles by category
7
+
8
+ categories: [ Blog ]
9
+ tags: [ Navigator, Categories ]
10
+
11
+ sort: date
12
+ toc: true
13
+ fab_menu_id: open_toc
14
+
15
+ pagination:
16
+ enabled: false
17
+ permalink: /page:num/
18
+
19
+ analytics: true
20
+ comments: false
21
+
22
+ exclude_from_search: true
23
+ regenerate: true # needed to update pages
24
+
25
+ resources: [ animate ]
26
+ resource_options:
27
+ - attic:
28
+ padding_top: 400
29
+ padding_bottom: 50
30
+ opacity: 0.5
31
+ slides:
32
+ - url: /assets/images/modules/attics/matthaeus-1920x1280.jpg
33
+ alt: Photo by Matthaeus
34
+ alignY: top
35
+ badge:
36
+ type: unsplash
37
+ author: Matthaeus
38
+ href: https://unsplash.com/@matthaeus123
39
+ ---
40
+
41
+ {% comment %} Liquid procedures
42
+ -------------------------------------------------------------------------------- {% endcomment %}
43
+ {% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
44
+ {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
45
+ {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
46
+ {% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %}
47
+
48
+ {% comment %} Set config files
49
+ -------------------------------------------------------------------------------- {% endcomment %}
50
+ {% assign template_config = site.data.j1_config %}
51
+ {% assign blocks = site.data.blocks %}
52
+ {% assign modules = site.data.modules %}
53
+ {% assign builder = site.data.builder %}
54
+ {% assign plugins = site.data.plugins %}
55
+
56
+ {% comment %} Set config data
57
+ -------------------------------------------------------------------------------- {% endcomment %}
58
+ {% assign blog_navigator_defaults = builder.defaults.blog_navigator.defaults %}
59
+ {% assign blog_navigator_settings = builder.blog_navigator.settings %}
60
+
61
+ {% comment %} Set config options
62
+ -------------------------------------------------------------------------------- {% endcomment %}
63
+ {% assign blog_navigator_options = blog_navigator_defaults | merge: blog_navigator_settings %}
64
+
65
+ {% comment %} Variables
66
+ -------------------------------------------------------------------------------- {% endcomment %}
67
+ {% assign truncate_words = site.excerpt_truncate_words %}
68
+ {% assign category_blacklist = template_config.posts.category_blacklist %}
69
+
70
+
71
+ {% if site.permalink == 'none' %}
72
+ {% capture browser_page_url %}{{page.url}}.html{% endcapture %}
73
+ {% else %}
74
+ {% capture browser_page_url %}{{page.url}}{% endcapture %}
75
+ {% endif %}
76
+
77
+ {% include {{get_page_path}} mode='absolute' %}
78
+ {% assign navigator_path = page_path|remove_first:'archive' %}
79
+
80
+ {% capture navigator %}{{navigator_path}}{% endcapture %}
81
+ {% capture date_view %}{{page_path}}/dateview/{% endcapture %}
82
+ {% capture category_view %}{{page_path}}/categoryview/{% endcapture %}
83
+ {% capture tag_view %}{{page_path}}/tagview/{% endcapture %}
84
+ {% capture all_view %}{{page_path}}/{% endcapture %}
85
+
86
+ {% if page.sort == 'title' %}
87
+ {% assign sorted_posts = site.posts|sort: 'title' %}
88
+ {% elsif page.sort == 'date' %}
89
+ {% assign sorted_posts = site.posts|sort: 'date' %}
90
+ {% else %}
91
+ {% assign sorted_posts = site.posts|sort: 'date' %}
92
+ {% endif %}
93
+
94
+ {% comment %} TODO: skip_words NOT longer needed? Already done
95
+ by processing of categories
96
+ --------------------------------------------------------------------------------
97
+ {% capture skip_words %} Posts Public {% endcapture %}
98
+ --------------------------------------------------------------------------------
99
+ {% endcomment %}
100
+
101
+ {% comment %} category processing
102
+ -------------------------------------------------------------------------------- {% endcomment %}
103
+ {% for category in category_blacklist %}
104
+ {% assign capitalized = category|capitalize %}
105
+ {% capture black_list %}{{black_list|append: capitalized}}{% unless forloop.last %},{% endunless %}{% endcapture %}
106
+ {% endfor %}
107
+ {% assign skip_categories = black_list | split: "," | join: " " %}
108
+
109
+ {% capture site_category_word_list %}{% for category in site.categories %}{{category|first|capitalize|lstrip|rstrip}}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
110
+ {% assign category_words = site_category_word_list|split:',' %}
111
+ {% assign categories = category_words|uniq %}
112
+
113
+ {% for category in categories %}
114
+ {% if skip_categories contains category %} {% continue %} {% endif %}
115
+ {% capture category_list %}{{category_list|append: category}}{% unless forloop.last %},{% endunless %}{% endcapture %}
116
+ {% endfor %}
117
+
118
+ {% comment %} language detection
119
+ -------------------------------------------------------------------------------- {% endcomment %}
120
+ {% if site.language == "en" %}
121
+ {% assign language = "en" %}
122
+ {% elsif site.language == "de"%}
123
+ {% assign language = "de" %}
124
+ {% else %}
125
+ {% assign language = "en" %}
126
+ {% endif %}
127
+
128
+ {% if language == "en" %}
129
+ {% assign readmore_text = "read" %}
130
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
131
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
132
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
133
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
134
+
135
+ {% assign view_headline = blog_navigator_options.category_view.page_text.en.headline %}
136
+ {% assign view_description_text = blog_navigator_options.category_view.page_text.en.description %}
137
+ {% endif %}
138
+
139
+ {% if language == "de" %}
140
+ {% assign readmore_text = "lesen" %}
141
+
142
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %}
143
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %}
144
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %}
145
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %}
146
+
147
+ {% assign view_headline = blog_navigator_options.category_view.page_text.de.headline %}
148
+ {% assign view_description_text = blog_navigator_options.category_view.page_text.de.description %}
149
+ {% endif %}
150
+
151
+ {% comment %} Debugging
152
+ --------------------------------------------------------------------------------
153
+ skip_categories: {{skip_categories | debug}}
154
+ site_category_word_list: {{site_category_word_list | debug}}
155
+ --------------------------------------------------------------------------------
156
+ {% endcomment %}
157
+
158
+
159
+ {% comment %} Main
160
+ -------------------------------------------------------------------------------- {% endcomment %}
161
+ <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
162
+ {% include {{create_word_cloud}} source="categories" word_list=category_list %}
163
+
164
+ <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
165
+ <div class="paginator ml-3">
166
+ <ul class="pagination raised-z0">
167
+ <li class="page-item"><a class="page-link" href="{{navigator|prepend: site.baseurl}}" alt="Blog Navigator">Navigator</a></li>
168
+ <li class="page-item"><a class="page-link" href="{{date_view}}" alt="View by Date">{{date_view_button_text}}</a></li>
169
+ <!-- li class="page-item"><a class="page-link" href="{{tag_view}}" alt="{{tag_view_button_text}}">By Tag</a></li -->
170
+ <li class="page-item"><a class="page-link" href="{{all_view}}" alt="View All">{{archive_view_button_text}}</a></li>
171
+ </ul>
172
+ </div>
173
+
174
+ <div class="post-search-results ml-3">
175
+ {% if blog_navigator_options.category_view.page_text.enabled %}
176
+ <div class="view-description">{{view_description_text}}</div>
177
+ {% endif %}
178
+
179
+ <div class="post-headline">
180
+ <h1 id="post-headline notoc" class="mt-5">{{view_headline}}</h1>
181
+ </div>
182
+ {% assign tags = site.categories|sort %}
183
+ {% for tag in tags %}
184
+ {% assign category = tag|first %}
185
+ {% unless category_list contains category %} {% continue %} {% endunless %}
186
+ <h2 id="{{tag|first|downcase}}" class="anchor-link mb-4"><i class="mdi mdi-pin mr-1"></i>{{tag|first|capitalize}}</h2>
187
+
188
+ {% for post in sorted_posts %}
189
+ {%if post.categories contains tag[0]%}
190
+ {% assign category = tag|first %}
191
+ {% include {{get_category_item}} category=category %}
192
+ {% include {{select_icon_size}} family=icon_family size=icon_size %}
193
+ {% assign icon_size = size %}
194
+ {% comment %} {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html %} {% endcomment %}
195
+ {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...' %}
196
+
197
+ <!-- Collect comment provider details -->
198
+ {% for sharing in builder_config.sharing_provider %}
199
+ {% assign provider = sharing.provider %}
200
+ {% assign likes_count = sharing.likes_count %}
201
+ {% assign comment_count = sharing.comment_count %}
202
+ {% endfor %}
203
+
204
+ <article class="card raised-z3 mb-5">
205
+ <h3 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h3>
206
+ <div class="row mx-0">
207
+
208
+ <!-- [INFO ] [j1.pages.blog.navigator.archive ] [Check if post image is available] -->
209
+ {% if post.image %}
210
+ <!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image is available] -->
211
+ <div class="col-md-6 img-bg--fill px-0"
212
+ style="border-right: 1px dotted rgba(0, 0, 0, 0.25); background-image: url({{post.image}});">
213
+ </div>
214
+ {% else %}
215
+ <!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
216
+ <div class="col-md-6 img-bg--fill px-0"
217
+ style="border-right: 1px dotted rgba(0, 0, 0, 0.25); background-image: url({{blog_navigator_options.post_image}});">
218
+ </div>
219
+ {% endif %}
220
+
221
+ <div class="col-md-6 p-0">
222
+ <div class="card-body r-text-300">{{excerpt}}</div>
223
+ <div class="card-footer not-rounded r-text-200">
224
+ <div class="card-footer-text">
225
+
226
+ {% if post.date %}
227
+ {% if language == "en" %}
228
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
229
+ {% endif %}
230
+ {% if language == "de" %}
231
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
232
+ {% endif %}
233
+ {% endif %}
234
+ {% if likes_count %}
235
+ <span class="font-weight-bold"> · </span>
236
+ <i class="mdi mdi-heart mr-1"></i> {{likes_count}}
237
+ {% endif %}
238
+ {% if comment_count %}
239
+ <span class="font-weight-bold"> · </span>
240
+ <i class="mdi mdi-comment mr-1"></i> {{comment_count}}
241
+ {% endif %}
242
+ </div>
243
+ <a class="card-link text-muted text-lowercase"
244
+ href="{{post.url}}#readmore">
245
+ {{readmore_text}} · {{post.tagline}}
246
+ </a>
247
+ </div>
248
+ </div>
249
+ </div>
250
+ </article>
251
+ {% endif %}
252
+ {% endfor %}
253
+ {% endfor %}
254
+ </div>