j1-template 2021.1.11 → 2021.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/blocks/footer/boxes/issue.proc +28 -5
  3. data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +66 -23
  4. data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +0 -1
  5. data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +16 -1
  6. data/_includes/themes/j1/layouts/content_generator_app.html +1 -1
  7. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +197 -219
  8. data/_includes/themes/j1/layouts/content_generator_collection.html +4 -2
  9. data/_includes/themes/j1/layouts/content_generator_page.html +4 -1
  10. data/_includes/themes/j1/layouts/content_generator_post.html +31 -23
  11. data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
  12. data/_includes/themes/j1/layouts/layout_metadata_generator.html +55 -0
  13. data/_includes/themes/j1/modules/connectors/comment/commento.html +31 -0
  14. data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +7 -8
  15. data/_includes/themes/j1/modules/connectors/comment/disqus.html +12 -54
  16. data/_includes/themes/j1/modules/connectors/comment/facebook.html +7 -8
  17. data/_includes/themes/j1/modules/connectors/comment/hyvor.html +33 -0
  18. data/_includes/themes/j1/modules/connectors/comment/just-comments.html +31 -0
  19. data/_includes/themes/j1/modules/connectors/comments +3 -0
  20. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +27 -5
  21. data/_includes/themes/j1/procedures/posts/pager.proc +123 -0
  22. data/_layouts/default.html +52 -1
  23. data/assets/data/cookieconsent.html +0 -2
  24. data/assets/data/disqus.js +81 -0
  25. data/assets/data/hyvor.js +72 -0
  26. data/assets/data/menu.html +1 -1
  27. data/assets/data/mmenu_toc.html +20 -1
  28. data/assets/data/panel.html +28 -7
  29. data/assets/error_pages/HTTP204.html +2 -1
  30. data/assets/error_pages/HTTP400.html +2 -1
  31. data/assets/error_pages/HTTP401.html +2 -1
  32. data/assets/error_pages/HTTP403.html +2 -1
  33. data/assets/error_pages/HTTP404.html +2 -1
  34. data/assets/error_pages/HTTP444.html +93 -0
  35. data/assets/error_pages/HTTP500.html +2 -1
  36. data/assets/error_pages/HTTP501.html +2 -1
  37. data/assets/error_pages/HTTP502.html +2 -1
  38. data/assets/error_pages/HTTP503.html +2 -1
  39. data/assets/themes/j1/adapter/js/algolia.js +10 -10
  40. data/assets/themes/j1/adapter/js/asciidoctor.js +6 -6
  41. data/assets/themes/j1/adapter/js/attic.js +17 -17
  42. data/assets/themes/j1/adapter/js/bmd.js +6 -6
  43. data/assets/themes/j1/adapter/js/carousel.js +10 -10
  44. data/assets/themes/j1/adapter/js/clipboard.js +10 -10
  45. data/assets/themes/j1/adapter/js/cookieConsent.js +58 -47
  46. data/assets/themes/j1/adapter/js/fam.js +34 -34
  47. data/assets/themes/j1/adapter/js/framer.js +6 -6
  48. data/assets/themes/j1/adapter/js/j1.js +520 -252
  49. data/assets/themes/j1/adapter/js/justifiedGallery.js +11 -11
  50. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +19 -19
  51. data/assets/themes/j1/adapter/js/lightbox.js +6 -6
  52. data/assets/themes/j1/adapter/js/logger.js +7 -7
  53. data/assets/themes/j1/adapter/js/mmenu.js +25 -25
  54. data/assets/themes/j1/adapter/js/navigator.js +55 -48
  55. data/assets/themes/j1/adapter/js/quicksearch.js +6 -6
  56. data/assets/themes/j1/adapter/js/rouge.js +7 -7
  57. data/assets/themes/j1/adapter/js/rtable.js +6 -6
  58. data/assets/themes/j1/adapter/js/themer.js +43 -47
  59. data/assets/themes/j1/adapter/js/toccer.js +9 -9
  60. data/assets/themes/j1/modules/backstretch/js/backstretch.js +3 -3
  61. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +35 -23
  62. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -2
  63. data/assets/themes/j1/modules/lunrSearch/js/quicksearch.js +1 -1
  64. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +74 -55
  65. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +75 -57
  66. data/lib/j1/version.rb +3 -3
  67. data/lib/starter_web/Gemfile +4 -5
  68. data/lib/starter_web/_config.yml +42 -24
  69. data/lib/starter_web/_data/blocks/footer.yml +52 -20
  70. data/lib/starter_web/_data/blocks/panel.yml +4 -4
  71. data/lib/starter_web/_data/builder/blog_navigator.yml +9 -192
  72. data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +389 -0
  73. data/lib/starter_web/_data/j1_config.yml +24 -10
  74. data/lib/starter_web/_data/locales/be.yml +269 -0
  75. data/lib/starter_web/_data/locales/cs.yml +218 -0
  76. data/lib/starter_web/_data/locales/da.yml +213 -0
  77. data/lib/starter_web/_data/locales/de.yml +222 -0
  78. data/lib/starter_web/_data/locales/el.yml +215 -0
  79. data/lib/starter_web/_data/locales/en.yml +215 -0
  80. data/lib/starter_web/_data/locales/es.yml +219 -0
  81. data/lib/starter_web/_data/locales/et.yml +207 -0
  82. data/lib/starter_web/_data/locales/fi.yml +211 -0
  83. data/lib/starter_web/_data/locales/fr.yml +219 -0
  84. data/lib/starter_web/_data/locales/hr.yml +240 -0
  85. data/lib/starter_web/_data/locales/hu.yml +196 -0
  86. data/lib/starter_web/_data/locales/it.yml +215 -0
  87. data/lib/starter_web/_data/locales/lv.yml +233 -0
  88. data/lib/starter_web/_data/locales/nl.yml +213 -0
  89. data/lib/starter_web/_data/locales/pl.yml +241 -0
  90. data/lib/starter_web/_data/locales/pt.yml +217 -0
  91. data/lib/starter_web/_data/locales/readme +4 -0
  92. data/lib/starter_web/_data/locales/ro.yml +209 -0
  93. data/lib/starter_web/_data/locales/ru.yml +269 -0
  94. data/lib/starter_web/_data/locales/sk.yml +211 -0
  95. data/lib/starter_web/_data/locales/sl.yml +209 -0
  96. data/lib/starter_web/_data/locales/sv.yml +207 -0
  97. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +11 -10
  98. data/lib/starter_web/_data/modules/defaults/themer.yml +1 -0
  99. data/lib/starter_web/_data/modules/themer.yml +1 -0
  100. data/lib/starter_web/_data/plugins/defaults/paginator.yml +7 -6
  101. data/lib/starter_web/_data/plugins/paginator.yml +3 -0
  102. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  103. data/lib/starter_web/_plugins/date-i18n.rb +67 -0
  104. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  105. data/lib/starter_web/assets/images/modules/attics/markus-spiske-1920x1280.jpg +0 -0
  106. data/lib/starter_web/assets/images/modules/attics/matthew-dockery-1920x1280.jpg +0 -0
  107. data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +1 -1
  108. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -1
  109. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +1 -1
  110. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +2 -2
  111. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +2 -2
  112. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +2 -2
  113. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -2
  114. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +1 -1
  115. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +1 -1
  116. data/lib/starter_web/index.html +3 -3
  117. data/lib/starter_web/package.json +1 -1
  118. data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +3 -0
  119. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +3 -0
  120. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +3 -0
  121. data/lib/starter_web/pages/public/blog/navigator/archive.html +80 -12
  122. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +94 -26
  123. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +81 -12
  124. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +95 -37
  125. data/lib/starter_web/pages/public/blog/navigator/index.html +4 -0
  126. data/lib/starter_web/pages/public/cookieConsent.adoc +3 -0
  127. data/lib/starter_web/pages/public/learn/quickstart.adoc +473 -0
  128. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +0 -1
  129. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -1
  130. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +0 -2
  131. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +0 -2
  132. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +0 -1
  133. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +0 -1
  134. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +0 -1
  135. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +0 -1
  136. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +0 -1
  137. data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -1
  138. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +116 -0
  139. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +94 -0
  140. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +320 -0
  141. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +123 -0
  142. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
  143. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
  144. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +81 -20
  145. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +34 -16
  146. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  147. data/lib/starter_web/utilsrv/package.json +1 -1
  148. metadata +41 -4
  149. data/_includes/themes/j1/procedures/global/pager.proc +0 -79
  150. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +0 -244
@@ -1,11 +1,13 @@
1
1
  ---
2
2
  layout: page
3
3
  title: Creators Blog
4
- tagline: posts by category
5
- description: Browse articles by category
4
+ tagline: articles by category
5
+ date: 2023-01-01 01:00:00 +100
6
+ description: >
7
+ articles by category
6
8
 
7
- categories: [ Navigator ]
8
- tags: [ Blog, Categories, Viewer ]
9
+ categories: [ Blog ]
10
+ tags: [ Navigator, Categories ]
9
11
 
10
12
  sort: date
11
13
  toc: true
@@ -15,6 +17,10 @@ pagination:
15
17
  enabled: false
16
18
  permalink: /page:num/
17
19
 
20
+ analytics: true
21
+ advertising: false
22
+ comments: false
23
+
18
24
  regenerate: true
19
25
 
20
26
  resources: []
@@ -33,10 +39,6 @@ resource_options:
33
39
  href: https://unsplash.com/@matthaeus123
34
40
  ---
35
41
 
36
- {% comment %} Debugging|Helpers
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- {% comment %} site_category_word_list: {{site_category_word_list|debug}} {% endcomment %}
39
-
40
42
  {% comment %} Liquid procedures
41
43
  -------------------------------------------------------------------------------- {% endcomment %}
42
44
  {% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
@@ -44,12 +46,26 @@ resource_options:
44
46
  {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
45
47
  {% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %}
46
48
 
49
+ {% comment %} Set config files
50
+ -------------------------------------------------------------------------------- {% endcomment %}
51
+ {% assign template_config = site.data.j1_config %}
52
+ {% assign blocks = site.data.blocks %}
53
+ {% assign modules = site.data.modules %}
54
+ {% assign builder = site.data.builder %}
55
+ {% assign plugins = site.data.plugins %}
56
+
57
+ {% comment %} Set config data
58
+ -------------------------------------------------------------------------------- {% endcomment %}
59
+ {% assign blog_navigator_defaults = builder.defaults.blog_navigator.defaults %}
60
+ {% assign blog_navigator_settings = builder.blog_navigator.settings %}
61
+
62
+ {% comment %} Set config options
63
+ -------------------------------------------------------------------------------- {% endcomment %}
64
+ {% assign blog_navigator_options = blog_navigator_defaults | merge: blog_navigator_settings %}
65
+
47
66
  {% comment %} Variables
48
67
  -------------------------------------------------------------------------------- {% endcomment %}
49
- {% assign view_config = site.data.builder.blog_navigator.category_view %}
50
68
  {% assign truncate_words = site.excerpt_truncate_words %}
51
- {% assign view_description = view_config.description %}
52
- {% assign defaults = site.data.builder.blog_navigator.defaults %}
53
69
 
54
70
  {% if site.permalink == 'none' %}
55
71
  {% capture browser_page_url %}{{page.url}}.html{% endcapture %}
@@ -74,13 +90,16 @@ resource_options:
74
90
  {% assign sorted_posts = site.posts|sort: 'date' %}
75
91
  {% endif %}
76
92
 
77
- {% comment %} TODO: skip_words configured by yaml data file?
78
- -------------------------------------------------------------------------------- {% endcomment %}
93
+ {% comment %} TODO: skip_words NOT longer needed? Already done
94
+ by processing of categories
95
+ --------------------------------------------------------------------------------
79
96
  {% capture skip_words %} Posts Public {% endcapture %}
97
+ --------------------------------------------------------------------------------
98
+ {% endcomment %}
80
99
 
81
- {% assign skip_categories = view_config.skip_categories | split: ", " | join: " " %}
82
-
83
- {% comment %} skip_categories: {{skip_categories | debug}} {% endcomment %}
100
+ {% comment %} category processing
101
+ -------------------------------------------------------------------------------- {% endcomment %}
102
+ {% assign skip_categories = blog_navigator_options.category_view.skip_categories | split: ", " | join: " " %}
84
103
 
85
104
  {% capture site_category_word_list %}{% for category in site.categories %}{{category|first|capitalize|lstrip|rstrip}}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
86
105
  {% assign category_words = site_category_word_list|split:',' %}
@@ -91,25 +110,69 @@ resource_options:
91
110
  {% capture category_list %}{{category_list|append: category}}{% unless forloop.last %},{% endunless %}{% endcapture %}
92
111
  {% endfor %}
93
112
 
113
+ {% comment %} language detection
114
+ -------------------------------------------------------------------------------- {% endcomment %}
115
+ {% if site.language == "en" %}
116
+ {% assign language = "en" %}
117
+ {% elsif site.language == "de"%}
118
+ {% assign language = "de" %}
119
+ {% else %}
120
+ {% assign language = "en" %}
121
+ {% endif %}
122
+
123
+ {% if language == "en" %}
124
+ {% assign readmore_text = "read" %}
125
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
126
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
127
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
128
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
129
+
130
+ {% assign view_headline = blog_navigator_options.category_view.page_text.en.headline %}
131
+ {% assign view_description_text = blog_navigator_options.category_view.page_text.en.description %}
132
+ {% endif %}
133
+
134
+ {% if language == "de" %}
135
+ {% assign readmore_text = "lesen" %}
136
+
137
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %}
138
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %}
139
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %}
140
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %}
141
+
142
+ {% assign view_headline = blog_navigator_options.category_view.page_text.de.headline %}
143
+ {% assign view_description_text = blog_navigator_options.category_view.page_text.de.description %}
144
+ {% endif %}
145
+
146
+ {% comment %} Debugging
147
+ --------------------------------------------------------------------------------
148
+ skip_categories: {{skip_categories | debug}}
149
+ site_category_word_list: {{site_category_word_list | debug}}
150
+ --------------------------------------------------------------------------------
151
+ {% endcomment %}
152
+
153
+
94
154
  {% comment %} Main
95
155
  -------------------------------------------------------------------------------- {% endcomment %}
96
156
  <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
97
- {% include {{create_word_cloud}} word_list=category_list source="categories" skip_words=skip_words %}
157
+ {% include {{create_word_cloud}} word_list=category_list source="categories" skip_words=skip_categories %}
98
158
 
159
+ <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
99
160
  <div class="paginator ml-3">
100
161
  <ul class="pagination raised-z0">
101
- <li class="page-item"><a class="page-link" href="{{navigator|prepend: site.baseurl}}" title="Blog View">Navigator</a></li>
102
- <li class="page-item"><a class="page-link" href="{{date_view|prepend: site.baseurl}}" title="View by Date">By Date</a></li>
103
- <!-- li class="page-item"><a class="page-link" href="{{tag_view |prepend: site.baseurl}}" title="View by Tag">By Tag</a></li -->
104
- <li class="page-item"><a class="page-link" href="{{all_view |prepend: site.baseurl}}" title="View All">All Posts</a></li>
162
+ <li class="page-item"><a class="page-link" href="{{navigator|prepend: site.baseurl}}" alt="Blog Navigator">Navigator</a></li>
163
+ <li class="page-item"><a class="page-link" href="{{date_view}}" alt="View by Date">{{date_view_button_text}}</a></li>
164
+ <!-- li class="page-item"><a class="page-link" href="{{tag_view}}" alt="{{tag_view_button_text}}">By Tag</a></li -->
165
+ <li class="page-item"><a class="page-link" href="{{all_view}}" alt="View All">{{archive_view_button_text}}</a></li>
105
166
  </ul>
106
167
  </div>
107
168
 
108
169
  <div class="post-search-results ml-3">
170
+ {% if blog_navigator_options.category_view.page_text.enabled %}
171
+ <div class="view-description">{{view_description_text}}</div>
172
+ {% endif %}
109
173
 
110
- <div class="view-description">{{view_description}}</div>
111
174
  <div class="post-headline">
112
- <h2 id="post-headline" class="mt-5">Posts by Category</h2>
175
+ <h2 id="post-headline" class="mt-5">{{view_headline}}</h2>
113
176
  </div>
114
177
  {% assign tags = site.categories|sort %}
115
178
  {% for tag in tags %}
@@ -145,7 +208,7 @@ resource_options:
145
208
  {% else %}
146
209
  <!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
147
210
  <div class="col-md-6 img-bg--fill px-0"
148
- style="background-image: url({{defaults.post_image}});">
211
+ style="background-image: url({{blog_navigator_options.post_image}});">
149
212
  </div>
150
213
  {% endif %}
151
214
 
@@ -155,7 +218,12 @@ resource_options:
155
218
  <div class="card-footer-text">
156
219
  <hr class="my-3">
157
220
  {% if post.date %}
158
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
221
+ {% if language == "en" %}
222
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
223
+ {% endif %}
224
+ {% if language == "de" %}
225
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
226
+ {% endif %}
159
227
  {% endif %}
160
228
  {% if likes_count %}
161
229
  <span class="font-weight-bold"> · </span>
@@ -168,7 +236,7 @@ resource_options:
168
236
  </div>
169
237
  <a class="card-link text-muted text-lowercase"
170
238
  href="{{post.url}}#readmore">
171
- Read · {{post.tagline}}
239
+ {{readmore_text}} · {{post.tagline}}
172
240
  </a>
173
241
  </div>
174
242
  </div>
@@ -15,6 +15,10 @@ pagination:
15
15
  enabled: false
16
16
  permalink: /page:num/
17
17
 
18
+ analytics: true
19
+ advertising: false
20
+ comments: false
21
+
18
22
  regenerate: true
19
23
 
20
24
  resources: []
@@ -39,12 +43,26 @@ resource_options:
39
43
  {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
40
44
  {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
41
45
 
46
+ {% comment %} Set config files
47
+ -------------------------------------------------------------------------------- {% endcomment %}
48
+ {% assign template_config = site.data.j1_config %}
49
+ {% assign blocks = site.data.blocks %}
50
+ {% assign modules = site.data.modules %}
51
+ {% assign builder = site.data.builder %}
52
+ {% assign plugins = site.data.plugins %}
53
+
54
+ {% comment %} Set config data
55
+ -------------------------------------------------------------------------------- {% endcomment %}
56
+ {% assign blog_navigator_defaults = builder.defaults.blog_navigator.defaults %}
57
+ {% assign blog_navigator_settings = builder.blog_navigator.settings %}
58
+
59
+ {% comment %} Set config options
60
+ -------------------------------------------------------------------------------- {% endcomment %}
61
+ {% assign blog_navigator_options = blog_navigator_defaults | merge: blog_navigator_settings %}
62
+
42
63
  {% comment %} Variables
43
64
  -------------------------------------------------------------------------------- {% endcomment %}
44
- {% assign view_config = site.data.builder.blog_navigator.category_view %}
45
- {% assign truncate_words = site.excerpt_truncate_words %}
46
- {% assign view_description = view_config.description %}
47
- {% assign defaults = site.data.builder.blog_navigator.defaults %}
65
+ {% assign truncate_words = site.excerpt_truncate_words %}
48
66
 
49
67
  {% if site.permalink == 'none' %}
50
68
  {% capture browser_page_url %}{{page.url}}.html{% endcapture %}
@@ -61,22 +79,68 @@ resource_options:
61
79
  {% capture tag_view %}{{page_path}}/tagview/{% endcapture %}
62
80
  {% capture all_view %}{{page_path}}/{% endcapture %}
63
81
 
82
+
83
+ {% comment %} language detection
84
+ -------------------------------------------------------------------------------- {% endcomment %}
85
+ {% if site.language == "en" %}
86
+ {% assign language = "en" %}
87
+ {% elsif site.language == "de"%}
88
+ {% assign language = "de" %}
89
+ {% else %}
90
+ {% assign language = "en" %}
91
+ {% endif %}
92
+
93
+ {% if language == "en" %}
94
+ {% assign readmore_text = "read" %}
95
+
96
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
97
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
98
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
99
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
100
+
101
+ {% assign view_headline = blog_navigator_options.date_view.page_text.en.headline %}
102
+ {% assign view_description_text = blog_navigator_options.date_view.page_text.en.description %}
103
+ {% endif %}
104
+
105
+ {% if language == "de" %}
106
+ {% assign readmore_text = "lesen" %}
107
+
108
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %}
109
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %}
110
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %}
111
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %}
112
+
113
+ {% assign view_headline = blog_navigator_options.date_view.page_text.de.headline %}
114
+ {% assign view_description_text = blog_navigator_options.date_view.page_text.de.description %}
115
+ {% endif %}
116
+
117
+ {% comment %} Debugging
118
+ --------------------------------------------------------------------------------
119
+ skip_categories: {{skip_categories | debug}}
120
+ site_category_word_list: {{site_category_word_list | debug}}
121
+ --------------------------------------------------------------------------------
122
+ {% endcomment %}
123
+
124
+
64
125
  {% comment %} Main
65
126
  -------------------------------------------------------------------------------- {% endcomment %}
66
127
  <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
67
128
  <div class="paginator ml-3">
68
129
  <ul class="pagination raised-z0">
69
- <li class="page-item"><a class="page-link" href="{{navigator|prepend: site.baseurl}}" title="Blog View">Navigator</a></li>
70
- <li class="page-item"><a class="page-link" href="{{category_view|prepend: site.baseurl}}" title="View by Category">By Category</a></li>
71
- <li class="page-item"><a class="page-link" href="{{all_view|prepend: site.baseurl}}" title="View All">All Posts</a></li>
130
+ <li class="page-item"><a class="page-link" href="{{navigator|prepend: site.baseurl}}" alt="Blog Navigator">Navigator</a></li>
131
+ <li class="page-item"><a class="page-link" href="{{category_view|prepend: site.baseurl}}" alt="View by Category">{{category_view_button_text}}</a></li>
132
+ <li class="page-item"><a class="page-link" href="{{all_view}}" alt="View All">{{archive_view_button_text}}</a></li>
72
133
  </ul>
73
134
  </div>
74
135
 
75
136
  <div id="index" class="post-search-results ml-3">
76
137
 
77
- <div class="view-description">{{view_description}}</div>
138
+ {% if blog_navigator_options.date_view.page_text.enabled %}
139
+ <div class="view-description">{{view_description_text}}</div>
140
+ {% endif %}
141
+
78
142
  <div class="post-headline">
79
- <h2 id="post-headline" class="mt-5">Posts by Date</h2>
143
+ <h2 id="post-headline" class="mt-5">{{view_headline}}</h2>
80
144
  </div>
81
145
  {% assign openList = '<ul class="list-unstyled link-news">' %}
82
146
  {% assign closeList = '</ul>' %}
@@ -128,7 +192,7 @@ resource_options:
128
192
  {% else %}
129
193
  <!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
130
194
  <div class="col-md-6 img-bg--fill px-0"
131
- style="background-image: url({{defaults.post_image}});">
195
+ style="background-image: url({{blog_navigator_options.post_image}});">
132
196
  </div>
133
197
  {% endif %}
134
198
 
@@ -138,7 +202,12 @@ resource_options:
138
202
  <div class="card-footer-text">
139
203
  <hr class="my-3">
140
204
  {% if post.date %}
141
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
205
+ {% if language == "en" %}
206
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
207
+ {% endif %}
208
+ {% if language == "de" %}
209
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
210
+ {% endif %}
142
211
  {% endif %}
143
212
  {% if likes_count %}
144
213
  <span class="font-weight-bold"> · </span>
@@ -151,7 +220,7 @@ resource_options:
151
220
  </div>
152
221
  <a class="card-link text-muted text-lowercase"
153
222
  href="{{post.url}}#readmore">
154
- Read · {{post.tagline}}
223
+ {{readmore_text}} · {{post.tagline}}
155
224
  </a>
156
225
  </div>
157
226
  </div>
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  layout: page
3
3
  title: Creators Blog
4
- tagline: blog posts by tag
5
- description: Browse articles by tag
4
+ tagline: posts by tag
5
+ description: >
6
+ Browse articles by tag
6
7
 
7
- categories: [ Navigator ]
8
- tags: [ Blog, Tags, Viewer ]
8
+ categories: [ Blog ]
9
+ tags: [ Navigator, Tags ]
9
10
 
10
11
  sort: date
11
12
  toc: true
@@ -15,14 +16,25 @@ pagination:
15
16
  enabled: false
16
17
  permalink: /page:num/
17
18
 
19
+ analytics: true
20
+ advertising: false
21
+ comments: false
22
+
18
23
  regenerate: false
19
24
 
20
25
  resource_options:
21
26
  - attic:
27
+ padding_top: 400
28
+ padding_bottom: 50
22
29
  opacity: 0.5
23
30
  slides:
24
- - url: /assets/images/modules/attics/library-1920x1280-bw.jpg
25
- alt: library-1920x1280-bw
31
+ - url: /assets/images/modules/attics/matthaeus-1920x1280.jpg
32
+ alt: Photo by Matthaeus
33
+ alignY: top
34
+ badge:
35
+ type: unsplash
36
+ author: Matthaeus
37
+ href: https://unsplash.com/@matthaeus123
26
38
  ---
27
39
 
28
40
  {% comment %} TODO: logic for "letter_group_written == false" to be fixed
@@ -36,12 +48,26 @@ resource_options:
36
48
  {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
37
49
  {% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %}
38
50
 
51
+ {% comment %} Set config files
52
+ -------------------------------------------------------------------------------- {% endcomment %}
53
+ {% assign template_config = site.data.j1_config %}
54
+ {% assign blocks = site.data.blocks %}
55
+ {% assign modules = site.data.modules %}
56
+ {% assign builder = site.data.builder %}
57
+ {% assign plugins = site.data.plugins %}
58
+
59
+ {% comment %} Set config data
60
+ -------------------------------------------------------------------------------- {% endcomment %}
61
+ {% assign blog_navigator_defaults = builder.defaults.blog_navigator.defaults %}
62
+ {% assign blog_navigator_settings = builder.blog_navigator.settings %}
63
+
64
+ {% comment %} Set config options
65
+ -------------------------------------------------------------------------------- {% endcomment %}
66
+ {% assign blog_navigator_options = blog_navigator_defaults | merge: blog_navigator_settings %}
67
+
39
68
  {% comment %} Variables
40
69
  -------------------------------------------------------------------------------- {% endcomment %}
41
- {% assign view_config = site.data.builder.blog_navigator.category_view %}
42
- {% assign truncate_words = site.excerpt_truncate_words %}
43
- {% assign view_description = view_config.description %}
44
- {% assign defaults = site.data.builder.blog_navigator.defaults %}
70
+ {% assign truncate_words = site.excerpt_truncate_words %}
45
71
 
46
72
  {% if site.permalink == 'none' %}
47
73
  {% capture browser_page_url %}{{page.url}}.html{% endcapture %}
@@ -78,6 +104,46 @@ resource_options:
78
104
  {% capture tag_list %}{{tag_list | append: tag}}{% unless forloop.last %},{% endunless %}{% endcapture %}
79
105
  {% endfor %}
80
106
 
107
+ {% comment %} language detection
108
+ -------------------------------------------------------------------------------- {% endcomment %}
109
+ {% if site.language == "en" %}
110
+ {% assign language = "en" %}
111
+ {% elsif site.language == "de"%}
112
+ {% assign language = "de" %}
113
+ {% else %}
114
+ {% assign language = "en" %}
115
+ {% endif %}
116
+
117
+ {% if language == "en" %}
118
+ {% assign readmore_text = "read" %}
119
+
120
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
121
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
122
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
123
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
124
+
125
+ {% assign view_headline = blog_navigator_options.tag_view.page_text.en.headline %}
126
+ {% assign view_description_text = blog_navigator_options.tag_view.page_text.en.description %}
127
+ {% endif %}
128
+
129
+ {% if language == "de" %}
130
+ {% assign readmore_text = "lesen" %}
131
+
132
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %}
133
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %}
134
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %}
135
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %}
136
+
137
+ {% assign view_headline = blog_navigator_options.tag_view.page_text.de.headline %}
138
+ {% assign view_description_text = blog_navigator_options.tag_view.page_text.de.description %}
139
+ {% endif %}
140
+
141
+ {% comment %} Debugging
142
+ --------------------------------------------------------------------------------
143
+ skip_categories: {{skip_categories | debug}}
144
+ site_category_word_list: {{site_category_word_list | debug}}
145
+ --------------------------------------------------------------------------------
146
+ {% endcomment %}
81
147
 
82
148
  {% comment %} Main
83
149
  -------------------------------------------------------------------------------- {% endcomment %}
@@ -86,15 +152,18 @@ resource_options:
86
152
 
87
153
  <div class="paginator ml-3">
88
154
  <ul class="pagination raised-z0">
89
- <li class="page-item"><a class="page-link" href="{{navigator | prepend: site.baseurl}}" title="Blog View">Navigator</a></li>
90
- <li class="page-item"><a class="page-link" href="{{date_view | prepend: site.baseurl}}" title="View by Date">By Date</a></li>
91
- <li class="page-item"><a class="page-link" href="{{category_view | prepend: site.baseurl}}" title="View by Category">By Category</a></li>
92
- <li class="page-item"><a class="page-link" href="{{all_view | prepend: site.baseurl}}" title="View All">All Posts</a></li>
155
+ <li class="page-item"><a class="page-link" href="{{navigator | prepend: site.baseurl}}" alt="Blog View">Navigator</a></li>
156
+ <li class="page-item"><a class="page-link" href="{{date_view | prepend: site.baseurl}}" alt="View by Date">By Date</a></li>
157
+ <li class="page-item"><a class="page-link" href="{{category_view | prepend: site.baseurl}}" alt="View by Category">By Category</a></li>
158
+ <li class="page-item"><a class="page-link" href="{{all_view | prepend: site.baseurl}}" alt="View All">All Posts</a></li>
93
159
  </ul>
94
160
  </div>
95
161
 
96
162
  <div class="post-search-results ml-3">
97
- <div class="view-description mb-1">{{view_description}}</div>
163
+ {% if blog_navigator_options.tag_view.page_text.enabled %}
164
+ <div class="view-description">{{view_description_text}}</div>
165
+ {% endif %}
166
+
98
167
  <div class="post-headline"> <h2 id="post-headline" class="mt-5">Posts By Tag</h2></div>
99
168
  {% assign letter_group = letter_group_array[letter_group_counter] %}
100
169
 
@@ -116,7 +185,7 @@ resource_options:
116
185
  --------------------------------------------------------------------------
117
186
  <!-- jadams, 2018-01-17: logic seems NOT work. Disabled. -->
118
187
  {% if letter_group_written == false %}
119
- <h3 id="id_{{letter_group}}" class="toc-link mt-5 mb-5"><a title="Back to top" href="#"><i class="fa fa-tags mr-2"></i></a>{{letter_group | upcase}}</h3>
188
+ <h3 id="id_{{letter_group}}" class="toc-link mt-5 mb-5"><a alt="Back to top" href="#"><i class="fa fa-tags mr-2"></i></a>{{letter_group | upcase}}</h3>
120
189
  {% assign letter_group_written = true %}
121
190
  {% endif %}
122
191
  -------------------------------------------------------------------------- {% endcomment %}
@@ -129,7 +198,7 @@ resource_options:
129
198
  -------------------------------------------------------------------------- {% endcomment %}
130
199
  {% if letter_group %}
131
200
  <h3 id="id_{{letter_group}}" class="toc-link mb-3">
132
- <a title="Back to top" href="#">
201
+ <a alt="Back to top" href="#">
133
202
  <i class="fa fa-tags mr-2"></i>
134
203
  </a>{{letter_group | upcase}}
135
204
  </h3>
@@ -143,7 +212,7 @@ resource_options:
143
212
  first_letter: {{first_letter | debug}}
144
213
  {% endcomment %}
145
214
 
146
- <h4 id="{{this_word | replace: '+','_' | replace: ' ','_' | downcase}}" class="toc-link"><a title="Back to top" href="#"><i class="fa fa-tag mr-2"></i></a>{{this_word}}</h4>
215
+ <h4 id="{{this_word | replace: '+','_' | replace: ' ','_' | downcase}}" class="toc-link"><a alt="Back to top" href="#"><i class="fa fa-tag mr-2"></i></a>{{this_word}}</h4>
147
216
 
148
217
  {% for post in site.tags[this_word] %}{% if post.title != null %}
149
218
  {% include {{get_category}} post=post %}
@@ -155,22 +224,6 @@ resource_options:
155
224
 
156
225
  {% assign excerpt = post.excerpt|truncatewords:truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
157
226
 
158
- <!-- place post -->
159
- <!--div class="card card-flat mb-4">
160
- <div class="card-body">
161
-
162
- <h5 id="{{ 100000 | rand }}" class="card-title">{{ post.title }}</h5>
163
- <h6 class="notoc card-subtitle text-muted mb-2">{{ post.tagline }}</h6>
164
- <div class="card-text"><p>{{ excerpt }}</p></div>
165
- </div>
166
- <div class="card-footer">
167
- <a class="btn btn-primary btn-raised btn-flex" href="{{post.url}}#readmore">
168
- <i class="fa fa-eye fa-lg" style="color:#FFFFFF;"></i>
169
- Read more
170
- </a>
171
- </div>
172
- </div -->
173
-
174
227
  <!-- place post -->
175
228
  <article class="card raised-z3 mb-5">
176
229
  <h3 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h3>
@@ -185,7 +238,7 @@ resource_options:
185
238
  {% else %}
186
239
  <!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
187
240
  <div class="col-md-6 img-bg--fill px-0"
188
- style="background-image: url({{defaults.post_image}});">
241
+ style="background-image: url({{blog_navigator_options.post_image}});">
189
242
  </div>
190
243
  {% endif %}
191
244
 
@@ -195,7 +248,12 @@ resource_options:
195
248
  <div class="card-footer-text">
196
249
  <hr class="my-3">
197
250
  {% if post.date %}
198
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
251
+ {% if language == "en" %}
252
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
253
+ {% endif %}
254
+ {% if language == "de" %}
255
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
256
+ {% endif %}
199
257
  {% endif %}
200
258
  {% if likes_count %}
201
259
  <span class="font-weight-bold"> · </span>
@@ -208,7 +266,7 @@ resource_options:
208
266
  </div>
209
267
  <a class="card-link text-muted text-lowercase"
210
268
  href="{{post.url}}#readmore">
211
- Read · {{post.tagline}}
269
+ {{readmore_text}} · {{post.tagline}}
212
270
  </a>
213
271
  </div>
214
272
  </div>