j1-template 2021.1.12 → 2021.1.17
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/blocks/footer/boxes/issue.proc +28 -5
- data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +66 -23
- data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +0 -1
- data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +16 -1
- data/_includes/themes/j1/layouts/content_generator_app.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +197 -219
- data/_includes/themes/j1/layouts/content_generator_collection.html +4 -2
- data/_includes/themes/j1/layouts/content_generator_page.html +4 -1
- data/_includes/themes/j1/layouts/content_generator_post.html +31 -23
- data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +82 -4
- data/_includes/themes/j1/modules/connectors/comment/commento.html +31 -0
- data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +7 -8
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +12 -54
- data/_includes/themes/j1/modules/connectors/comment/facebook.html +7 -8
- data/_includes/themes/j1/modules/connectors/comment/hyvor.html +33 -0
- data/_includes/themes/j1/modules/connectors/comment/just-comments.html +31 -0
- data/_includes/themes/j1/modules/connectors/comments +3 -0
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +27 -5
- data/_includes/themes/j1/procedures/posts/pager.proc +123 -0
- data/_layouts/default.html +52 -1
- data/assets/data/cookieconsent.html +0 -2
- data/assets/data/disqus.js +81 -0
- data/assets/data/hyvor.js +72 -0
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu_toc.html +20 -1
- data/assets/data/panel.html +28 -7
- data/assets/error_pages/HTTP204.html +2 -1
- data/assets/error_pages/HTTP400.html +2 -1
- data/assets/error_pages/HTTP401.html +2 -1
- data/assets/error_pages/HTTP403.html +2 -1
- data/assets/error_pages/HTTP404.html +2 -1
- data/assets/error_pages/HTTP444.html +93 -0
- data/assets/error_pages/HTTP500.html +2 -1
- data/assets/error_pages/HTTP501.html +2 -1
- data/assets/error_pages/HTTP502.html +2 -1
- data/assets/error_pages/HTTP503.html +2 -1
- data/assets/themes/j1/adapter/js/algolia.js +10 -10
- data/assets/themes/j1/adapter/js/asciidoctor.js +6 -6
- data/assets/themes/j1/adapter/js/attic.js +17 -17
- data/assets/themes/j1/adapter/js/bmd.js +6 -6
- data/assets/themes/j1/adapter/js/carousel.js +10 -10
- data/assets/themes/j1/adapter/js/clipboard.js +10 -10
- data/assets/themes/j1/adapter/js/cookieConsent.js +54 -27
- data/assets/themes/j1/adapter/js/fam.js +34 -34
- data/assets/themes/j1/adapter/js/framer.js +6 -6
- data/assets/themes/j1/adapter/js/j1.js +444 -259
- data/assets/themes/j1/adapter/js/justifiedGallery.js +11 -11
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +19 -19
- data/assets/themes/j1/adapter/js/lightbox.js +6 -6
- data/assets/themes/j1/adapter/js/logger.js +7 -7
- data/assets/themes/j1/adapter/js/mmenu.js +25 -25
- data/assets/themes/j1/adapter/js/navigator.js +55 -48
- data/assets/themes/j1/adapter/js/quicksearch.js +6 -6
- data/assets/themes/j1/adapter/js/rouge.js +7 -7
- data/assets/themes/j1/adapter/js/rtable.js +6 -6
- data/assets/themes/j1/adapter/js/themer.js +35 -41
- data/assets/themes/j1/adapter/js/toccer.js +9 -9
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +3 -3
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +27 -20
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -2
- data/assets/themes/j1/modules/lunrSearch/js/quicksearch.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +74 -55
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +75 -57
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +4 -5
- data/lib/starter_web/_config.yml +42 -24
- data/lib/starter_web/_data/blocks/footer.yml +52 -20
- data/lib/starter_web/_data/blocks/panel.yml +4 -4
- data/lib/starter_web/_data/builder/blog_navigator.yml +9 -192
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +389 -0
- data/lib/starter_web/_data/j1_config.yml +66 -41
- data/lib/starter_web/_data/locales/be.yml +269 -0
- data/lib/starter_web/_data/locales/cs.yml +218 -0
- data/lib/starter_web/_data/locales/da.yml +213 -0
- data/lib/starter_web/_data/locales/de.yml +222 -0
- data/lib/starter_web/_data/locales/el.yml +215 -0
- data/lib/starter_web/_data/locales/en.yml +215 -0
- data/lib/starter_web/_data/locales/es.yml +219 -0
- data/lib/starter_web/_data/locales/et.yml +207 -0
- data/lib/starter_web/_data/locales/fi.yml +211 -0
- data/lib/starter_web/_data/locales/fr.yml +219 -0
- data/lib/starter_web/_data/locales/hr.yml +240 -0
- data/lib/starter_web/_data/locales/hu.yml +196 -0
- data/lib/starter_web/_data/locales/it.yml +215 -0
- data/lib/starter_web/_data/locales/lv.yml +233 -0
- data/lib/starter_web/_data/locales/nl.yml +213 -0
- data/lib/starter_web/_data/locales/pl.yml +241 -0
- data/lib/starter_web/_data/locales/pt.yml +217 -0
- data/lib/starter_web/_data/locales/readme +4 -0
- data/lib/starter_web/_data/locales/ro.yml +209 -0
- data/lib/starter_web/_data/locales/ru.yml +269 -0
- data/lib/starter_web/_data/locales/sk.yml +211 -0
- data/lib/starter_web/_data/locales/sl.yml +209 -0
- data/lib/starter_web/_data/locales/sv.yml +207 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +10 -10
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -0
- data/lib/starter_web/_data/modules/themer.yml +1 -0
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +7 -6
- data/lib/starter_web/_data/plugins/paginator.yml +3 -0
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/date-i18n.rb +67 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/markus-spiske-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthew-dockery-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-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-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +1 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +1 -1
- data/lib/starter_web/index.html +3 -3
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +3 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +3 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +3 -0
- data/lib/starter_web/pages/public/blog/navigator/archive.html +80 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +94 -26
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +81 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +95 -37
- data/lib/starter_web/pages/public/blog/navigator/index.html +4 -0
- data/lib/starter_web/pages/public/cookieConsent.adoc +3 -0
- data/lib/starter_web/pages/public/learn/quickstart.adoc +473 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +0 -2
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +0 -2
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +0 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -1
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +116 -0
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +94 -0
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +320 -0
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +123 -0
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +81 -20
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +34 -16
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +41 -4
- data/_includes/themes/j1/procedures/global/pager.proc +0 -79
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +0 -244
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450ab87c08a2d4dbf209d876c093c719728b94f8442d6102a9b70aa5d19c83a3
|
4
|
+
data.tar.gz: 490fba75a77784eea4ac47ee3b61a8cbe31e9698539571218a95ed3c9d9388e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c3741110b08384383ce195f7f5de6443343d12b825d4699f36d30fa86169b2fa9c362dce3ddfcc3e4a65b9eff5f7d9f9ec88637c985b538dda6f041790cf7cc
|
7
|
+
data.tar.gz: 18bbbddf4bf71098a1dd12aaa280f2eb3278569870b3d256d92e14e3bf74418cc08a1f86c705b41a35c8f5d1a56c6f91c538c10f71d6508bce8c9a611f8b802b
|
@@ -22,11 +22,34 @@
|
|
22
22
|
|
23
23
|
{% comment %} Variables
|
24
24
|
-------------------------------------------------------------------------------- {% endcomment %}
|
25
|
-
{% capture date_template %}{{footer_options.issue.date}} | date: "{{footer_options.issue.date_format}}" {% endcapture %}
|
26
|
-
{% assign date = site.time | date: "%A, %-d %B %Y" %}
|
27
25
|
|
28
|
-
|
29
|
-
|
26
|
+
{% comment %} language detection
|
27
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
28
|
+
{% if site.language == "en" %}
|
29
|
+
{% assign language = "en" %}
|
30
|
+
{% elsif site.language == "de"%}
|
31
|
+
{% assign language = "de" %}
|
32
|
+
{% else %}
|
33
|
+
{% assign language = "en" %}
|
34
|
+
{% endif %}
|
35
|
+
|
36
|
+
{% if language == "en" %}
|
37
|
+
{% assign issue_text = footer_options.issue.en.text %}
|
38
|
+
{% assign date_format = footer_options.issue.en.date_format %}
|
39
|
+
{% endif %}
|
40
|
+
|
41
|
+
{% if language == "de" %}
|
42
|
+
{% assign issue_text = footer_options.issue.de.text %}
|
43
|
+
{% assign date_format = footer_options.issue.de.date_format %}
|
44
|
+
{% endif %}
|
45
|
+
|
46
|
+
{% capture modified %}{{issue_text}}: {{site.time | localize: date_format}}{% endcapture %}
|
47
|
+
|
48
|
+
{% comment %} Debugging
|
49
|
+
--------------------------------------------------------------------------------
|
50
|
+
footer_options.issue: {{footer_options.issue | debug}}
|
51
|
+
--------------------------------------------------------------------------------
|
52
|
+
{% endcomment %}
|
30
53
|
|
31
54
|
{% comment %} Main
|
32
55
|
-------------------------------------------------------------------------------- {% endcomment %}
|
@@ -34,5 +57,5 @@
|
|
34
57
|
<!-- [INFO ] [issue.proc ] [ issue date information ] -->
|
35
58
|
{% if footer_options.issue.enabled %}
|
36
59
|
<!-- [INFO ] [issue.proc ] [ place issue ] -->
|
37
|
-
<p style="color: rgba(255, 255, 255, 0.5)">{{
|
60
|
+
<p style="color: rgba(255, 255, 255, 0.5)">{{modified}}</p>
|
38
61
|
{% endif %}
|
@@ -24,43 +24,86 @@
|
|
24
24
|
-------------------------------------------------------------------------------- {% endcomment %}
|
25
25
|
{% assign legals = include.legals %}
|
26
26
|
|
27
|
-
|
27
|
+
{% comment %} language detection
|
28
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
29
|
+
{% if site.language == "en" %}
|
30
|
+
{% assign language = "en" %}
|
31
|
+
{% elsif site.language == "de"%}
|
32
|
+
{% assign language = "de" %}
|
33
|
+
{% else %}
|
34
|
+
{% assign language = "en" %}
|
35
|
+
{% endif %}
|
36
|
+
|
37
|
+
{% comment %} Debugging
|
38
|
+
--------------------------------------------------------------------------------
|
39
|
+
legal_item: {{legal_item.legal | debug}}
|
40
|
+
--------------------------------------------------------------------------------
|
41
|
+
{% endcomment %}
|
28
42
|
|
29
43
|
{% comment %} Main
|
30
44
|
-------------------------------------------------------------------------------- {% endcomment %}
|
45
|
+
<!-- [INFO ] [legal_statements.proc ] [ process legal statements configured ] -->
|
31
46
|
<ul class="list-inline terms-menu">
|
32
47
|
{% for legal_item in legals %}
|
33
48
|
|
34
|
-
{%
|
35
|
-
|
36
|
-
|
49
|
+
{% if language == "en" %}
|
50
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'copyright' %}
|
51
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
52
|
+
{% endif %}
|
37
53
|
|
38
|
-
|
39
|
-
|
40
|
-
|
54
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'impress' %}
|
55
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
56
|
+
{% endif %}
|
41
57
|
|
42
|
-
|
43
|
-
|
44
|
-
|
58
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'terms' %}
|
59
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
60
|
+
{% endif %}
|
45
61
|
|
46
|
-
|
47
|
-
|
48
|
-
|
62
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'privacy' %}
|
63
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
64
|
+
{% endif %}
|
49
65
|
|
50
|
-
|
51
|
-
|
52
|
-
|
66
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'licence' %}
|
67
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
68
|
+
{% endif %}
|
53
69
|
|
54
|
-
|
55
|
-
|
56
|
-
|
70
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'support' %}
|
71
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
72
|
+
{% endif %}
|
57
73
|
|
58
|
-
|
59
|
-
|
74
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'comments' %}
|
75
|
+
<li><a href="{{legal_item.legal.en.href}}">{{legal_item.legal.en.statement}}</a></li>
|
76
|
+
{% endif %}
|
60
77
|
{% endif %}
|
61
78
|
|
62
|
-
{% if
|
63
|
-
|
79
|
+
{% if language == "de" %}
|
80
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'copyright' %}
|
81
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
82
|
+
{% endif %}
|
83
|
+
|
84
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'impress' %}
|
85
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
86
|
+
{% endif %}
|
87
|
+
|
88
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'terms' %}
|
89
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
90
|
+
{% endif %}
|
91
|
+
|
92
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'privacy' %}
|
93
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
94
|
+
{% endif %}
|
95
|
+
|
96
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'licence' %}
|
97
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
98
|
+
{% endif %}
|
99
|
+
|
100
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'support' %}
|
101
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
102
|
+
{% endif %}
|
103
|
+
|
104
|
+
{% if legal_item.legal.enabled and legal_item.legal.type == 'comments' %}
|
105
|
+
<li><a href="{{legal_item.legal.de.href}}">{{legal_item.legal.de.statement}}</a></li>
|
106
|
+
{% endif %}
|
64
107
|
{% endif %}
|
65
108
|
|
66
109
|
{% endfor %}
|
@@ -26,7 +26,6 @@
|
|
26
26
|
{% assign tagline = include.tagline %}
|
27
27
|
{% assign links = include.links %}
|
28
28
|
|
29
|
-
|
30
29
|
{% comment %} Main
|
31
30
|
================================================================================ {% endcomment %}
|
32
31
|
<!-- [INFO ] [links_box.proc ] [ place links box ] -->
|
@@ -28,6 +28,16 @@
|
|
28
28
|
{% assign posts_max = include.max_posts %}
|
29
29
|
{% assign posts = include.posts %}
|
30
30
|
|
31
|
+
{% comment %} language detection
|
32
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
33
|
+
{% if site.language == "en" %}
|
34
|
+
{% assign language = "en" %}
|
35
|
+
{% elsif site.language == "de"%}
|
36
|
+
{% assign language = "de" %}
|
37
|
+
{% else %}
|
38
|
+
{% assign language = "en" %}
|
39
|
+
{% endif %}
|
40
|
+
|
31
41
|
{% comment %} post loop counter correction
|
32
42
|
-------------------------------------------------------------------------------- {% endcomment %}
|
33
43
|
{% assign max_posts = posts_max | minus:'1' %}
|
@@ -52,7 +62,12 @@
|
|
52
62
|
{% assign posts_written = posts_written | plus:'1' %}
|
53
63
|
<li>
|
54
64
|
<a href="{{post.url}}">{{post.title}}</a>
|
55
|
-
|
65
|
+
{% if language == "en" %}
|
66
|
+
<small class="text-uppercase">{{post.date | localize: "%Y %B, %-d"}}</small>
|
67
|
+
{% endif %}
|
68
|
+
{% if language == "de" %}
|
69
|
+
<small class="text-uppercase">{{post.date | localize: "%-d. %B %Y"}}</small>
|
70
|
+
{% endif %}
|
56
71
|
</li>
|
57
72
|
{% endif %}
|
58
73
|
{% endfor %}
|
@@ -26,7 +26,7 @@
|
|
26
26
|
{% comment %} Main
|
27
27
|
-------------------------------------------------------------------------------- {% endcomment %}
|
28
28
|
<!-- [INFO ] [j1.layout.content_generator_app.html ] [ begin place content ] -->
|
29
|
-
<main id="app-content" class="col-md-12" style="padding-left:60px;padding-right:60px;">
|
29
|
+
<main id="main-content" id="app-content" class="col-md-12" style="padding-left:60px;padding-right:60px;">
|
30
30
|
{{content}}
|
31
31
|
</main>
|
32
32
|
<!-- [INFO ] [j1.layout.content_generator_app.html ] [ end place content] -->
|
@@ -26,247 +26,225 @@
|
|
26
26
|
{% capture collate_timeline %}themes/{{site.template.name}}/procedures/posts/collate_timeline.proc{% endcapture %}
|
27
27
|
{% capture create_navigator %}themes/{{site.template.name}}/procedures/posts/create_navigator.proc{% endcapture %}
|
28
28
|
|
29
|
-
{% comment %} Variables
|
30
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
31
|
-
{% assign view_config_article_navigator = site.data.builder.blog_navigator.article_navigator %}
|
32
|
-
{% assign article_navigator_description = view_config_article_navigator.description %}
|
33
|
-
{% assign view_config_article_previewer = site.data.builder.blog_navigator.article_previewer %}
|
34
|
-
{% assign article_previewer_description = view_config_article_previewer.description %}
|
35
|
-
|
36
|
-
|
37
29
|
{% comment %} Set config files
|
38
30
|
-------------------------------------------------------------------------------- {% endcomment %}
|
39
|
-
{% assign
|
31
|
+
{% assign template_config = site.data.j1_config %}
|
32
|
+
{% assign blocks = site.data.blocks %}
|
33
|
+
{% assign modules = site.data.modules %}
|
34
|
+
{% assign builder = site.data.builder %}
|
35
|
+
{% assign plugins = site.data.plugins %}
|
40
36
|
|
41
37
|
{% comment %} Set config data
|
42
38
|
-------------------------------------------------------------------------------- {% endcomment %}
|
43
|
-
{% assign
|
44
|
-
{% assign
|
39
|
+
{% assign blog_navigator_defaults = builder.defaults.blog_navigator.defaults %}
|
40
|
+
{% assign blog_navigator_settings = builder.blog_navigator.settings %}
|
41
|
+
{% assign paginator_defaults = plugins.defaults.paginator.defaults %}
|
42
|
+
{% assign paginator_settings = plugins.paginator.settings %}
|
45
43
|
|
46
44
|
{% comment %} Set config options
|
47
45
|
-------------------------------------------------------------------------------- {% endcomment %}
|
48
|
-
{% assign
|
46
|
+
{% assign blog_navigator_options = blog_navigator_defaults | merge: blog_navigator_settings %}
|
47
|
+
{% assign paginator_options = paginator_defaults | merge: paginator_settings %}
|
48
|
+
|
49
|
+
{% comment %} Variables
|
50
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
51
|
+
{% assign article_navigator = builder.blog_navigator.settings.article_navigator %}
|
52
|
+
{% assign article_previewer = builder.blog_navigator.settings.article_previewer %}
|
53
|
+
{% assign article_navigator_description = blog_navigator_options.article_navigator.description %}
|
54
|
+
{% assign article_previewer_description = blog_navigator_options.article_previewer.description %}
|
49
55
|
|
50
|
-
{% assign previewer
|
51
|
-
{% assign paginate
|
52
|
-
{% assign rtext
|
53
|
-
{% assign page_rtext
|
54
|
-
{% assign page_rtext_size
|
56
|
+
{% assign previewer = blog_navigator_options.previewer %}
|
57
|
+
{% assign paginate = paginator_options.pagination.enabled %}
|
58
|
+
{% assign rtext = template_config.typography.rtext %}
|
59
|
+
{% assign page_rtext = page.rtext %}
|
60
|
+
{% assign page_rtext_size = page.rtext_size %}
|
55
61
|
|
56
62
|
{% comment %} rtext|size detection
|
57
63
|
-------------------------------------------------------------------------------- {% endcomment %}
|
58
64
|
{% if rtext %}
|
59
|
-
{% assign rtext_size =
|
65
|
+
{% assign rtext_size = template_config.typography.rtext_size %}
|
60
66
|
{% else %}
|
61
67
|
{% assign rtext_size = 0 %}
|
62
68
|
{% endif %}
|
63
69
|
|
70
|
+
{% comment %} language detection
|
71
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
72
|
+
{% if {{site.language}} == "en" %}
|
73
|
+
{% assign language = "en" %}
|
74
|
+
{% elsif {{site.language}} == "de"%}
|
75
|
+
{% assign language = "de" %}
|
76
|
+
{% else %}
|
77
|
+
{% assign language = "en" %}
|
78
|
+
{% endif %}
|
79
|
+
|
80
|
+
{% if language == "en" %}
|
81
|
+
{% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
|
82
|
+
{% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
|
83
|
+
{% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
|
84
|
+
{% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
|
85
|
+
|
86
|
+
{% assign paginator_button_older_posts_text = blog_navigator_options.button_text.paginator.older_posts.en %}
|
87
|
+
{% assign paginator_button_newer_posts_text = blog_navigator_options.button_text.paginator.newer_posts.en %}
|
88
|
+
{% assign paginator_button_first_post_text = blog_navigator_options.button_text.paginator.first_post.en %}
|
89
|
+
{% assign paginator_button_last_post_text = blog_navigator_options.button_text.paginator.last_post.en %}
|
90
|
+
|
91
|
+
{% assign previewer_headline = blog_navigator_options.article_previewer.page_text.en.headline %}
|
92
|
+
{% assign navigator_description_text = blog_navigator_options.article_navigator.page_text.en.description %}
|
93
|
+
{% assign previewer_description_text = blog_navigator_options.article_previewer.page_text.en.description %}
|
94
|
+
{% endif %}
|
95
|
+
|
96
|
+
{% if language == "de" %}
|
97
|
+
{% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de" %}
|
98
|
+
{% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de" %}
|
99
|
+
{% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de" %}
|
100
|
+
{% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de" %}
|
101
|
+
|
102
|
+
{% assign paginator_button_older_posts_text = blog_navigator_options.button_text.paginator.older_posts.de %}
|
103
|
+
{% assign paginator_button_newer_posts_text = blog_navigator_options.button_text.paginator.newer_posts.de %}
|
104
|
+
{% assign paginator_button_first_post_text = blog_navigator_options.button_text.paginator.first_post.de %}
|
105
|
+
{% assign paginator_button_last_post_text = blog_navigator_options.button_text.paginator.last_post.de %}
|
106
|
+
|
107
|
+
{% assign previewer_headline = blog_navigator_options.article_previewer.page_text.de.headline %}
|
108
|
+
{% assign navigator_description_text = blog_navigator_options.article_navigator.page_text.de.description %}
|
109
|
+
{% assign previewer_description_text = blog_navigator_options.article_previewer.page_text.de.description %}
|
110
|
+
{% endif %}
|
64
111
|
|
65
112
|
{% comment %} Main
|
66
113
|
-------------------------------------------------------------------------------- {% endcomment %}
|
67
114
|
<!-- [INFO ] [j1.layout.content_generator_blog.html ] [Begin content] -->
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
{%
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
{% if paginator.next_page %}
|
148
|
-
<li class="page-item">
|
149
|
-
<a class="page-link" href="{{ paginator.next_page_path }}#article_navigator">Older Posts</a>
|
150
|
-
</li>
|
151
|
-
{% else %}
|
152
|
-
<li class="page-item disabled"><a href="#" class="page-link">Last Page</a></li>
|
153
|
-
{% endif %}
|
154
|
-
</ul>
|
155
|
-
</nav>
|
156
|
-
{% endif %}
|
157
|
-
|
158
|
-
{% comment %} Old (defect) preview paginator
|
159
|
-
----------------------------------------------------------------
|
160
|
-
{% if paginator.total_pages > 1 %}
|
161
|
-
<!-- nav class="paginator ml-3" -->
|
162
|
-
<nav class="paginator">
|
163
|
-
<ul class="pagination raised-z0">
|
164
|
-
{% if paginator.previous_page %}
|
165
|
-
{% if paginator.previous_page > 1 %}
|
166
|
-
{% capture page_link %}{{paginator.previous_page_path}}#previewer{% endcapture %}
|
167
|
-
<li class="page-item"><a href="#" class="page-link" href="{{page_link}}" title="Previous page">Previous</a></li>
|
168
|
-
{% else %}
|
169
|
-
{% comment %} Back to FIRST page {% endcomment %}
|
170
|
-
{% assign navigator = page.url | remove_first:'page2/index.html' %}
|
171
|
-
{% capture page_link %}{{navigator}}#previewer{% endcapture %}
|
172
|
-
<li class="page-item"><a href="#" class="page-link" href="{{page_link}}" title="First page">Previous</a></li>
|
173
|
-
{% endif %}
|
174
|
-
{% else %}
|
175
|
-
<li class="page-item disabled"><a href="#" class="page-link">First</a></li>
|
176
|
-
{% endif %}
|
177
|
-
|
178
|
-
{% if paginator.next_page %}
|
179
|
-
{% capture page_link %}{{paginator.next_page_path}}#previewer{% endcapture %}
|
180
|
-
<li class="page-item"><a class="page-link" href="{{page_link}}" title="Next page">Next</a></li>
|
181
|
-
{% else %}
|
182
|
-
<li class="page-item disabled"><a href="#" class="page-link">Last</a>
|
183
|
-
{% endif %}
|
184
|
-
</ul>
|
185
|
-
</nav>
|
186
|
-
{% endif %}
|
187
|
-
---------------------------------------------------------------- {% endcomment %}
|
188
|
-
|
189
|
-
<!-- div class="view-description ml-3 mb-3" -->
|
190
|
-
<div class="view-description mb-3">
|
191
|
-
{{article_previewer_description}}
|
192
|
-
</div>
|
193
|
-
|
194
|
-
</div>
|
195
|
-
|
196
|
-
<div id="article_preview">
|
197
|
-
<!-- Previewer selected of type: {{previewer}}-->
|
198
|
-
<div id="preview_content">
|
199
|
-
{% assign posts_collate = paginator.posts %}
|
200
|
-
{% case previewer %}
|
201
|
-
{% when 'list' %}
|
202
|
-
{% include {{collate_list}} header_title=page.header_title header_tagline=page.header_tagline items=posts_collate %}
|
203
|
-
{% when 'calendar' %}
|
204
|
-
{% include {{collate_calendar}} header_title=page.header_title header_tagline=page.header_tagline items=posts_collate %}
|
205
|
-
{% when 'timeline' %}
|
206
|
-
{% include {{collate_timeline}} items=posts_collate limit_excerpt=50 %}
|
207
|
-
{% else %}
|
208
|
-
{% include {{collate_list}} header_title=page.header_title header_tagline=page.header_tagline items=posts_collate %}
|
209
|
-
{% endcase %}
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
</div>
|
214
|
-
<!-- end article previewer -->
|
215
|
-
{% endif %}
|
216
|
-
{% comment %} End Article Previewer
|
217
|
-
-------------------------------------------------------------------- {% endcomment %}
|
218
|
-
|
219
|
-
<!-- /div --> <!-- end col-md-12 -->
|
220
|
-
</div> <!-- end row blog_navigator -->
|
221
|
-
|
222
|
-
<!-- End Content placed by blog_archive_content.html -->
|
223
|
-
</main> <!-- end main for split page -->
|
224
|
-
|
225
|
-
{% comment %} Place Sidebar|Tocbot
|
226
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
227
|
-
<!-- NOTE: BS or Tocbot Affix is not used anymore. Replaced by CSS style "sticky" -->
|
228
|
-
{% comment %} tocbot and page_navigation (not used anymore)
|
229
|
-
--------------------------------------------------------------------------
|
230
|
-
<aside class="col-md-3 d-none d-md-block sticky">
|
231
|
-
<div id="sidebar">
|
232
|
-
<div id="j1-toc-mgr" class="toc js-toc"></div>
|
115
|
+
<main id="main-content" class="container r-text-{{rtext_size}} js-toc-content mb-5">
|
116
|
+
<!-- Content placed by layouts/content_generator_blog_archive.html -->
|
117
|
+
<div id="blog_navigator">
|
118
|
+
<div id="article_navigator">
|
119
|
+
|
120
|
+
{% include {{get_page_path}} mode='absolute' %}
|
121
|
+
{% capture navigator_path%}{{page_path}}{% endcapture %}
|
122
|
+
{% capture archive_path %}{{navigator_path}}/archive{% endcapture %}
|
123
|
+
{% capture date_view %}{{archive_path}}/dateview/{% endcapture %}
|
124
|
+
{% capture category_view %}{{archive_path}}/categoryview/{% endcapture %}
|
125
|
+
{% capture tag_view %}{{archive_path}}/tagview/{% endcapture %}
|
126
|
+
{% capture all_view %}{{archive_path}}/{% endcapture %}
|
127
|
+
|
128
|
+
{% comment %}
|
129
|
+
------------------------------------------------------------------------
|
130
|
+
https://stackoverflow.com/questions/22763180/assign-an-array-literal-to-a-variable-in-liquid-template
|
131
|
+
{% assign my_array = "one|two|three" | split: "|" %}
|
132
|
+
------------------------------------------------------------------------
|
133
|
+
{% endcomment %}
|
134
|
+
|
135
|
+
{% comment %} Debugging
|
136
|
+
--------------------------------------------------------------------------------
|
137
|
+
blog_navigator_options.article_navigator.page_text: {{blog_navigator_options.article_navigator.page_text | debug}}
|
138
|
+
--------------------------------------------------------------------------------
|
139
|
+
{% endcomment %}
|
140
|
+
|
141
|
+
<div class="navigator-headline">
|
142
|
+
<nav class="paginator">
|
143
|
+
<ul class="pagination raised-z0">
|
144
|
+
<li class="page-item"><a class="page-link" href="{{category_view}}" alt="View by Category">{{category_view_button_text}}</a></li>
|
145
|
+
<li class="page-item"><a class="page-link" href="{{date_view}}" alt="View by Date">{{date_view_button_text}}</a></li>
|
146
|
+
<!-- li class="page-item"><a class="page-link" href="{{tag_view}}" alt="{{tag_view_button_text}}">By Tag</a></li -->
|
147
|
+
<li class="page-item"><a class="page-link" href="{{all_view}}" alt="View All">{{archive_view_button_text}}</a></li>
|
148
|
+
</ul>
|
149
|
+
</nav> <!-- end paginator -->
|
150
|
+
</div> <!-- end navigator headline -->
|
151
|
+
|
152
|
+
{% if blog_navigator_options.article_navigator.page_text.enabled %}
|
153
|
+
<div class="view-description">{{navigator_description_text}}</div>
|
154
|
+
{% endif %}
|
155
|
+
|
156
|
+
</div> <!-- end article_navigator -->
|
157
|
+
|
158
|
+
<!-- Add article previewer if paginator is enabled -->
|
159
|
+
{% if paginate %}
|
160
|
+
<div id="article_previewer">
|
161
|
+
|
162
|
+
<div class="previewer-headline">
|
163
|
+
|
164
|
+
<div class="post-headline">
|
165
|
+
<h2 id="previewer" class="mt-4">{{previewer_headline}}</h2>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
{% if paginator.total_pages > 1 %}
|
169
|
+
<nav class="paginator mb-4">
|
170
|
+
<ul class="pagination raised-z0">
|
171
|
+
{% if paginator.previous_page %}
|
172
|
+
<li class="page-item">
|
173
|
+
<a class="page-link" href="{{ paginator.previous_page_path }}#article_navigator">{{paginator_button_newer_posts_text}}</a>
|
174
|
+
</li>
|
175
|
+
{% else %}
|
176
|
+
<li class="page-item disabled"><a href="#" class="page-link">{{paginator_button_first_post_text}}</a></li>
|
177
|
+
{% endif %}
|
178
|
+
|
179
|
+
{% if paginator.next_page %}
|
180
|
+
<li class="page-item">
|
181
|
+
<a class="page-link" href="{{ paginator.next_page_path }}#article_navigator">{{paginator_button_older_posts_text}}</a>
|
182
|
+
</li>
|
183
|
+
{% else %}
|
184
|
+
<li class="page-item disabled"><a href="#" class="page-link">{{paginator_button_last_post_text}}</a></li>
|
185
|
+
{% endif %}
|
186
|
+
</ul>
|
187
|
+
</nav>
|
188
|
+
{% endif %}
|
189
|
+
|
190
|
+
{% if blog_navigator_options.article_previewer.page_text.enabled %}
|
191
|
+
<div class="view-description mb-3">{{previewer_description_text}}</div>
|
192
|
+
{% endif %}
|
193
|
+
|
233
194
|
</div>
|
234
|
-
</aside>
|
235
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
236
|
-
|
237
|
-
{% comment %} Calc|Write the Back URL
|
238
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
239
|
-
{% if site.permalink == 'none' %}
|
240
|
-
{% capture browser_page_url %}{{page.url}}.html {% endcapture %}
|
241
|
-
{% else %}
|
242
|
-
{% capture browser_page_url %}{{page.url}}{% endcapture %}
|
243
|
-
{% endif %}
|
244
195
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
}, 25);
|
266
|
-
});
|
267
|
-
</script>
|
268
|
-
|
269
|
-
<!-- /div --> <!-- end row -->
|
270
|
-
<!-- /div --> <!-- end container -->
|
196
|
+
<div id="article_preview">
|
197
|
+
<!-- Previewer selected of type: {{previewer}}-->
|
198
|
+
<div id="preview_content">
|
199
|
+
{% assign posts_collate = paginator.posts %}
|
200
|
+
{% case previewer %}
|
201
|
+
{% when 'list' %}
|
202
|
+
{% include {{collate_list}} header_alt=page.header_title header_tagline=page.header_tagline items=posts_collate %}
|
203
|
+
{% when 'calendar' %}
|
204
|
+
{% include {{collate_calendar}} header_alt=page.header_title header_tagline=page.header_tagline items=posts_collate %}
|
205
|
+
{% when 'timeline' %}
|
206
|
+
{% include {{collate_timeline}} items=posts_collate limit_excerpt=50 %}
|
207
|
+
{% else %}
|
208
|
+
{% include {{collate_list}} header_alt=page.header_title header_tagline=page.header_tagline items=posts_collate %}
|
209
|
+
{% endcase %}
|
210
|
+
</div>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
<!-- end article previewer -->
|
215
|
+
{% endif %}
|
271
216
|
|
217
|
+
</div> <!-- end blog_navigator -->
|
218
|
+
</main> <!-- end main -->
|
219
|
+
|
220
|
+
{% comment %} Calc|Write the Back URL
|
221
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
222
|
+
{% if site.permalink == 'none' %}
|
223
|
+
{% capture browser_page_url %}{{page.url}}.html {% endcapture %}
|
224
|
+
{% else %}
|
225
|
+
{% capture browser_page_url %}{{page.url}}{% endcapture %}
|
226
|
+
{% endif %}
|
227
|
+
|
228
|
+
<!-- [INFO ] [j1.content_generator_blog_archive ] [ {{page.title}} - save the current page to cookieUserState cookie: {{ browser_page_url }} ] -->
|
229
|
+
<script>
|
230
|
+
// Manage current page settings
|
231
|
+
$(document).ready(function() {
|
232
|
+
var dependencies_blog_generator = setInterval(function() {
|
233
|
+
if ( j1.adapter.themer.getState() == 'finished' ) {
|
234
|
+
// [INFO ] [j1.content_generator_blog_archive ] [ {{page.title}} - save the current page to cookieUserState cookie: {{ browser_page_url }} ]
|
235
|
+
var cookie_names = j1.getCookieNames();
|
236
|
+
const user_state_cookie_name = cookie_names.user_session;
|
237
|
+
var user_state = j1.readCookie(user_state_cookie_name);
|
238
|
+
var user_state_last_page = "{{browser_page_url}}";
|
239
|
+
user_state.last_page = user_state_last_page;
|
240
|
+
j1.writeCookie({
|
241
|
+
name: user_state_cookie_name,
|
242
|
+
data: user_state
|
243
|
+
});
|
244
|
+
// clear interval checking
|
245
|
+
clearInterval(dependencies_blog_generator);
|
246
|
+
}
|
247
|
+
}, 25);
|
248
|
+
});
|
249
|
+
</script>
|
272
250
|
<!-- [INFO ] [j1.layout.content_generator_blog.html ] [ end content ] -->
|