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
@@ -27,7 +27,6 @@ defaults:
27
27
  enabled: false
28
28
 
29
29
  autoShowDialog: true # show consent dialog if NO consent cookie found
30
- language: en # language of the modal is shown. Default: navigator.language
31
30
  languages: [en, de] # supported languages, defaults to FIRST language defined by languages
32
31
  contentURL: /assets/data/cookieconsent # dialogs content for all languages
33
32
  cookieName: j1.user.consent # name of the consent cookie
@@ -35,6 +34,7 @@ defaults:
35
34
  postSelectionCallback: j1.adapter.cookieConsent.cbCookie # currently hardcoded
36
35
 
37
36
  reloadPageOnChange: false # reload current page if user settings has been changed
37
+ sameSite: Strict # restrict consent cookie to first-party, do NOT send cookie to other domains
38
38
  xhr_data_element: consent-data # container for the language-specific consent modal (taken from /assets/data/cookieconsent.html)
39
39
  whitelisted: [ /pages/public/legal/en/privacy ] # pages NO consent issued, currently NOT supported
40
40
 
@@ -101,10 +101,11 @@ defaults:
101
101
  This website does <b>not</b> transfer any personal data to GA. Implicit
102
102
  personal information, like IP addresses, is anonymized to protect your privacy.
103
103
  <br><br>
104
- <code>Personalization</code> is used e.g. to collect user feedback or running
105
- advertising campaigns to provide you a website free of charge. Partners like
106
- Disqus or Google enables us to provide you excellent personalized services and
107
- enables us to finance the costs for running this site.
104
+ <code>Personalization</code> is used e.g. to provide personal themes, collect
105
+ visitors feedback or running advertising campaigns to provide you a website
106
+ free of charge. Partners like Bootswatch, Disqus or Google enables us to provide
107
+ you excellent personalized services and enables us to finance the costs for
108
+ running this site.
108
109
  de: >
109
110
  Die Betreiber dieser Website nehmen den Schutz Ihrer persönlichen Daten ernst.
110
111
  Wir behandeln Ihre Daten vertraulich und halten uns zum Schutz Ihrer Privatsphäre
@@ -126,11 +127,11 @@ defaults:
126
127
  übermittelt keine personenbezogenen Daten an GA. Implizite personenbezogene Daten wie
127
128
  IP-Adressen werden zum Schutz Ihrer Privatsphäre anonymisiert.
128
129
  <br><br>
129
- <code>Personalisierung</code> wird z.B. um Benutzerfeedback zu sammeln oder
130
- Werbekampagnen durchzuführen, um Ihnen eine Website kostenlos zur Verfügung zu
131
- stellen. Partner wie Disqus oder Google ermöglichen es uns, Ihnen exzellente
132
- personalisierte Dienste anzubieten und die Kosten für den Betrieb dieser Website
133
- zu finanzieren.
130
+ <code>Personalisierung</code> wird eingesetzt um Ihnen z.B. personalierte Ansichten der
131
+ Webseite (Themen) anzubieten, Benutzerfeedback zu sammeln oder Werbekampagnen durchzuführen,
132
+ um Ihnen diese Website kostenlos zur Verfügung zu stellen. Partner wie Bootswatch, Disqus
133
+ oder Google ermöglichen es uns, Ihnen exzellente personalisierte Dienste anzubieten sowie
134
+ die Kosten für den Betrieb dieser Website zu finanzieren.
134
135
 
135
136
  # ------------------------------------------------------------------------------
136
137
  # END config
@@ -144,6 +144,7 @@ defaults:
144
144
 
145
145
  enabled: false
146
146
 
147
+ reloadPageOnChange: false # reload current page, if theme has been changed
147
148
  retries: 30 # retry to load theme list from API
148
149
  saveToCookie: true
149
150
  debug: false
@@ -27,6 +27,7 @@ about_config:
27
27
  settings:
28
28
 
29
29
  enabled: true
30
+
30
31
  saveToCookie: true
31
32
  debug: false
32
33
 
@@ -35,7 +35,7 @@ about_config:
35
35
  # ------------------------------------------------------------------------------
36
36
  # User configuration settings
37
37
  #
38
- settings:
38
+ defaults:
39
39
 
40
40
  # ----------------------------------------------------------------------------
41
41
  # GENERAL paginator settings
@@ -58,17 +58,18 @@ settings:
58
58
  pagination:
59
59
  enabled: false
60
60
 
61
- title: :title
61
+ debug: false
62
+ title: :title - page :num
62
63
  rebuild: true # currently NOT used
63
64
 
64
65
  permalink: /page:num/
65
- per_page: 4
66
+ per_page: 10
66
67
  limit: 0
67
68
  sort_field: date
68
- sort_reverse: true
69
+ sort_reverse: false
69
70
  trail:
70
- before: 2
71
- after: 2
71
+ before: 0
72
+ after: 0
72
73
 
73
74
  # AUTOPAGE settings
74
75
  #
@@ -43,6 +43,9 @@ settings:
43
43
  pagination:
44
44
  enabled: true
45
45
  rebuild: false # currently NOT used
46
+ per_page: 4
47
+ sort_reverse: true
48
+ title: :title
46
49
 
47
50
  # AUTOPAGE settings
48
51
  #
@@ -412,7 +412,7 @@ end::tables[]
412
412
  // -----------------------------------------------------------------------------
413
413
  tag::products[]
414
414
  :j1--license: MIT License
415
- :j1--version: 2021.1.11
415
+ :j1--version: 2021.1.16
416
416
  :j1--site-name: Jekyll One
417
417
  end::products[]
418
418
 
@@ -0,0 +1,67 @@
1
+ # Taken from https://github.com/uwolf/jekyll-i18n-date
2
+
3
+ # ------------------------------------------------------------------------------
4
+ # ~/_plugins/date-i18n.rb
5
+ # Plugin for DateTime Localization in Jekyll
6
+ #
7
+ # Product/Info:
8
+ # http://jekyll.one
9
+ #
10
+ # Copyright (C) 2021 Juergen Adams
11
+ # Copyright (c) 2018 Ulrich Wolf
12
+ #
13
+ # J1 Template is licensed under the MIT License.
14
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
15
+ # jekyll-i18n-date is licensed under the MIT License.
16
+ # See: https://github.com/uwolf/jekyll-i18n-date/blob/master/LICENSE
17
+ # ------------------------------------------------------------------------------
18
+ # Example|s:
19
+ # {{ page.date | localize: "%d.%m.%Y" }}
20
+ # {{ post.date | localize: "%d.%m.%Y", "de" }}
21
+ # ------------------------------------------------------------------------------
22
+ require 'i18n'
23
+
24
+ module Jekyll
25
+ # i18n filter for jekyll
26
+ module I18nFilter
27
+ # Example:
28
+ # {{ post.date | localize: "%d.%m.%Y" }}
29
+ # {{ post.date | localize: ":short" }}
30
+ def localize(input, format = nil, locale = nil)
31
+
32
+ # Side effects: changes I18n.config, must run before current_locale is set
33
+ load_translations
34
+
35
+ input = Time.at(input) if input.class == Integer
36
+
37
+ format = format =~ /^:(\w+)/ ? Regexp.last_match(1).to_sym : format
38
+
39
+ if input && locale = current_locale(locale)
40
+
41
+ I18n.locale = locale
42
+ I18n.l(input, format: format)
43
+ else
44
+ input
45
+ end
46
+ end
47
+
48
+ def load_translations
49
+ return false unless I18n.backend.send(:translations).empty?
50
+ filename = File.join(File.dirname(__FILE__), '../_data/locales/*.yml')
51
+ I18n.backend.load_translations Dir[filename]
52
+ end
53
+
54
+ def current_locale(locale)
55
+ l = locale || @context.registers[:page]['language'] || @context.registers[:site].config['language']
56
+
57
+ if l && I18n.config.available_locales.include?(l.to_sym)
58
+ l
59
+ else
60
+ false
61
+ end
62
+ end
63
+
64
+ end
65
+ end
66
+
67
+ Liquid::Template.register_filter(Jekyll::I18nFilter)
@@ -360,6 +360,6 @@ end
360
360
 
361
361
  module Jekyll
362
362
  module J1LunrSearch
363
- VERSION = '2021.1.11'
363
+ VERSION = '2021.1.16'
364
364
  end
365
365
  end
@@ -2,7 +2,7 @@
2
2
  title: Cookies
3
3
  tagline: good to know
4
4
 
5
- categories: [ Featured, Post ]
5
+ categories: [ Knowledge ]
6
6
  tags: [ Cookies ]
7
7
 
8
8
  image: /assets/images/modules/attics/cookies-1920x1200.jpg
@@ -2,7 +2,7 @@
2
2
  title: Site Generators
3
3
  tagline: top open source tools
4
4
 
5
- categories: [ Featured, Post ]
5
+ categories: [ Knowledge ]
6
6
  tags: [ Jekyll, Generators ]
7
7
 
8
8
  image: /assets/images/modules/attics/machine-generator-1920x1280.jpg
@@ -2,7 +2,7 @@
2
2
  title: J1 Template
3
3
  tagline: first version is out
4
4
 
5
- categories: [ Featured, Post ]
5
+ categories: [ Knowledge ]
6
6
  tags: [ J1, Template ]
7
7
 
8
8
  image: /assets/images/modules/attics/runner-1920x1200.jpg
@@ -2,8 +2,8 @@
2
2
  title: Test Post 1
3
3
  tagline: testing series elements
4
4
 
5
- categories: [ Series ]
6
- tags: [ Post, Test ]
5
+ categories: [ Examples ]
6
+ tags: [ Series, Test ]
7
7
 
8
8
  series: test-series
9
9
 
@@ -2,8 +2,8 @@
2
2
  title: Test Post 2
3
3
  tagline: testing series elements
4
4
 
5
- categories: [ Series ]
6
- tags: [ Post, Test ]
5
+ categories: [ Examples ]
6
+ tags: [ Series, Test ]
7
7
 
8
8
  series: test-series
9
9
 
@@ -2,8 +2,8 @@
2
2
  title: Test Post 3
3
3
  tagline: testing series elements
4
4
 
5
- categories: [ Series ]
6
- tags: [ Post, Test ]
5
+ categories: [ Examples ]
6
+ tags: [ Series, Test ]
7
7
 
8
8
  series: test-series
9
9
 
@@ -2,8 +2,8 @@
2
2
  title: Test Post 4
3
3
  tagline: testing series elements
4
4
 
5
- categories: [ Series ]
6
- tags: [ Post, Test ]
5
+ categories: [ Examples ]
6
+ tags: [ Series, Test ]
7
7
 
8
8
  series: test-series
9
9
 
@@ -3,7 +3,7 @@ title: Minneapolis
3
3
  tagline: largest city in the state of minnesota
4
4
 
5
5
  categories: [ Wikipedia ]
6
- tags: [ USA, Minnesota, City, Minneapolis ]
6
+ tags: [ USA, Minnesota, Cities, Minneapolis ]
7
7
 
8
8
  image: /assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg
9
9
 
@@ -3,7 +3,7 @@ title: Narcisse Snake Dens
3
3
  tagline: largest snake population
4
4
 
5
5
  categories: [ Wikipedia ]
6
- tags: [ Canada, Cities ]
6
+ tags: [ Canada, Cities, Narcisse ]
7
7
 
8
8
  image: /assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg
9
9
 
@@ -18,9 +18,9 @@ robots:
18
18
  index: true
19
19
  follow: true
20
20
 
21
- # analytics: false
22
- # advertising: false
23
- # comments: false
21
+ analytics: true
22
+ advertising: false
23
+ comments: false
24
24
 
25
25
  fam_menu_id: default
26
26
  scrollbar: false
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1_starter",
4
- "version": "2021.1.11",
4
+ "version": "2021.1.16",
5
5
  "description": "J1 Template Starter Web",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -14,6 +14,9 @@ categories: [ Asciidoc, Skeleton ]
14
14
  tags: [ Knowledge, Skeleton, Book ]
15
15
 
16
16
  sitemap: false
17
+ advertising: false
18
+ comments: false
19
+
17
20
  robots:
18
21
  index: false
19
22
  follow: false
@@ -13,6 +13,9 @@ categories: [ Asciidoc, Skeleton ]
13
13
  tags: [ Knowledge, Skeleton, Document ]
14
14
 
15
15
  sitemap: false
16
+ advertising: false
17
+ comments: false
18
+
16
19
  robots:
17
20
  index: false
18
21
  follow: false
@@ -12,6 +12,9 @@ categories: [ Asciidoc, Skeleton ]
12
12
  tags: [ Knowledge, Skeleton, Document ]
13
13
 
14
14
  sitemap: false
15
+ advertising: false
16
+ comments: false
17
+
15
18
  robots:
16
19
  index: false
17
20
  follow: false
@@ -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.archive_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,67 @@ resource_options:
61
79
  {% capture tag_view %}{{page_path}}/archive/tagview/{% endcapture %}
62
80
  {% capture all_view %}{{page_path}}/{% endcapture %}
63
81
 
82
+ {% comment %} language detection
83
+ -------------------------------------------------------------------------------- {% endcomment %}
84
+ {% if site.language == "en" %}
85
+ {% assign language = "en" %}
86
+ {% elsif site.language == "de"%}
87
+ {% assign language = "de" %}
88
+ {% else %}
89
+ {% assign language = "en" %}
90
+ {% endif %}
91
+
92
+ {% if language == "en" %}
93
+ {% assign readmore_text = "read" %}
94
+
95
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
96
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
97
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
98
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
99
+
100
+ {% assign view_headline = blog_navigator_options.archive_view.page_text.en.headline %}
101
+ {% assign view_description_text = blog_navigator_options.archive_view.page_text.en.description %}
102
+ {% endif %}
103
+
104
+ {% if language == "de" %}
105
+ {% assign readmore_text = "lesen" %}
106
+
107
+ {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %}
108
+ {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %}
109
+ {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %}
110
+ {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %}
111
+
112
+ {% assign view_headline = blog_navigator_options.archive_view.page_text.de.headline %}
113
+ {% assign view_description_text = blog_navigator_options.archive_view.page_text.de.description %}
114
+ {% endif %}
115
+
116
+ {% comment %} Debugging
117
+ --------------------------------------------------------------------------------
118
+ skip_categories: {{skip_categories | debug}}
119
+ site_category_word_list: {{site_category_word_list | debug}}
120
+ --------------------------------------------------------------------------------
121
+ {% endcomment %}
122
+
123
+
64
124
  {% comment %} Main
65
125
  -------------------------------------------------------------------------------- {% endcomment %}
66
126
  <!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
67
127
  <div class="paginator ml-3">
68
128
  <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="{{tag_view | prepend: site.baseurl}}" title="View by Tag">By Tag</a></li -->
72
- <li class="page-item"><a class="page-link" href="{{date_view | prepend: site.baseurl}}" title="View All">By Date</a></li>
129
+ <li class="page-item"><a class="page-link" href="{{navigator | prepend: site.baseurl}}" alt="Blog View">Navigator</a></li>
130
+ <li class="page-item"><a class="page-link" href="{{category_view|prepend: site.baseurl}}" alt="View by Category">{{category_view_button_text}}</a></li>
131
+ <li class="page-item"><a class="page-link" href="{{date_view}}" alt="View by Date">{{date_view_button_text}}</a></li>
132
+ <!-- li class="page-item"><a class="page-link" href="{{tag_view}}" alt="{{tag_view_button_text}}">By Tag</a></li -->
73
133
  </ul>
74
134
  </div>
75
135
 
76
136
  <div id="index" class="post-search-results ml-3">
77
- <div class="view-description">{{view_description}}</div>
137
+ {% if blog_navigator_options.archive_view.page_text.enabled %}
138
+ <div class="view-description">{{view_description_text}}</div>
139
+ {% endif %}
140
+
78
141
  <div class="post-headline">
79
- <h2 id="post-headline" class="mt-5">All Posts</h2>
142
+ <h2 id="post-headline" class="mt-5">{{view_headline}}</h2>
80
143
  </div>
81
144
 
82
145
  <!-- ul class="list-unstyled link-news" -->
@@ -113,7 +176,12 @@ resource_options:
113
176
  <div class="card-footer-text">
114
177
  <hr class="my-3">
115
178
  {% if post.date %}
116
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
179
+ {% if language == "en" %}
180
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
181
+ {% endif %}
182
+ {% if language == "de" %}
183
+ <i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
184
+ {% endif %}
117
185
  {% endif %}
118
186
  {% if likes_count %}
119
187
  <span class="font-weight-bold"> · </span>
@@ -126,7 +194,7 @@ resource_options:
126
194
  </div>
127
195
  <a class="card-link text-muted text-lowercase"
128
196
  href="{{post.url}}#readmore">
129
- Read · {{post.tagline}}
197
+ {{readmore_text}} · {{post.tagline}}
130
198
  </a>
131
199
  </div>
132
200
  </div>