j1-template 2022.0.9 → 2022.0.13
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/modules/ads/google_ad_content_home.html +11 -0
- data/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
- data/apps/public/cc/index.adoc +0 -1
- data/assets/data/article_navigator/index.html +0 -1
- data/assets/data/news_panel_posts/index.html +0 -1
- data/assets/error_pages/HTTP445.html +5 -4
- data/assets/error_pages/HTTP446.html +2 -2
- data/assets/error_pages/HTTP447.html +110 -0
- data/assets/error_pages/HTTP448.html +111 -0
- data/assets/themes/j1/adapter/js/advertising.js +442 -0
- data/assets/themes/j1/adapter/js/algolia.js +10 -13
- data/assets/themes/j1/adapter/js/analytics.js +259 -0
- data/assets/themes/j1/adapter/js/asciidoctor.js +10 -13
- data/assets/themes/j1/adapter/js/attic.js +10 -5
- data/assets/themes/j1/adapter/js/bmd.js +10 -14
- data/assets/themes/j1/adapter/js/carousel.js +10 -13
- data/assets/themes/j1/adapter/js/clipboard.js +9 -10
- data/assets/themes/j1/adapter/js/comments.js +407 -0
- data/assets/themes/j1/adapter/js/cookieConsent.js +107 -84
- data/assets/themes/j1/adapter/js/fab.js +11 -11
- data/assets/themes/j1/adapter/js/framer.js +59 -64
- data/assets/themes/j1/adapter/js/j1.js +203 -258
- data/assets/themes/j1/adapter/js/justifiedGallery.js +12 -14
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +10 -13
- data/assets/themes/j1/adapter/js/lightbox.js +12 -9
- data/assets/themes/j1/adapter/js/logger.js +11 -5
- data/assets/themes/j1/adapter/js/mmenu.js +11 -12
- data/assets/themes/j1/adapter/js/navigator.js +13 -12
- data/assets/themes/j1/adapter/js/quicksearch.js +10 -13
- data/assets/themes/j1/adapter/js/rouge.js +11 -14
- data/assets/themes/j1/adapter/js/rtable.js +10 -13
- data/assets/themes/j1/adapter/js/rtextResizer.js +10 -13
- data/assets/themes/j1/adapter/js/scroller.js +14 -12
- data/assets/themes/j1/adapter/js/themer.js +12 -3
- data/assets/themes/j1/adapter/js/toccer.js +10 -13
- data/assets/themes/j1/adapter/js/translator.js +50 -96
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +6 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +13 -5
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/advertising/js/google/adInitializer.js +127 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +11 -2
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +1 -1
- data/assets/themes/j1/modules/scroller/js/scroller.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -13
- data/lib/starter_web/_data/apps/carousel.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/carousel.yml +3 -2
- data/lib/starter_web/_data/apps/defaults/justifiedGallery.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/lightGallery.yml +2 -2
- data/lib/starter_web/_data/apps/defaults/lightbox.yml +2 -2
- data/lib/starter_web/_data/apps/justifiedGallery.yml +2 -2
- data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +2 -2
- data/lib/starter_web/_data/apps/lightGallery.yml +2 -2
- data/lib/starter_web/_data/apps/lightbox.yml +2 -2
- data/lib/starter_web/_data/blocks/banner.yml +3 -2
- data/lib/starter_web/_data/blocks/defaults/banner.yml +9 -0
- data/lib/starter_web/_data/blocks/defaults/footer.yml +9 -0
- data/lib/starter_web/_data/blocks/defaults/panel.yml +9 -0
- data/lib/starter_web/_data/blocks/footer.yml +3 -2
- data/lib/starter_web/_data/blocks/panel.yml +3 -2
- data/lib/starter_web/_data/builder/blog_navigator.yml +3 -2
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +8 -8
- data/lib/starter_web/_data/j1_config.yml +0 -116
- data/lib/starter_web/_data/layouts/default.yml +21 -21
- data/lib/starter_web/_data/layouts/home.ads.yml +262 -0
- data/lib/starter_web/_data/layouts/home.no-ads.yml +262 -0
- data/lib/starter_web/_data/layouts/home.yml +24 -0
- data/lib/starter_web/_data/layouts/page.yml +7 -18
- data/lib/starter_web/_data/layouts/post.yml +0 -11
- data/lib/starter_web/_data/modules/advertising.yml +139 -12
- data/lib/starter_web/_data/modules/analytics.yml +99 -0
- data/lib/starter_web/_data/modules/attics.yml +3 -2
- data/lib/starter_web/_data/modules/comments.yml +55 -0
- data/lib/starter_web/_data/modules/cookieconsent.yml +2 -1
- data/lib/starter_web/_data/modules/cookies.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/advertising.yml +105 -0
- data/lib/starter_web/_data/modules/defaults/analytics.yml +93 -0
- data/lib/starter_web/_data/modules/defaults/attics.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/authentication.yml +51 -48
- data/lib/starter_web/_data/modules/defaults/comments.yml +114 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/cookies.yml +105 -26
- data/lib/starter_web/_data/modules/defaults/fab.yml +4 -2
- data/lib/starter_web/_data/modules/defaults/framer.yml +2 -3
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/log4r.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -2
- data/lib/starter_web/_data/modules/defaults/quicksearch.yml +4 -3
- data/lib/starter_web/_data/modules/defaults/rtable.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/scoller.yml +3 -2
- data/lib/starter_web/_data/modules/defaults/themer.yml +119 -118
- data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
- data/lib/starter_web/_data/modules/fab.yml +3 -2
- data/lib/starter_web/_data/modules/framer.yml +3 -4
- data/lib/starter_web/_data/modules/log4r.yml +2 -2
- data/lib/starter_web/_data/modules/navigator.yml +4 -2
- data/lib/starter_web/_data/modules/quicksearch.yml +3 -3
- data/lib/starter_web/_data/modules/rtable.yml +3 -3
- data/lib/starter_web/_data/modules/scroller.yml +2 -3
- data/lib/starter_web/_data/modules/themer.yml +2 -3
- data/lib/starter_web/_data/modules/toccer.yml +3 -3
- data/lib/starter_web/_data/modules/translator.yml +1 -1
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +2 -2
- data/lib/starter_web/_data/plugins/paginator.yml +2 -2
- data/lib/starter_web/_data/resources.yml +447 -290
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_content_home.html +11 -0
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.ads.asciidoc +196 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.comments.asciidoc +182 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +1 -1
- data/lib/starter_web/index.html +0 -4
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +0 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +265 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +237 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +237 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +62 -0
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/google-ad.js +130 -0
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +0 -1
- data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +23 -2
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +100 -166
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +25 -70
- data/_includes/themes/j1/blocks/ads/ad.html +0 -64
- data/_includes/themes/j1/modules/boards/news_pin_board.html +0 -183
- data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +0 -62
- data/_includes/themes/j1/modules/connectors/ads +0 -56
- data/_includes/themes/j1/modules/connectors/analytic/custom-provider.html +0 -32
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +0 -30
- data/_includes/themes/j1/modules/connectors/analytics +0 -60
- data/_includes/themes/j1/modules/connectors/comment/commento.html +0 -31
- data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +0 -32
- data/_includes/themes/j1/modules/connectors/comment/facebook.html +0 -30
- data/_includes/themes/j1/modules/connectors/comment/hyvor.html +0 -32
- data/_includes/themes/j1/modules/connectors/comment/just-comments.html +0 -31
- data/_includes/themes/j1/modules/connectors/comments +0 -64
- data/_includes/themes/j1/modules/connectors/sharing +0 -29
- data/_includes/themes/j1/modules/connectors/survey/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/survey/jotform.html +0 -32
- data/_includes/themes/j1/modules/connectors/surveys +0 -58
- data/_includes/themes/j1/modules/connectors/translator +0 -58
- data/_includes/themes/j1/modules/connectors/translators/custom-translator.html +0 -32
- data/_includes/themes/j1/modules/connectors/translators/google-translator.html +0 -53
- data/_includes/themes/j1/modules/search/algolia.html +0 -181
- data/_includes/themes/j1/modules/search/docsearch.html +0 -42
- data/assets/data/disqus.js +0 -81
- data/assets/data/hyvor.js +0 -72
- data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +0 -244
- data/lib/starter_web/pages/_test_pages/_includes/attributes.asciidoc +0 -110
- data/lib/starter_web/pages/_test_pages/_includes/documents/100_gistblock.asciidoc +0 -28
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +0 -14
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +0 -337
- data/lib/starter_web/pages/_test_pages/_includes/documents/tables/bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +0 -220
- data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +0 -177
- data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +0 -148
- data/lib/starter_web/pages/_test_pages/attribute-changes-01-tester.adoc +0 -226
- data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +0 -109
- data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +0 -127
- data/lib/starter_web/pages/_test_pages/card-tester.adoc +0 -128
- data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +0 -96
- data/lib/starter_web/pages/_test_pages/deepl.0.adoc +0 -258
- data/lib/starter_web/pages/_test_pages/deepl.adoc +0 -204
- data/lib/starter_web/pages/_test_pages/desandro-button.adoc +0 -171
- data/lib/starter_web/pages/_test_pages/desandro.adoc +0 -147
- data/lib/starter_web/pages/_test_pages/flipcard-1-tester.adoc +0 -308
- data/lib/starter_web/pages/_test_pages/formular-01-tester.adoc +0 -167
- data/lib/starter_web/pages/_test_pages/formular-02-tester.adoc +0 -727
- data/lib/starter_web/pages/_test_pages/google-translate-tester.0.adoc +0 -113
- data/lib/starter_web/pages/_test_pages/google-translate-tester.1.adoc +0 -231
- data/lib/starter_web/pages/_test_pages/google-translate-tester.3.adoc +0 -149
- data/lib/starter_web/pages/_test_pages/google-translate-tester.4.adoc +0 -237
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-2.adoc +0 -183
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-3.adoc +0 -235
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-4.adoc +0 -222
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-5.adoc +0 -119
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.1.adoc +0 -236
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +0 -225
- data/lib/starter_web/pages/_test_pages/list-group-tester.adoc +0 -265
- data/lib/starter_web/pages/_test_pages/tictok.adoc +0 -127
@@ -1,30 +0,0 @@
|
|
1
|
-
{% comment %}
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/_includes/themes/j1/modules/connectors/analytic/google-analytics.html
|
4
|
-
# Support of analytics provider Google Analytics for 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 tracking_id = site.data.j1_config.analytics.google.tracking_id %}
|
25
|
-
|
26
|
-
{% comment %} Main
|
27
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
28
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ GA depends on the cookie consent and is enabled/disabled dynamically on OptIn/Out ] -->
|
29
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ if analytics enabled, load the GA library statically by default ] -->
|
30
|
-
<script async id="google-tag-manager" src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script>
|
@@ -1,60 +0,0 @@
|
|
1
|
-
{% comment %}
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/_includes/themes/j1/modules/connectors/analytics
|
4
|
-
# Liquid CONNECTOR for Analytic 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 analytics = site.data.j1_config.analytics.enabled %}
|
25
|
-
{% assign analytics_page = page.analytics.enabled %}
|
26
|
-
{% assign analytics_provider = site.data.j1_config.analytics.provider %}
|
27
|
-
|
28
|
-
|
29
|
-
{% comment %} Main
|
30
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
31
|
-
|
32
|
-
{% comment %} Check analytics settings from SITE configuration
|
33
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
34
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ Check analytics settings from SITE configuration ] -->
|
35
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ detected analytics (site): {{analytics}} ] -->
|
36
|
-
|
37
|
-
{% comment %} Check analytics settings from PAGE configuration
|
38
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
39
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ Check analytics settings from PAGE configuration ] -->
|
40
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ detected analytics (page): {{page.analytics}} ] -->
|
41
|
-
|
42
|
-
{% if analytics_page <> nil %}
|
43
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ overload analytics settings from PAGE ] -->
|
44
|
-
{% assign analytics = analytics_page %}
|
45
|
-
{% endif %}
|
46
|
-
|
47
|
-
{% if analytics %}
|
48
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ detected analytics provider (j1_config): {{analytics_provider}}} ] -->
|
49
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ start processing load region head, layout: {{page.layout}} ] -->
|
50
|
-
{% case analytics_provider %}
|
51
|
-
{% when "google" %}
|
52
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ place Google Analytics ] -->
|
53
|
-
{% include themes/{{site.template.name}}/modules/connectors/analytic/google-analytics.html %}
|
54
|
-
{% when "custom" %}
|
55
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ place Custom Provider ] -->
|
56
|
-
{% include themes/{{site.template.name}}/modules/connectors/analytic/custom-analytics.html %}
|
57
|
-
{% endcase %}
|
58
|
-
|
59
|
-
{% endif %}
|
60
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ end processing ] -->
|
@@ -1,31 +0,0 @@
|
|
1
|
-
{% comment %}
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/_includes/themes/j1/modules/connectors/comments/commento.html
|
4
|
-
# Support of commento comment provider for J1 Template
|
5
|
-
#
|
6
|
-
# Product/Info:
|
7
|
-
# https://jekyll.one
|
8
|
-
# https://commento.io/
|
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,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/disqus.html
|
4
|
-
# Support of comment provider DISQUS 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.disqus ] [ place the thread container: start ] -->
|
29
|
-
<div id="disqus_thread"></div>
|
30
|
-
<!-- [INFO ] [j1.modules.connectors.disqus ] [ connector depends on the cookie consent (personalization) ] -->
|
31
|
-
<!-- [INFO ] [j1.modules.connectors.disqus ] [ connector (dynamic) JS is enabled/disabled on OptIn/Out ] -->
|
32
|
-
<!-- [INFO ] [j1.modules.connectors.disqus ] [ place the thread container: end ] -->
|
@@ -1,30 +0,0 @@
|
|
1
|
-
{% comment %}
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/_includes/themes/j1/modules/connectors/comments/custom-provider.html
|
4
|
-
# Support of comment provider Facebook 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/hyvor-talk.html
|
4
|
-
# Support of hyvor talk comment provider for J1 Template
|
5
|
-
#
|
6
|
-
# Product/Info:
|
7
|
-
# https://jekyll.one
|
8
|
-
# https://talk.hyvor.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
|
-
{% comment %} Main
|
27
|
-
<!-- thread container places dynamically by j1 adapter
|
28
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
29
|
-
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector depends on the cookie consent (personalization) ] -->
|
30
|
-
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector is enabled/disabled dynamically by j1 adapter on OptIn/Out ] -->
|
31
|
-
<!-- [INFO ] [j1.modules.connectors.hyvor ] [ thread container disabled, placed dynamically by j1 adapter ] -->
|
32
|
-
<!-- div id="hyvor-talk-view"></div -->
|
@@ -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>
|