j1-template 2022.1.0 → 2022.1.1
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/layouts/content_generator_article_navigator.html +4 -5
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +4 -5
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +35 -19
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.0.proc +129 -0
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.1.proc +113 -0
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +3 -3
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -5
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +29 -7
- data/_includes/themes/j1/procedures/posts/pager.proc +2 -3
- data/assets/data/carousel.json +2 -2
- data/assets/data/galleries.json +17 -5
- data/assets/data/gallery_customizer.html +4 -5
- data/assets/data/j1_config.json +42 -0
- data/assets/data/panel.html +17 -0
- data/assets/data/quicklinks.html +4 -4
- data/assets/themes/j1/adapter/js/advertising.js +2 -2
- data/assets/themes/j1/adapter/js/algolia.js +5 -5
- data/assets/themes/j1/adapter/js/analytics.js +1 -1
- data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
- data/assets/themes/j1/adapter/js/attic.js +5 -5
- data/assets/themes/j1/adapter/js/bmd.js +12 -12
- data/assets/themes/j1/adapter/js/carousel.js +40 -30
- data/assets/themes/j1/adapter/js/clipboard.js +2 -2
- data/assets/themes/j1/adapter/js/comments.js +2 -2
- data/assets/themes/j1/adapter/js/cookieConsent.js +2 -2
- data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
- data/assets/themes/j1/adapter/js/customModule.js +2 -2
- data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
- data/assets/themes/j1/adapter/js/fab.js +4 -4
- data/assets/themes/j1/adapter/js/framer.js +2 -2
- data/assets/themes/j1/adapter/js/j1.js +9 -9
- data/assets/themes/j1/adapter/js/justifiedGallery.js +42 -30
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +126 -113
- data/assets/themes/j1/adapter/js/lightbox.js +34 -30
- data/assets/themes/j1/adapter/js/logger.js +2 -2
- data/assets/themes/j1/adapter/js/{quicksearch.js → lunr.js} +17 -19
- data/assets/themes/j1/adapter/js/mmenu.js +7 -7
- data/assets/themes/j1/adapter/js/navigator.js +5 -5
- data/assets/themes/j1/adapter/js/rangeSlider.js +96 -83
- data/assets/themes/j1/adapter/js/rouge.js +26 -22
- data/assets/themes/j1/adapter/js/rtable.js +2 -2
- data/assets/themes/j1/adapter/js/rtextResizer.js +6 -22
- data/assets/themes/j1/adapter/js/scroller.js +2 -2
- data/assets/themes/j1/adapter/js/themer.js +3 -3
- data/assets/themes/j1/adapter/js/toccer.js +5 -5
- data/assets/themes/j1/adapter/js/translator.js +2 -2
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +19 -6
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +2 -2
- data/assets/themes/j1/core/css/vendor.css +2 -3
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +1 -6
- data/assets/themes/j1/core/js/template.min.js +1 -6
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +28 -12
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.min.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +1 -2
- data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -11
- data/assets/themes/j1/modules/{lunrSearch/css/quicksearch.css → lunr/css/j1.css} +2 -2
- data/assets/themes/j1/modules/lunr/css/j1.min.css +15 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/dateformat.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/dateformat.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch/js/quicksearch.js → lunr/js/j1.js} +11 -8
- data/assets/themes/j1/modules/{lunrSearch/js/quicksearch.min.js → lunr/js/j1.min.js} +1 -1
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.language.support.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.language.support.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/mustache.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/mustache.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/uri.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/uri.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ar.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ar.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.da.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.da.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.de.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.de.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.du.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.du.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.es.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.es.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fi.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fi.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fr.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fr.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.hu.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.hu.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.it.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.it.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ja.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ja.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.jp.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.jp.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.multi.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.multi.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.nl.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.nl.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.no.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.no.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.pt.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.pt.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ro.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ro.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ru.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ru.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.sv.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.sv.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.th.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.tr.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.tr.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.vi.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.vi.min.js +0 -0
- data/assets/themes/j1/modules/mmenuLight/css/mmenu-light.min.css +2 -375
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +14 -5
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +2 -179
- data/assets/themes/j1/modules/msDropdown/css/msDropdown.min.css +1 -12
- data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.css +3 -1
- data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.min.css +23 -0
- data/assets/themes/j1/modules/videojs/css/video-js.css +6 -2
- data/assets/themes/j1/modules/videojs/css/video-js.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +68 -95
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +168 -0
- data/lib/starter_web/_data/blocks/panel.yml +2 -0
- data/lib/starter_web/_data/j1_config.yml +33 -1
- data/lib/starter_web/_data/layouts/app.yml +11 -6
- data/lib/starter_web/_data/layouts/article_navigator.yml +8 -3
- data/lib/starter_web/_data/layouts/blog_archive.yml +8 -3
- data/lib/starter_web/_data/layouts/collection.yml +14 -21
- data/lib/starter_web/_data/layouts/default.yml +11 -36
- data/lib/starter_web/_data/layouts/home.yml +14 -22
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +8 -3
- data/lib/starter_web/_data/layouts/page.yml +8 -14
- data/lib/starter_web/_data/layouts/post.yml +8 -3
- data/lib/starter_web/_data/layouts/raw.yml +14 -9
- data/lib/starter_web/_data/{builder → modules}/blog_navigator.yml +4 -4
- data/lib/starter_web/_data/{apps → modules}/carousel.yml +2 -2
- data/lib/starter_web/_data/{builder → modules}/defaults/blog_navigator.yml +4 -5
- data/lib/starter_web/_data/{apps → modules}/defaults/carousel.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/defaults/justifiedGallery.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/defaults/lightGallery.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/defaults/lightbox.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/{quicksearch.yml → lunr.yml} +6 -15
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/justifiedGallery.yml +101 -50
- data/lib/starter_web/_data/{apps → modules}/lightGallery.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/lightbox.yml +2 -2
- data/lib/starter_web/_data/modules/{quicksearch.yml → lunr.yml} +4 -7
- data/lib/starter_web/_data/modules/navigator_menu.yml +1 -1
- data/lib/starter_web/_data/modules/rangeSlider.yml +2 -2
- data/lib/starter_web/_data/resources.yml +20 -21
- data/lib/starter_web/_includes/attributes.asciidoc +16 -3
- data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +6 -4
- data/lib/starter_web/_plugins/filters.rb +53 -0
- data/lib/starter_web/_plugins/lunr_index.rb +11 -6
- data/lib/starter_web/assets/images/modules/attics/joanna-kosinska-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/dailymotion/meditation.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/dailymotion/pilates.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1.mp4 +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video2.mp4 +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/battle.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/ben.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/constance.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/elisa.jpg +0 -0
- 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
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-28-about-j1.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/_blog/navigator/archive/categoryview.html +254 -0
- data/lib/starter_web/pages/public/_blog/navigator/archive/dateview.html +238 -0
- data/lib/starter_web/pages/public/_blog/navigator/archive/tagview.html +283 -0
- data/lib/starter_web/pages/public/_blog/navigator/archive.html +204 -0
- data/lib/starter_web/pages/public/_blog/navigator/index.html +53 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +2 -4
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +15 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +15 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +5 -7
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +33 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +30 -11
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +28 -11
- data/lib/starter_web/pages/public/blog/navigator/archive.html +29 -11
- data/lib/starter_web/pages/public/blog/navigator/index.html +2 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +13 -17
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +99 -16
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +74 -74
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +7 -13
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +91 -77
- data/assets/themes/j1/modules/lunrSearch/css/quicksearch.min.css +0 -32
- data/lib/starter_web/_data/layouts/home.ads.yml +0 -262
- data/lib/starter_web/_data/layouts/home.no-ads.yml +0 -262
- data/lib/starter_web/_data/pages/builder.yml +0 -87
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +0 -265
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +0 -237
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +0 -237
@@ -45,11 +45,13 @@ Asciidoctor::Extensions.register do
|
|
45
45
|
images_hash = Hash[*attrs['image_data'].split(',')]
|
46
46
|
|
47
47
|
title_html = (attrs.has_key? 'title') ? %(<div class="title">#{attrs['title']}</div>\n) : nil
|
48
|
-
role = (attrs.has_key? 'role') ? role : '
|
48
|
+
role = (attrs.has_key? 'role') ? role : ''
|
49
49
|
grouped = (attrs.has_key? 'group') ? true : false
|
50
50
|
|
51
|
+
# {attrs['role']}
|
52
|
+
|
51
53
|
if grouped
|
52
|
-
html_block.div(:class=>"content") {
|
54
|
+
html_block.div(:class=>"content #{attrs['role']}", :style=>"margin-bottom: .75rem;") {
|
53
55
|
images_hash.each do |i,d|
|
54
56
|
image = i.strip
|
55
57
|
descr = d.strip
|
@@ -59,7 +61,7 @@ Asciidoctor::Extensions.register do
|
|
59
61
|
end
|
60
62
|
}
|
61
63
|
else
|
62
|
-
html_block.div(:class=>"content") {
|
64
|
+
html_block.div(:class=>"content #{attrs['role']}", :style=>"margin-bottom: .75rem;") {
|
63
65
|
images_hash.each do |i,d|
|
64
66
|
image = i.strip
|
65
67
|
descr = d.strip
|
@@ -72,7 +74,7 @@ Asciidoctor::Extensions.register do
|
|
72
74
|
content = html_block.target! # See: https://stackoverflow.com/questions/4961609/extra-to-s-when-using-builder-to-generate-xml
|
73
75
|
|
74
76
|
html = %(
|
75
|
-
<div id="lb-#{target}" class="imageblock
|
77
|
+
<div id="lb-#{target}" class="imageblock">
|
76
78
|
#{title_html}
|
77
79
|
#{content}
|
78
80
|
</div>
|
@@ -130,6 +130,59 @@ module Jekyll
|
|
130
130
|
input.to_s.gsub(Regexp.new(regex), replacement.to_s)
|
131
131
|
end
|
132
132
|
|
133
|
+
# --------------------------------------------------------------------------
|
134
|
+
# Managing Arrays
|
135
|
+
# input - arr: returns any elements from input that are NOT in arr
|
136
|
+
# arr - input: returns any elements from arr that are not in a
|
137
|
+
# arr | input: returns the unique set from input AND arr
|
138
|
+
# arr & input: returns the intersection elements of input AND arr
|
139
|
+
# pipe (|): returns the unique set of elements for BOTH arrays
|
140
|
+
#
|
141
|
+
# Example|s:
|
142
|
+
#
|
143
|
+
# {% assign input = '1,2,3,4,5' | split: ',' %}
|
144
|
+
# {% assign arr = '1,2,3' | split: ',' %}
|
145
|
+
#
|
146
|
+
# {% assign difference = input | difference: arr %}
|
147
|
+
# {% assign union = input | union: arr %}
|
148
|
+
# {% assign intersection = input | intersection: arr %}
|
149
|
+
#
|
150
|
+
# NOTE
|
151
|
+
# See: https://stackoverflow.com/questions/5678108/how-can-i-get-the-intersection-union-and-subset-of-arrays-in-ruby
|
152
|
+
#
|
153
|
+
# --------------------------------------------------------------------------
|
154
|
+
def difference(input, arr)
|
155
|
+
if ( input.kind_of?(Array) )
|
156
|
+
input - arr
|
157
|
+
else
|
158
|
+
[]
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# def difference_both_unique(input, arr)
|
163
|
+
# if ( input.kind_of?(Array) )
|
164
|
+
# input - arr | arr - input
|
165
|
+
# else
|
166
|
+
# []
|
167
|
+
# end
|
168
|
+
# end
|
169
|
+
|
170
|
+
def union(input, arr)
|
171
|
+
if ( input.kind_of?(Array) )
|
172
|
+
input | arr
|
173
|
+
else
|
174
|
+
[]
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
def intersection(input, arr)
|
179
|
+
if ( input.kind_of?(Array) )
|
180
|
+
input & arr
|
181
|
+
else
|
182
|
+
[]
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
133
186
|
# --------------------------------------------------------------------------
|
134
187
|
# strip_empty_lines:
|
135
188
|
#
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------
|
2
2
|
# ~/_plugins/lunr_index.rb
|
3
|
-
# Creates an
|
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!
|
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
|
-
@
|
35
|
-
|
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['
|
93
|
+
@strip_categories = @lunr_config['category_blacklist']
|
89
94
|
@stripped_categories = @strip_categories.join(',').gsub!(',', ' ')
|
90
95
|
|
91
96
|
# stop word exclusion configuration
|
@@ -364,6 +369,6 @@ end
|
|
364
369
|
|
365
370
|
module Jekyll
|
366
371
|
module J1LunrSearch
|
367
|
-
VERSION = '2022.1.
|
372
|
+
VERSION = '2022.1.1'
|
368
373
|
end
|
369
374
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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: [
|
9
|
-
tags: [
|
9
|
+
categories: [ Template ]
|
10
|
+
tags: [ Simple Post ]
|
11
|
+
|
12
|
+
image: /assets/images/modules/attics/sigmund-1920x1280.jpg
|
10
13
|
|
11
|
-
|
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
|
-
|
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/
|
20
|
-
alt: Photo by
|
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:
|
25
|
-
href: https://unsplash.com/@
|
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
|
-
|
41
|
-
|
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
|
|
data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
title: Site Generators
|
3
3
|
tagline: top open source tools
|
4
4
|
|
5
|
-
categories: [ Knowledge ]
|
6
|
-
tags: [
|
5
|
+
categories: [ Knowledge, Jekyll ]
|
6
|
+
tags: [ Static Site, Generators ]
|
7
7
|
|
8
8
|
image: /assets/images/modules/attics/machine-generator-1920x1280.jpg
|
9
9
|
|
data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc
CHANGED
@@ -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: [
|
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
|
data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
title: Narcisse Snake Dens
|
3
3
|
tagline: largest snake population
|
4
4
|
|
5
|
-
categories: [ Examples ]
|
6
|
-
tags: [
|
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
|
data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc
CHANGED
@@ -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: [
|
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
|
@@ -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>
|