j1-template 2021.1.14 → 2021.1.16
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_blog_archive.html +197 -219
- data/_includes/themes/j1/layouts/content_generator_collection.html +3 -1
- data/_includes/themes/j1/layouts/content_generator_post.html +30 -22
- 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 +2 -2
- data/assets/data/cookieconsent.html +0 -2
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu_toc.html +20 -1
- data/assets/data/panel.html +28 -7
- data/assets/themes/j1/adapter/js/cookieConsent.js +5 -3
- data/assets/themes/j1/adapter/js/j1.js +51 -29
- data/assets/themes/j1/adapter/js/themer.js +12 -24
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +4 -5
- data/lib/starter_web/_config.yml +1 -1
- 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 +5 -2
- 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 +0 -1
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -2
- 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/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/package.json +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +76 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +90 -26
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +77 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +91 -37
- 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/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +33 -3
- data/_includes/themes/j1/procedures/global/pager.proc +0 -79
@@ -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
|
@@ -144,8 +144,7 @@ defaults:
|
|
144
144
|
|
145
145
|
enabled: false
|
146
146
|
|
147
|
-
|
148
|
-
reloadPageOnChange: false # reload current page, if the theme has been changed
|
147
|
+
reloadPageOnChange: false # reload current page, if theme has been changed
|
149
148
|
retries: 30 # retry to load theme list from API
|
150
149
|
saveToCookie: true
|
151
150
|
debug: false
|
@@ -35,7 +35,7 @@ about_config:
|
|
35
35
|
# ------------------------------------------------------------------------------
|
36
36
|
# User configuration settings
|
37
37
|
#
|
38
|
-
|
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
|
-
|
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:
|
66
|
+
per_page: 10
|
66
67
|
limit: 0
|
67
68
|
sort_field: date
|
68
|
-
sort_reverse:
|
69
|
+
sort_reverse: false
|
69
70
|
trail:
|
70
|
-
before:
|
71
|
-
after:
|
71
|
+
before: 0
|
72
|
+
after: 0
|
72
73
|
|
73
74
|
# AUTOPAGE settings
|
74
75
|
#
|
@@ -412,7 +412,7 @@ end::tables[]
|
|
412
412
|
// -----------------------------------------------------------------------------
|
413
413
|
tag::products[]
|
414
414
|
:j1--license: MIT License
|
415
|
-
:j1--version: 2021.1.
|
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)
|
@@ -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,
|
6
|
+
tags: [ USA, Minnesota, Cities, Minneapolis ]
|
7
7
|
|
8
8
|
image: /assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg
|
9
9
|
|
@@ -43,12 +43,26 @@ resource_options:
|
|
43
43
|
{% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
|
44
44
|
{% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
|
45
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
|
+
|
46
63
|
{% comment %} Variables
|
47
64
|
-------------------------------------------------------------------------------- {% endcomment %}
|
48
|
-
{% assign
|
49
|
-
{% assign truncate_words = site.excerpt_truncate_words %}
|
50
|
-
{% assign view_description = view_config.description %}
|
51
|
-
{% assign defaults = site.data.builder.blog_navigator.defaults %}
|
65
|
+
{% assign truncate_words = site.excerpt_truncate_words %}
|
52
66
|
|
53
67
|
{% if site.permalink == 'none' %}
|
54
68
|
{% capture browser_page_url %}{{page.url}}.html{% endcapture %}
|
@@ -65,22 +79,67 @@ resource_options:
|
|
65
79
|
{% capture tag_view %}{{page_path}}/archive/tagview/{% endcapture %}
|
66
80
|
{% capture all_view %}{{page_path}}/{% endcapture %}
|
67
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
|
+
|
68
124
|
{% comment %} Main
|
69
125
|
-------------------------------------------------------------------------------- {% endcomment %}
|
70
126
|
<!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
|
71
127
|
<div class="paginator ml-3">
|
72
128
|
<ul class="pagination raised-z0">
|
73
|
-
<li class="page-item"><a class="page-link" href="{{navigator
|
74
|
-
<li class="page-item"><a class="page-link" href="{{category_view
|
75
|
-
|
76
|
-
|
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 -->
|
77
133
|
</ul>
|
78
134
|
</div>
|
79
135
|
|
80
136
|
<div id="index" class="post-search-results ml-3">
|
81
|
-
|
137
|
+
{% if blog_navigator_options.archive_view.page_text.enabled %}
|
138
|
+
<div class="view-description">{{view_description_text}}</div>
|
139
|
+
{% endif %}
|
140
|
+
|
82
141
|
<div class="post-headline">
|
83
|
-
<h2 id="post-headline" class="mt-5">
|
142
|
+
<h2 id="post-headline" class="mt-5">{{view_headline}}</h2>
|
84
143
|
</div>
|
85
144
|
|
86
145
|
<!-- ul class="list-unstyled link-news" -->
|
@@ -117,7 +176,12 @@ resource_options:
|
|
117
176
|
<div class="card-footer-text">
|
118
177
|
<hr class="my-3">
|
119
178
|
{% if post.date %}
|
120
|
-
|
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 %}
|
121
185
|
{% endif %}
|
122
186
|
{% if likes_count %}
|
123
187
|
<span class="font-weight-bold"> · </span>
|
@@ -130,7 +194,7 @@ resource_options:
|
|
130
194
|
</div>
|
131
195
|
<a class="card-link text-muted text-lowercase"
|
132
196
|
href="{{post.url}}#readmore">
|
133
|
-
|
197
|
+
{{readmore_text}} · {{post.tagline}}
|
134
198
|
</a>
|
135
199
|
</div>
|
136
200
|
</div>
|
@@ -1,11 +1,13 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
3
|
title: Creators Blog
|
4
|
-
tagline:
|
5
|
-
|
4
|
+
tagline: articles by category
|
5
|
+
date: 2023-01-01 01:00:00 +100
|
6
|
+
description: >
|
7
|
+
articles by category
|
6
8
|
|
7
|
-
categories: [
|
8
|
-
tags: [
|
9
|
+
categories: [ Blog ]
|
10
|
+
tags: [ Navigator, Categories ]
|
9
11
|
|
10
12
|
sort: date
|
11
13
|
toc: true
|
@@ -37,10 +39,6 @@ resource_options:
|
|
37
39
|
href: https://unsplash.com/@matthaeus123
|
38
40
|
---
|
39
41
|
|
40
|
-
{% comment %} Debugging|Helpers
|
41
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
42
|
-
{% comment %} site_category_word_list: {{site_category_word_list|debug}} {% endcomment %}
|
43
|
-
|
44
42
|
{% comment %} Liquid procedures
|
45
43
|
-------------------------------------------------------------------------------- {% endcomment %}
|
46
44
|
{% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
|
@@ -48,12 +46,26 @@ resource_options:
|
|
48
46
|
{% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %}
|
49
47
|
{% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %}
|
50
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
|
+
|
51
66
|
{% comment %} Variables
|
52
67
|
-------------------------------------------------------------------------------- {% endcomment %}
|
53
|
-
{% assign view_config = site.data.builder.blog_navigator.category_view %}
|
54
68
|
{% assign truncate_words = site.excerpt_truncate_words %}
|
55
|
-
{% assign view_description = view_config.description %}
|
56
|
-
{% assign defaults = site.data.builder.blog_navigator.defaults %}
|
57
69
|
|
58
70
|
{% if site.permalink == 'none' %}
|
59
71
|
{% capture browser_page_url %}{{page.url}}.html{% endcapture %}
|
@@ -78,13 +90,16 @@ resource_options:
|
|
78
90
|
{% assign sorted_posts = site.posts|sort: 'date' %}
|
79
91
|
{% endif %}
|
80
92
|
|
81
|
-
{% comment %} TODO: skip_words
|
82
|
-
|
93
|
+
{% comment %} TODO: skip_words NOT longer needed? Already done
|
94
|
+
by processing of categories
|
95
|
+
--------------------------------------------------------------------------------
|
83
96
|
{% capture skip_words %} Posts Public {% endcapture %}
|
97
|
+
--------------------------------------------------------------------------------
|
98
|
+
{% endcomment %}
|
84
99
|
|
85
|
-
{%
|
86
|
-
|
87
|
-
{%
|
100
|
+
{% comment %} category processing
|
101
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
102
|
+
{% assign skip_categories = blog_navigator_options.category_view.skip_categories | split: ", " | join: " " %}
|
88
103
|
|
89
104
|
{% capture site_category_word_list %}{% for category in site.categories %}{{category|first|capitalize|lstrip|rstrip}}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
90
105
|
{% assign category_words = site_category_word_list|split:',' %}
|
@@ -95,25 +110,69 @@ resource_options:
|
|
95
110
|
{% capture category_list %}{{category_list|append: category}}{% unless forloop.last %},{% endunless %}{% endcapture %}
|
96
111
|
{% endfor %}
|
97
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
|
+
|
98
154
|
{% comment %} Main
|
99
155
|
-------------------------------------------------------------------------------- {% endcomment %}
|
100
156
|
<!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
|
101
|
-
{% include {{create_word_cloud}} word_list=category_list source="categories" skip_words=
|
157
|
+
{% include {{create_word_cloud}} word_list=category_list source="categories" skip_words=skip_categories %}
|
102
158
|
|
159
|
+
<!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
|
103
160
|
<div class="paginator ml-3">
|
104
161
|
<ul class="pagination raised-z0">
|
105
|
-
<li class="page-item"><a class="page-link" href="{{navigator|prepend: site.baseurl}}"
|
106
|
-
<li class="page-item"><a class="page-link" href="{{date_view
|
107
|
-
<!-- li class="page-item"><a class="page-link" href="{{tag_view
|
108
|
-
<li class="page-item"><a class="page-link" href="{{all_view
|
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>
|
109
166
|
</ul>
|
110
167
|
</div>
|
111
168
|
|
112
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 %}
|
113
173
|
|
114
|
-
<div class="view-description">{{view_description}}</div>
|
115
174
|
<div class="post-headline">
|
116
|
-
<h2 id="post-headline" class="mt-5">
|
175
|
+
<h2 id="post-headline" class="mt-5">{{view_headline}}</h2>
|
117
176
|
</div>
|
118
177
|
{% assign tags = site.categories|sort %}
|
119
178
|
{% for tag in tags %}
|
@@ -149,7 +208,7 @@ resource_options:
|
|
149
208
|
{% else %}
|
150
209
|
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
|
151
210
|
<div class="col-md-6 img-bg--fill px-0"
|
152
|
-
style="background-image: url({{
|
211
|
+
style="background-image: url({{blog_navigator_options.post_image}});">
|
153
212
|
</div>
|
154
213
|
{% endif %}
|
155
214
|
|
@@ -159,7 +218,12 @@ resource_options:
|
|
159
218
|
<div class="card-footer-text">
|
160
219
|
<hr class="my-3">
|
161
220
|
{% if post.date %}
|
162
|
-
|
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 %}
|
163
227
|
{% endif %}
|
164
228
|
{% if likes_count %}
|
165
229
|
<span class="font-weight-bold"> · </span>
|
@@ -172,7 +236,7 @@ resource_options:
|
|
172
236
|
</div>
|
173
237
|
<a class="card-link text-muted text-lowercase"
|
174
238
|
href="{{post.url}}#readmore">
|
175
|
-
|
239
|
+
{{readmore_text}} · {{post.tagline}}
|
176
240
|
</a>
|
177
241
|
</div>
|
178
242
|
</div>
|