j1-template 2022.0.10 → 2022.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/assets/themes/j1/adapter/js/advertising.js +1 -4
  3. data/assets/themes/j1/adapter/js/algolia.js +1 -4
  4. data/assets/themes/j1/adapter/js/analytics.js +237 -0
  5. data/assets/themes/j1/adapter/js/asciidoctor.js +1 -4
  6. data/assets/themes/j1/adapter/js/attic.js +1 -4
  7. data/assets/themes/j1/adapter/js/bmd.js +1 -4
  8. data/assets/themes/j1/adapter/js/carousel.js +1 -4
  9. data/assets/themes/j1/adapter/js/clipboard.js +1 -2
  10. data/assets/themes/j1/adapter/js/comments.js +387 -0
  11. data/assets/themes/j1/adapter/js/cookieConsent.js +35 -27
  12. data/assets/themes/j1/adapter/js/fab.js +1 -1
  13. data/assets/themes/j1/adapter/js/framer.js +1 -4
  14. data/assets/themes/j1/adapter/js/j1.js +52 -166
  15. data/assets/themes/j1/adapter/js/justifiedGallery.js +1 -4
  16. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +1 -4
  17. data/assets/themes/j1/adapter/js/lightbox.js +1 -5
  18. data/assets/themes/j1/adapter/js/logger.js +1 -2
  19. data/assets/themes/j1/adapter/js/mmenu.js +2 -3
  20. data/assets/themes/j1/adapter/js/navigator.js +4 -3
  21. data/assets/themes/j1/adapter/js/quicksearch.js +1 -4
  22. data/assets/themes/j1/adapter/js/rouge.js +1 -4
  23. data/assets/themes/j1/adapter/js/rtable.js +1 -4
  24. data/assets/themes/j1/adapter/js/rtextResizer.js +1 -4
  25. data/assets/themes/j1/adapter/js/scroller.js +1 -4
  26. data/assets/themes/j1/adapter/js/themer.js +1 -1
  27. data/assets/themes/j1/adapter/js/toccer.js +1 -4
  28. data/assets/themes/j1/adapter/js/translator.js +25 -68
  29. data/assets/themes/j1/core/js/template.js +13 -5
  30. data/assets/themes/j1/core/js/template.min.js +1 -1
  31. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  32. data/lib/j1/version.rb +1 -1
  33. data/lib/starter_web/Gemfile +1 -1
  34. data/lib/starter_web/_config.yml +1 -9
  35. data/lib/starter_web/_data/apps/carousel.yml +2 -2
  36. data/lib/starter_web/_data/apps/defaults/carousel.yml +3 -2
  37. data/lib/starter_web/_data/apps/defaults/justifiedGallery.yml +2 -2
  38. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +2 -2
  39. data/lib/starter_web/_data/apps/defaults/lightGallery.yml +2 -2
  40. data/lib/starter_web/_data/apps/defaults/lightbox.yml +2 -2
  41. data/lib/starter_web/_data/apps/justifiedGallery.yml +2 -2
  42. data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +2 -2
  43. data/lib/starter_web/_data/apps/lightGallery.yml +2 -2
  44. data/lib/starter_web/_data/apps/lightbox.yml +2 -2
  45. data/lib/starter_web/_data/blocks/banner.yml +3 -2
  46. data/lib/starter_web/_data/blocks/defaults/banner.yml +9 -0
  47. data/lib/starter_web/_data/blocks/defaults/footer.yml +9 -0
  48. data/lib/starter_web/_data/blocks/defaults/panel.yml +9 -0
  49. data/lib/starter_web/_data/blocks/footer.yml +3 -2
  50. data/lib/starter_web/_data/blocks/panel.yml +3 -2
  51. data/lib/starter_web/_data/builder/blog_navigator.yml +3 -2
  52. data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +8 -8
  53. data/lib/starter_web/_data/j1_config.yml +0 -116
  54. data/lib/starter_web/_data/layouts/default.yml +14 -14
  55. data/lib/starter_web/_data/layouts/page.yml +7 -18
  56. data/lib/starter_web/_data/layouts/post.yml +0 -11
  57. data/lib/starter_web/_data/modules/advertising.yml +3 -2
  58. data/lib/starter_web/_data/modules/analytics.yml +99 -0
  59. data/lib/starter_web/_data/modules/attics.yml +3 -2
  60. data/lib/starter_web/_data/modules/comments.yml +55 -0
  61. data/lib/starter_web/_data/modules/cookieconsent.yml +2 -1
  62. data/lib/starter_web/_data/modules/cookies.yml +2 -0
  63. data/lib/starter_web/_data/modules/defaults/advertising.yml +4 -3
  64. data/lib/starter_web/_data/modules/defaults/analytics.yml +93 -0
  65. data/lib/starter_web/_data/modules/defaults/attics.yml +3 -2
  66. data/lib/starter_web/_data/modules/defaults/authentication.yml +51 -48
  67. data/lib/starter_web/_data/modules/defaults/comments.yml +114 -0
  68. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +3 -3
  69. data/lib/starter_web/_data/modules/defaults/cookies.yml +19 -8
  70. data/lib/starter_web/_data/modules/defaults/fab.yml +4 -2
  71. data/lib/starter_web/_data/modules/defaults/framer.yml +2 -3
  72. data/lib/starter_web/_data/modules/defaults/log4javascript.yml +3 -2
  73. data/lib/starter_web/_data/modules/defaults/log4r.yml +2 -2
  74. data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -2
  75. data/lib/starter_web/_data/modules/defaults/quicksearch.yml +4 -3
  76. data/lib/starter_web/_data/modules/defaults/rtable.yml +3 -2
  77. data/lib/starter_web/_data/modules/defaults/scoller.yml +3 -2
  78. data/lib/starter_web/_data/modules/defaults/themer.yml +119 -118
  79. data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
  80. data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
  81. data/lib/starter_web/_data/modules/fab.yml +3 -2
  82. data/lib/starter_web/_data/modules/framer.yml +3 -4
  83. data/lib/starter_web/_data/modules/log4r.yml +2 -2
  84. data/lib/starter_web/_data/modules/navigator.yml +4 -2
  85. data/lib/starter_web/_data/modules/quicksearch.yml +3 -3
  86. data/lib/starter_web/_data/modules/rtable.yml +3 -3
  87. data/lib/starter_web/_data/modules/scroller.yml +2 -3
  88. data/lib/starter_web/_data/modules/themer.yml +2 -3
  89. data/lib/starter_web/_data/modules/toccer.yml +3 -3
  90. data/lib/starter_web/_data/modules/translator.yml +1 -1
  91. data/lib/starter_web/_data/plugins/defaults/paginator.yml +2 -2
  92. data/lib/starter_web/_data/plugins/paginator.yml +2 -2
  93. data/lib/starter_web/_data/resources.yml +442 -309
  94. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  95. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  96. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.ads.asciidoc +196 -0
  97. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.comments.asciidoc +182 -0
  98. data/lib/starter_web/package.json +1 -1
  99. data/lib/starter_web/pages/public/learn/roundtrip/{100_present_images.no_ads.asciidoc → 100_present_images.base.asciidoc} +0 -0
  100. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +237 -0
  101. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  102. data/lib/starter_web/utilsrv/package.json +1 -1
  103. metadata +12 -26
  104. data/_includes/themes/j1/blocks/ads/ad.html +0 -64
  105. data/_includes/themes/j1/modules/boards/news_pin_board.html +0 -183
  106. data/_includes/themes/j1/modules/connectors/analytic/custom-provider.html +0 -32
  107. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +0 -30
  108. data/_includes/themes/j1/modules/connectors/analytics +0 -60
  109. data/_includes/themes/j1/modules/connectors/comment/commento.html +0 -31
  110. data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +0 -30
  111. data/_includes/themes/j1/modules/connectors/comment/disqus.html +0 -32
  112. data/_includes/themes/j1/modules/connectors/comment/facebook.html +0 -30
  113. data/_includes/themes/j1/modules/connectors/comment/hyvor.html +0 -32
  114. data/_includes/themes/j1/modules/connectors/comment/just-comments.html +0 -31
  115. data/_includes/themes/j1/modules/connectors/comments +0 -64
  116. data/_includes/themes/j1/modules/connectors/sharing +0 -29
  117. data/_includes/themes/j1/modules/connectors/survey/custom-provider.html +0 -30
  118. data/_includes/themes/j1/modules/connectors/survey/jotform.html +0 -32
  119. data/_includes/themes/j1/modules/connectors/surveys +0 -58
  120. data/_includes/themes/j1/modules/connectors/translator +0 -58
  121. data/_includes/themes/j1/modules/connectors/translators/custom-translator.html +0 -32
  122. data/_includes/themes/j1/modules/connectors/translators/google-translator.html +0 -53
  123. data/_includes/themes/j1/modules/search/algolia.html +0 -181
  124. data/_includes/themes/j1/modules/search/docsearch.html +0 -42
  125. data/assets/data/disqus.js +0 -81
  126. data/assets/data/hyvor.js +0 -72
@@ -1,31 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/comments/just-comments.html
4
- # Support of JustComments comment provider for J1 Template
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- # https://just-comments.com/
9
- #
10
- # Copyright (C) 2021 Juergen Adams
11
- #
12
- # J1 Template is licensed under the MIT License.
13
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
14
- # -----------------------------------------------------------------------------
15
- # Test data:
16
- # liquid_var: {{ liquid_var | debug }}
17
- # -----------------------------------------------------------------------------
18
- {% endcomment %}
19
-
20
- {% comment %} Liquid procedures
21
- -------------------------------------------------------------------------------- {% endcomment %}
22
-
23
- {% comment %} Variables
24
- -------------------------------------------------------------------------------- {% endcomment %}
25
-
26
-
27
-
28
- {% comment %} Main
29
- -------------------------------------------------------------------------------- {% endcomment %}
30
-
31
- <!-- Your code for the custom provider goes here -->
@@ -1,64 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/comments
4
- # Liquid CONNECTOR for comment providers supported by J1 Template
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
- {% assign comments = site.data.j1_config.comments.enabled %}
25
- {% assign comments_page = page.comments.enabled %}
26
- {% assign comment_provider = site.data.j1_config.comments.provider %}
27
-
28
- {% comment %} Main
29
- -------------------------------------------------------------------------------- {% endcomment %}
30
-
31
- {% comment %} Check comments settings from SITE configuration
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- <!-- [INFO ] [j1.modules.connectors.comments ] [ Check comments settings from SITE configuration ] -->
34
- <!-- [INFO ] [j1.modules.connectors.comments ] [ detected comments (site): {{comments}} ] -->
35
-
36
- {% comment %} Check comments settings from PAGE configuration
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- <!-- [INFO ] [j1.modules.connectors.comments ] [ Check comments settings from PAGE configuration ] -->
39
- <!-- [INFO ] [j1.modules.connectors.comments ] [ detected comments (page): {{page.comments}} ] -->
40
-
41
- {% if comments_page <> nil %}
42
- <!-- [INFO ] [j1.modules.connectors.comments ] [ overload comments settings from PAGE ] -->
43
- {% assign comments = comments_page %}
44
- {% endif %}
45
-
46
- {% if comments %}
47
- <!-- [INFO ] [j1.modules.connectors.comments ] [ start processing load region head, layout: {{page.layout}} ] -->
48
- {% case comment_provider %}
49
- {% when "disqus" %}
50
- <!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider DISQUS ] -->
51
- {% include themes/{{site.template.name}}/modules/connectors/comment/disqus.html %}
52
- {% when "hyvor" %}
53
- <!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider HYVOR ] -->
54
- {% include themes/{{site.template.name}}/modules/connectors/comment/hyvor.html %}
55
- {% when "facebook" %}
56
- <!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider FACEBOOK ] -->
57
- {% include themes/{{site.template.name}}/procedures/provider/comment/facebook.html %}
58
- {% when "custom" %}
59
- <!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider CUSTOM ] -->
60
- {% include themes/{{site.template.name}}/procedures/provider/comment/custom-provider.html %}
61
- {% endcase %}
62
-
63
- {% endif %}
64
- <!-- [INFO ] [j1.modules.connectors.comments ] [ end processing ] -->
@@ -1,29 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/procedures/sharing
4
- # Liquid CONNECTOR for sharing providers supported by J1 Template
5
- #
6
- # Product/Info:
7
- # http://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
-
25
-
26
- {% comment %} Main
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
-
29
-
@@ -1,30 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/comments/custom-provider.html
4
- # Support of custom comment provider for J1 Template
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
-
25
-
26
-
27
- {% comment %} Main
28
- -------------------------------------------------------------------------------- {% endcomment %}
29
-
30
- <!-- Your code for the custom provider goes here -->
@@ -1,32 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/comments/jotform.html
4
- # Support of survey provider JOTFORM for J1 Template
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
-
25
-
26
- {% comment %} Main
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
- <!-- [INFO ] [j1.modules.connectors.jotform ] [ place the thread container: start ] -->
29
- <div id="jotform"></div>
30
- <!-- [INFO ] [j1.modules.connectors.jotform ] [ connector depends on the cookie consent (personalization) ] -->
31
- <!-- [INFO ] [j1.modules.connectors.jotform ] [ connector (dynamic) JS is enabled/disabled on OptIn/Out ] -->
32
- <!-- [INFO ] [j1.modules.connectors.jotform ] [ place the thread container: end ] -->
@@ -1,58 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/surveys
4
- # Liquid CONNECTOR for survey providers supported by J1 Template
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
- {% assign comments = site.data.j1_config.survey.enabled %}
25
- {% assign comments_page = page.survey.enabled %}
26
- {% assign comment_provider = site.data.j1_config.survey.provider %}
27
-
28
- {% comment %} Main
29
- -------------------------------------------------------------------------------- {% endcomment %}
30
-
31
- {% comment %} Check comments settings from SITE configuration
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- <!-- [INFO ] [j1.modules.connectors.survey ] [ Check comments settings from SITE configuration ] -->
34
- <!-- [INFO ] [j1.modules.connectors.survey ] [ detected comments (site): {{comments}} ] -->
35
-
36
- {% comment %} Check comments settings from PAGE configuration
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- <!-- [INFO ] [j1.modules.connectors.survey ] [ Check comments settings from PAGE configuration ] -->
39
- <!-- [INFO ] [j1.modules.connectors.survey ] [ detected comments (page): {{page.survey}} ] -->
40
-
41
- {% if comments_page <> nil %}
42
- <!-- [INFO ] [j1.modules.connectors.survey ] [ overload comments settings from PAGE ] -->
43
- {% assign comments = comments_page %}
44
- {% endif %}
45
-
46
- {% if comments %}
47
- <!-- [INFO ] [j1.modules.connectors.survey ] [ start processing load region head, layout: {{page.layout}} ] -->
48
- {% case comment_provider %}
49
- {% when "jotform" %}
50
- <!-- [INFO ] [j1.modules.connectors.survey ] [ place comment provider JOTFORM ] -->
51
- {% include themes/{{site.template.name}}/modules/connectors/comment/disqus.html %}
52
- {% when "custom" %}
53
- <!-- [INFO ] [j1.modules.connectors.survey ] [ place comment provider CUSTOM ] -->
54
- {% include themes/{{site.template.name}}/procedures/provider/comment/custom-provider.html %}
55
- {% endcase %}
56
-
57
- {% endif %}
58
- <!-- [INFO ] [j1.modules.connectors.survey ] [ end processing ] -->
@@ -1,58 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/translator
4
- # Liquid CONNECTOR for translation providers supported by J1 Template
5
- #
6
- # Product/Info:
7
- # http://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
- {% assign translation = site.data.j1_config.translation.enabled %}
25
- {% assign translation_page = page.translation.enabled %}
26
- {% assign translation_provider = site.data.j1_config.translation.provider %}
27
-
28
- {% comment %} Main
29
- -------------------------------------------------------------------------------- {% endcomment %}
30
-
31
- {% comment %} Check translation settings from SITE configuration
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- <!-- [INFO ] [j1.modules.connectors.translation ] [ Check translation settings from SITE configuration ] -->
34
- <!-- [INFO ] [j1.modules.connectors.translation ] [ detected translation (site): {{translation}} ] -->
35
-
36
- {% comment %} Check translation settings from PAGE configuration
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- <!-- [INFO ] [j1.modules.connectors.translation ] [ Check translation settings from PAGE configuration ] -->
39
- <!-- [INFO ] [j1.modules.connectors.translation ] [ detected translation (page): {{page.translation}} ] -->
40
-
41
- {% if translation_page <> nil %}
42
- <!-- [INFO ] [j1.modules.connectors.translation ] [ overload translation settings from PAGE ] -->
43
- {% assign translation = translation_page %}
44
- {% endif %}
45
-
46
- {% if translation %}
47
- <!-- [INFO ] [j1.modules.connectors.translation ] [ start processing load region head, layout: {{page.layout}} ] -->
48
- {% case translation_provider %}
49
- {% when "google" %}
50
- <!-- [INFO ] [j1.modules.connectors.translation ] [ place Google Translator ] -->
51
- {% include themes/{{site.template.name}}/modules/connectors/translators/google-translator.html %}
52
- {% when "custom" %}
53
- <!-- [INFO ] [j1.modules.connectors.translation ] [ place Custom Translation Provider ] -->
54
- {% include themes/{{site.template.name}}/modules/connectors/translators/custom-translator.html %}
55
- {% endcase %}
56
-
57
- {% endif %}
58
- <!-- [INFO ] [j1.modules.connectors.translation ] [ end processing ] -->
@@ -1,32 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/translators/custom-translator.html
4
- # Support of your custom translation provider
5
- #
6
- # Product/Info:
7
- # http://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
- {% comment %} Liquid procedures
20
- -------------------------------------------------------------------------------- {% endcomment %}
21
-
22
- {% comment %} Variables
23
- -------------------------------------------------------------------------------- {% endcomment %}
24
-
25
-
26
- {% comment %} Main
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
-
29
- <!-- Your code for the custom provider goes here -->
30
-
31
-
32
-
@@ -1,53 +0,0 @@
1
- {% comment %}
2
- # -----------------------------------------------------------------------------
3
- # ~/_includes/themes/j1/modules/connectors/translators/google-translator.html
4
- # Connector for the Google Translator
5
- #
6
- # Product/Info:
7
- # http://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # Test data:
15
- # liquid_var: {{ liquid_var | debug }}
16
- # -----------------------------------------------------------------------------
17
- {% endcomment %}
18
-
19
-
20
- {% comment %} Liquid var initialization
21
- -------------------------------------------------------------------------------- {% endcomment %}
22
-
23
- {% comment %} Set config files
24
- -------------------------------------------------------------------------------- {% endcomment %}
25
- {% assign environment = site.environment %}
26
- {% assign contentLanguage = site.language %}
27
- {% assign blocks = site.data.blocks %}
28
- {% assign modules = site.data.modules %}
29
- {% assign template_config = site.data.j1_config %}
30
-
31
- {% comment %} Set config data
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- {% assign translator_defaults = modules.defaults.translator.defaults %}
34
- {% assign translator_settings = modules.translator.settings %}
35
-
36
- {% comment %} Set config options
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- {% assign translator_options = translator_defaults | merge: translator_settings %}
39
-
40
-
41
- {% comment %} Main
42
- -------------------------------------------------------------------------------- {% endcomment %}
43
- <!-- [INFO ] [j1.modules.connectors.translation ] [ place callback for the Google Translator API ] -->
44
- <script>
45
- function googleTranslateElementInit() {
46
- var gtAPI = new google.translate.TranslateElement({
47
- pageLanguage: '{{translator_options.contentLanguage}}',
48
- layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT
49
- },
50
- 'google_translate_element');
51
- j1.adapter.translator.postTranslateElementInit(gtAPI);
52
- }
53
- </script>
@@ -1,181 +0,0 @@
1
- ++++
2
- <div id="search-searchbar"></div>
3
-
4
- <div class="post-list" id="search-hits">
5
- {% for post in site.posts %}
6
- <div class="post-item">
7
- {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
8
- <span class="post-meta">{{ post.date | date: date_format }}</span>
9
-
10
- <h2>
11
- <a class="post-link" href="{{ post.url | relative_url }}">
12
- {{ post.title | escape }}
13
- </a>
14
- </h2>
15
-
16
- <div class="post-snippet">{{ post.excerpt }}</div>
17
- </div>
18
- {% endfor %}
19
- </div>
20
- ++++
21
-
22
- ++++
23
- <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.js"></script>
24
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.css">
26
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch-theme-algolia.min.css">
27
-
28
- <script>
29
-
30
- const hitTemplate = function(hit) {
31
- // var re = new RegExp("^\/posts");
32
- // var re = new RegExp("^\/pages");
33
- var re = new RegExp("^\/pages|^\/collections");
34
- if ( re.test(hit.url) ) {
35
- let date = '';
36
- if (hit.date) {
37
- date = moment.unix(hit.date).format('MMM D, YYYY');
38
- }
39
- // let url = `/jekyll-algolia-example${hit.url}#${hit.anchor}`;
40
- let url = `${hit.url}`;
41
-
42
- const title = hit._highlightResult.title.value;
43
- let breadcrumbs = '';
44
-
45
- if (hit._highlightResult.headings) {
46
- breadcrumbs = hit._highlightResult.headings.map(match => {
47
- return `<span class="post-breadcrumb">${match.value}</span>`
48
- }).join(' > ')
49
- }
50
-
51
- const content = hit._highlightResult.html.value;
52
-
53
- return `
54
- <div class="search-result-item">
55
- <div class="card">
56
- <div class="card-body">
57
- <span class="post-meta">${date}</span>
58
- <h2 class="card-title">${title}</h2>
59
- <h6 class="card-subtitle mb-2 text-muted">${hit.tagline}</h6>
60
- <div class="card-text">${content}</div>
61
- <div class="card-footer">
62
- <a class="card-link" href="${url}" target="blank">Read more ..</a>
63
- </div>
64
- </div>
65
- </div>
66
- </div>
67
- `;
68
- }
69
- }
70
-
71
- <!-- Access credentials and index -->
72
- const search = instantsearch({
73
- appId: '{{ site.algolia.application_id }}',
74
- apiKey: '{{ site.algolia.search_only_api_key }}',
75
- indexName: '{{ site.algolia.index_name }}',
76
- routing: true
77
- });
78
- // initialize SearchBox
79
- search.addWidget(
80
- instantsearch.widgets.searchBox({
81
- container: '#search-searchbar',
82
- placeholder: 'Search this site ..',
83
- poweredBy: true // This is required if you're on the free Community plan
84
- })
85
- );
86
- // initialize hits widget
87
- search.addWidget(
88
- instantsearch.widgets.hits({
89
- container: '#search-hits',
90
- templates: {
91
- empty: 'No results',
92
- item: hitTemplate
93
- }
94
- })
95
- );
96
- // initialize RefinementList
97
- search.addWidget(
98
- instantsearch.widgets.refinementList({
99
- container: '#refinement-list',
100
- attributeName: 'outsideDiameter.description',
101
- collapsible: true,
102
- operator: "and",
103
- limit: 5,
104
- sortBy: ["isRefined","count:asc","name:asc"],
105
- showMore: true,
106
- attributeName: 'tags'
107
- // cssClasses: {
108
- // "root": "ais-refinement-list",
109
- // "header": "ais-refinement-list--header",
110
- // "body": "ais-refinement-list--body",
111
- // "footer": "ais-refinement-list--footer",
112
- // "list": "ais-refinement-list--list",
113
- // "item": "ais-refinement-list--item",
114
- // "active": "ais-refinement-list--item__active",
115
- // "label": "ais-refinement-list--label",
116
- // "checkbox": "ais-refinement-list--checkbox",
117
- // "count": "ais-refinement-list--count"
118
- // }
119
- })
120
- );
121
-
122
- search.start();
123
- </script>
124
-
125
-
126
- <style>
127
- .ais-search-box {
128
- max-width: 100%;
129
- margin-bottom: 15px;
130
- }
131
-
132
- .ais-search-box--input {
133
- padding-left: 2rem !important;
134
- }
135
-
136
- .ais-search-box--magnifier {
137
- top: 0 !important;
138
- right: 0 !important;
139
- }
140
-
141
- .ais-search-box--reset {
142
- top: 0 !important;
143
- right: 0 !important;
144
- }
145
-
146
- .search-result-item {
147
- margin-bottom: 30px;
148
- }
149
-
150
- /*
151
- .post-item {
152
- margin-bottom: 30px;
153
- }
154
- .post-link .ais-Highlight {
155
- color: #111;
156
- font-style: normal;
157
- text-decoration: underline;
158
- }
159
- .post-breadcrumbs {
160
- color: #424242;
161
- display: block;
162
- }
163
- .post-breadcrumb {
164
- font-size: 18px;
165
- color: #424242;
166
- }
167
- .post-breadcrumb .ais-Highlight {
168
- font-weight: bold;
169
- font-style: normal;
170
- }
171
- .post-snippet .ais-Highlight {
172
- color: #2a7ae2;
173
- font-style: normal;
174
- font-weight: bold;
175
- }
176
- .post-snippet img {
177
- display: none;
178
- }
179
- */
180
-
181
- </style>
@@ -1,42 +0,0 @@
1
- <div>
2
- <form class="bd-search d-flex align-items-center">
3
- <span class="algolia-autocomplete algolia-autocomplete-left" style="position: relative; display: inline-block; direction: ltr;">
4
- <span class="bmd-form-group"><input type="search" class="form-control ds-input" id="search-input" placeholder="Search..." autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-owns="algolia-autocomplete-listbox-0" dir="auto" style="position: relative; vertical-align: top;"></span>
5
- <pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre; font-family: Roboto, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; word-spacing: 0px; letter-spacing: normal; text-indent: 0px; text-rendering: auto; text-transform: none;">c</pre>
6
- <span class="ds-dropdown-menu ds-with-1" role="listbox" id="algolia-autocomplete-listbox-0" style="position: absolute; top: 100%; z-index: 100; left: 0px; right: auto; display: none;">
7
- <div class="ds-dataset-1"></div>
8
- </span>
9
- </span>
10
- <button class="btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-bs-toggle="collapse" data-bs-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs avigation">
11
- <svg class="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30" height="30" focusable="false">
12
- <title>Menu</title>
13
- <path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"></path>
14
- </svg>
15
- </button>
16
- </form>
17
- </div>
18
-
19
- {% if page.layout == "page" %}
20
- <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
21
- <script type="text/javascript">
22
- var docsearch = docsearch({
23
- apiKey: 'b5c13bef25101d81f781cc15f4485a52',
24
- indexName: 'fezvrasta_bootstrap_material_design',
25
- inputSelector: '#search-input',
26
- handleSelected: function (input, event, suggestion) {
27
- var url = suggestion.url;
28
- url = suggestion.isLvl1 ? url.split('#')[0]: url;
29
- // If it's a title we remove the anchor so it does not jump.
30
- window.location.href = url;
31
- },
32
- transformData: function (hits) {
33
- return hits.map(function (hit) {
34
- console.log(hit.url);
35
- hit.url = hit.url.replace('http://localhost:41000/', '/');
36
- return hit;
37
- });
38
- },
39
- debug: false // Set debug to true if you want to inspect the dropdown
40
- });
41
- </script>
42
- {% endif %}