j1-template 2023.8.2 → 2023.9.1
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/layouts/content_generator_post.html +19 -49
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +185 -192
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -14
- data/_includes/themes/j1/procedures/posts/pager.proc +39 -46
- data/assets/themes/j1/adapter/js/speak2me.js +1 -1
- data/assets/themes/j1/adapter/js/translator.js +4 -2
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +31 -26
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +2 -2
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +31 -26
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +2 -2
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +37 -29
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +3 -3
- data/assets/themes/j1/core/js/template.js +58 -43
- data/assets/themes/j1/core/js/template.min.js +7 -7
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/blocks/footer.yml +6 -4
- data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +89 -135
- data/lib/starter_web/_data/modules/defaults/speak2me.yml +1 -0
- data/lib/starter_web/_data/modules/justifiedGallery.yml +3 -3
- data/lib/starter_web/_data/modules/navigator_menu.yml +14 -7
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +74 -70
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +110 -84
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +49 -33
- data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +47 -26
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +66 -63
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +76 -77
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +63 -64
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +79 -64
- data/lib/starter_web/pages/public/blog/navigator/index.html +55 -99
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_bootstrap.asciidoc +6 -2
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +59 -35
- data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +4 -4
- data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +28 -12
- data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +12 -4
- data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +5 -1
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +512 -470
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +20 -6
- data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +5 -2
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +24 -13
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +4 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +4 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +632 -595
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +12 -3
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +2 -2
@@ -1,9 +1,12 @@
|
|
1
1
|
---
|
2
2
|
title: J1 Theme
|
3
|
+
title_extention: About the Template
|
3
4
|
tagline: About the Template
|
5
|
+
|
6
|
+
#date: 2023-01-01
|
4
7
|
#last_modified: 2023-01-01
|
5
8
|
|
6
|
-
categories: [ Jekyll
|
9
|
+
categories: [ Jekyll ]
|
7
10
|
tags: [ Theme ]
|
8
11
|
|
9
12
|
image:
|
@@ -15,13 +18,12 @@ image:
|
|
15
18
|
group: Featured
|
16
19
|
series: Featured
|
17
20
|
|
18
|
-
|
21
|
+
#tts: false
|
22
|
+
fab_menu_id: open_toc
|
19
23
|
comments: false
|
20
24
|
regenerate: false
|
21
25
|
|
22
|
-
|
23
|
-
|
24
|
-
resources: [ animate, bmd ]
|
26
|
+
resources: [ animate ]
|
25
27
|
resource_options:
|
26
28
|
- attic:
|
27
29
|
padding_top: 600
|
@@ -39,6 +41,7 @@ resource_options:
|
|
39
41
|
// -----------------------------------------------------------------------------
|
40
42
|
// :page--attr: <attr-value>
|
41
43
|
:badges-enabled: false
|
44
|
+
:url-codinghorror--understanding-mvc: https://blog.codinghorror.com/understanding-model-view-controller
|
42
45
|
|
43
46
|
// Place an excerpt at the most top position
|
44
47
|
// -----------------------------------------------------------------------------
|
@@ -63,6 +66,8 @@ excerpt__end
|
|
63
66
|
|
64
67
|
// Page content
|
65
68
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
69
|
+
mdi:clock-time-five-outline[24px, md-gray mr-2 mt-4]
|
70
|
+
*2 Minutes* to read
|
66
71
|
|
67
72
|
ifeval::[{badges-enabled} == true]
|
68
73
|
{badge-j1--license} {badge-j1--version-latest} {badge-j1-gh--last-commit} {badge-j1--downloads}
|
@@ -70,26 +75,33 @@ endif::[]
|
|
70
75
|
|
71
76
|
// Include sub-documents (if any)
|
72
77
|
// -----------------------------------------------------------------------------
|
73
|
-
|
74
|
-
|
75
|
-
{url-
|
76
|
-
|
77
|
-
|
78
|
-
|
78
|
+
[role="mt-5"]
|
79
|
+
== Background
|
80
|
+
Many large companies today, like {url-docker--docs}[Docker, {browser-window--new}]
|
81
|
+
are using template-based systems to create their documentation web sites. Or
|
82
|
+
like {url-oreilly-atlas--home}[Atlas, {browser-window--new}] a writers platform
|
83
|
+
for books or extensive documentation created and managed by the publishing
|
84
|
+
company _O'Reilly._
|
85
|
+
|
86
|
+
[role="mb-4"]
|
79
87
|
All these platforms are technically different, but they share common ideas:
|
80
88
|
|
81
|
-
* the layout of all content
|
89
|
+
* the layout of all content is based on a standard skeleton but
|
82
90
|
separated from the content
|
83
91
|
* content is written using a neutral meta-language
|
84
92
|
* the final output is not predefined
|
85
|
-
* the result is automatically generated by engines
|
93
|
+
* the result is automatically generated by engines
|
86
94
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
the
|
91
|
-
writing content.
|
95
|
+
[role="mt-4"]
|
96
|
+
To make these real, a lot of things are to be managed. The approaches of
|
97
|
+
Docker or O'Reilly points to a possible solution: a template system based
|
98
|
+
on _Bootstrap_ for the CSS framework, and _Jekyll_ or _Liquid_ for the core
|
99
|
+
engines, and finally _Asciidoc_ for a neutral meta-language writing content.
|
92
100
|
|
101
|
+
[role="mt-5"]
|
102
|
+
== Next steps
|
103
|
+
|
104
|
+
[role="mb-4"]
|
93
105
|
The next thought comes to my mind. Why developing a toolset for only
|
94
106
|
document servers? Documentation webs of today are complex websites. Some
|
95
107
|
features used for general web design may be not needed for documentation
|
@@ -98,22 +110,31 @@ systems, but a lot of components are required that are wanted in general:
|
|
98
110
|
* a powerful CSS and Javascript framework
|
99
111
|
* a modular approach for dynamic content and apps
|
100
112
|
* a configuration system to separate content from the layout and to automate
|
101
|
-
creation processes following the development pattern
|
102
|
-
|
113
|
+
creation processes following the development pattern
|
114
|
+
link:{url-codinghorror--understanding-mvc}[Model–View–Controller, {browser-window--new}].
|
103
115
|
|
116
|
+
[role="mt-4"]
|
104
117
|
A plan was made in 2016, based on Jekyll V3 and Bootstrap V3, to create a
|
105
118
|
template-based robot system that can be used for all types of websites, for
|
106
119
|
all standard formats to create digital content.
|
107
120
|
|
121
|
+
[role="mt-5"]
|
122
|
+
== Today
|
123
|
+
|
124
|
+
[role="mb-4"]
|
108
125
|
I was too optimistic about how long it would take to build such a system:
|
109
126
|
|
110
127
|
* easy to use by developers and non-technical people
|
111
128
|
* modular, powerful and stable
|
112
|
-
* supporting modern
|
113
|
-
* usable on common computer hardware
|
114
|
-
*
|
115
|
-
* entirely usable on
|
129
|
+
* supporting modern design based on HTML V5 and Bootstrap V5
|
130
|
+
* usable on common computer hardware
|
131
|
+
* fully responsible on all devices
|
132
|
+
* entirely usable on PCs locally as well as on powerful remote systems
|
116
133
|
on the Internet
|
117
134
|
|
118
|
-
|
119
|
-
|
135
|
+
[role="mt-4"]
|
136
|
+
It took me ages. Now in 2023, I can present the latest version of J1 Template
|
137
|
+
for the public. Hopefully, most of the objectives I had on my mind are
|
138
|
+
achieved.
|
139
|
+
|
140
|
+
Happy Jekylling!
|
@@ -4,7 +4,7 @@ layout: page
|
|
4
4
|
title: Archive
|
5
5
|
tagline: Explore All Posts
|
6
6
|
|
7
|
-
date:
|
7
|
+
date: 2023-09-20
|
8
8
|
#last_modified: 2023-01-01
|
9
9
|
|
10
10
|
description: >
|
@@ -22,10 +22,12 @@ pagination:
|
|
22
22
|
permalink: /page:num/
|
23
23
|
|
24
24
|
image:
|
25
|
-
path: /assets/images/modules/attics/matthaeus
|
25
|
+
path: /assets/images/modules/attics/1920x1280/matthaeus.jpg
|
26
26
|
width: 1920
|
27
27
|
height: 1280
|
28
28
|
|
29
|
+
tts: true
|
30
|
+
fab_menu_id: open_toc
|
29
31
|
sort: date
|
30
32
|
exclude_from_search: true
|
31
33
|
regenerate: false # set to 'true', if update posts is required
|
@@ -34,7 +36,7 @@ resources: [ animate, scroller ]
|
|
34
36
|
resource_options:
|
35
37
|
- attic:
|
36
38
|
slides:
|
37
|
-
- url: /assets/images/modules/attics/matthaeus
|
39
|
+
- url: /assets/images/modules/attics/1920x1280/matthaeus.jpg
|
38
40
|
alt: Photo by Matthaeus on Unsplash
|
39
41
|
badge:
|
40
42
|
type: unsplash
|
@@ -42,6 +44,13 @@ resource_options:
|
|
42
44
|
href: https://unsplash.com/@matthaeus123
|
43
45
|
---
|
44
46
|
|
47
|
+
{% comment %} Debugging
|
48
|
+
--------------------------------------------------------------------------------
|
49
|
+
skip_categories: {{skip_categories | debug}}
|
50
|
+
site_category_word_list: {{site_category_word_list | debug}}
|
51
|
+
--------------------------------------------------------------------------------
|
52
|
+
{% endcomment %}
|
53
|
+
|
45
54
|
{% comment %} Liquid procedures
|
46
55
|
-------------------------------------------------------------------------------- {% endcomment %}
|
47
56
|
{% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
|
@@ -76,9 +85,10 @@ resource_options:
|
|
76
85
|
{% capture browser_page_url %}{{page.url}}{% endcapture %}
|
77
86
|
{% endif %}
|
78
87
|
|
88
|
+
{% comment %} Generate URLs for all Navigator Views
|
89
|
+
------------------------------------------------------------------------ {% endcomment %}
|
79
90
|
{% include {{get_page_path}} mode='absolute' %}
|
80
91
|
{% assign navigator_path = page_path|remove_first: '/archive' %}
|
81
|
-
|
82
92
|
{% capture navigator %}{{navigator_path}}/{% endcapture %}
|
83
93
|
{% capture date_view %}{{page_path}}/dateview/{% endcapture %}
|
84
94
|
{% capture category_view %}{{page_path}}/categoryview/{% endcapture %}
|
@@ -96,84 +106,75 @@ resource_options:
|
|
96
106
|
{% assign image_filters = '' %}
|
97
107
|
{% endif %}
|
98
108
|
|
99
|
-
{% comment %}
|
109
|
+
{% comment %} Collect Readmore Text
|
100
110
|
-------------------------------------------------------------------------------- {% endcomment %}
|
101
|
-
{% if
|
102
|
-
{% assign
|
103
|
-
{% elsif site.language == "de"%}
|
104
|
-
{% assign language = "de" %}
|
105
|
-
{% else %}
|
106
|
-
{% assign language = "en" %}
|
111
|
+
{% if blog_navigator_options.readmore_text %}
|
112
|
+
{% assign readmore_text = blog_navigator_options.readmore_text %}
|
107
113
|
{% endif %}
|
108
114
|
|
109
|
-
{%
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
{% assign view_headline = blog_navigator_options.archive_view.page_text.en.headline %}
|
118
|
-
{% assign view_description_text = blog_navigator_options.archive_view.page_text.en.description %}
|
119
|
-
{% endif %}
|
120
|
-
|
121
|
-
{% if language == "de" %}
|
122
|
-
{% assign readmore_text = "lesen" %}
|
115
|
+
{% comment %} Collect Button Text/Description
|
116
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
117
|
+
{% assign home_button_text = blog_navigator_options.button_text.view_pager.home %}
|
118
|
+
{% assign navigator_button_text = blog_navigator_options.button_text.view_pager.navigator %}
|
119
|
+
{% assign category_view_button_text = blog_navigator_options.button_text.view_pager.category_view %}
|
120
|
+
{% assign date_view_button_text = blog_navigator_options.button_text.view_pager.date_view %}
|
121
|
+
{% assign archive_view_button_text = blog_navigator_options.button_text.view_pager.archive_view %}
|
122
|
+
{% assign tag_view_button_text = blog_navigator_options.button_text.view_pager.tag_view %}
|
123
123
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
124
|
+
{% assign description_enabled = blog_navigator_options.archive_view.page_description.enabled %}
|
125
|
+
{% assign description_text = blog_navigator_options.archive_view.page_description.text %}
|
126
|
+
{% assign headline_enabled = blog_navigator_options.archive_view.headline.enabled %}
|
127
|
+
{% assign headline_text = blog_navigator_options.archive_view.headline.text %}
|
128
128
|
|
129
|
-
{% assign view_headline = blog_navigator_options.archive_view.page_text.de.headline %}
|
130
|
-
{% assign view_description_text = blog_navigator_options.archive_view.page_text.de.description %}
|
131
|
-
{% endif %}
|
132
|
-
|
133
|
-
{% comment %} Debugging
|
134
|
-
--------------------------------------------------------------------------------
|
135
|
-
skip_categories: {{skip_categories | debug}}
|
136
|
-
site_category_word_list: {{site_category_word_list | debug}}
|
137
|
-
--------------------------------------------------------------------------------
|
138
|
-
{% endcomment %}
|
139
129
|
|
140
130
|
{% comment %} Main
|
141
131
|
-------------------------------------------------------------------------------- {% endcomment %}
|
142
|
-
<!-- [INFO ] [
|
143
|
-
|
132
|
+
<!-- [INFO ] [blog.navigator.archive.allview.html ] [Begin content] -->
|
133
|
+
|
134
|
+
{% comment %} Generate navigation pager
|
135
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
136
|
+
<div class="paginator speak2me-ignore ml-3">
|
144
137
|
<ul class="pagination raised-z0">
|
145
|
-
<li class="page-item"><a class="page-link" href="/"
|
146
|
-
<li class="page-item"><a class="page-link" href="{{navigator}}"
|
147
|
-
<li class="page-item"><a class="page-link" href="{{category_view}}"
|
148
|
-
<li class="page-item"><a class="page-link" href="{{date_view}}"
|
149
|
-
|
138
|
+
<li class="page-item"><a class="page-link" href="/" title="Back to {{home_button_text}}">{{home_button_text}}</a></li>
|
139
|
+
<li class="page-item"><a class="page-link" href="{{navigator}}" title="Back to {{navigator_button_text}}">{{navigator_button_text}}</a></li>
|
140
|
+
<li class="page-item"><a class="page-link" href="{{category_view}}" title="View by {{category_view_button_text}}">{{category_view_button_text}}</a></li>
|
141
|
+
<li class="page-item"><a class="page-link" href="{{date_view}}" title="View by {{date_view_button_text}}">{{date_view_button_text}}</a></li>
|
142
|
+
<!-- li class="page-item"><a class="page-link" href="{{tag_view}}" title="View by {{tag_view_button_text}}">{{tag_view_button_text}}</a></li -->
|
150
143
|
</ul>
|
151
144
|
</div>
|
152
145
|
|
153
|
-
|
154
|
-
|
155
|
-
|
146
|
+
{% comment %} Generate content section
|
147
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
148
|
+
<div id="index" class="content post-search-results ml-3">
|
149
|
+
{% if description_enabled %}
|
150
|
+
<div class="view-description mt-4 mb-4">{{description_text}}</div>
|
156
151
|
{% endif %}
|
157
152
|
|
158
|
-
|
159
|
-
|
153
|
+
{% if headline_enabled %}
|
154
|
+
<div class="post-headline mt-4 mb-5">
|
155
|
+
<h2 id="post_headline" class="notoc">{{headline_text}}</h2>
|
160
156
|
</div>
|
157
|
+
{% endif %}
|
161
158
|
|
162
159
|
<!-- ul class="list-unstyled link-news" -->
|
163
160
|
{% for post in site.posts %}
|
164
161
|
{% comment %} {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html %} {% endcomment %}
|
165
162
|
{% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...' %}
|
166
163
|
|
164
|
+
{% comment %} jadams, 2023-09-20: currently NOT used
|
165
|
+
----------------------------------------------------------------------------
|
167
166
|
<!-- Collect comment provider details -->
|
168
167
|
{% for sharing in builder_config.sharing_provider %}
|
169
168
|
{% assign provider = sharing.provider %}
|
170
169
|
{% assign likes_count = sharing.likes_count %}
|
171
170
|
{% assign comment_count = sharing.comment_count %}
|
172
171
|
{% endfor %}
|
172
|
+
---------------------------------------------------------------------------- {% endcomment %}
|
173
173
|
|
174
174
|
<article class="card raised-z0 mb-5">
|
175
|
-
|
176
|
-
|
175
|
+
|
176
|
+
<div class="card-header bg-primary pt-3 pb-2">
|
177
|
+
<h3 id="{{100000|rand}}" class="md-white notranslate">{{post.title}}</h3>
|
177
178
|
</div>
|
178
179
|
|
179
180
|
<div class="row mx-0">
|
@@ -203,21 +204,23 @@ site_category_word_list: {{site_category_word_list | debug}}
|
|
203
204
|
<div class="card-footer-text">
|
204
205
|
|
205
206
|
{% if post.date %}
|
206
|
-
|
207
|
-
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
|
208
|
-
{% endif %}
|
209
|
-
{% if language == "de" %}
|
210
|
-
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
|
211
|
-
{% endif %}
|
207
|
+
<i class="mdi mdi-calendar-blank md-grey-600 mr-2"></i>{{post.date | localize: "%Y %B, %e"}}
|
212
208
|
{% endif %}
|
209
|
+
|
210
|
+
{% comment %} jadams, 2023-09-20: currently NOT used
|
211
|
+
------------------------------------------------------------
|
213
212
|
{% if likes_count %}
|
214
|
-
|
215
|
-
|
213
|
+
<span class="ml-3">
|
214
|
+
<i class="mdib mdib-heart md-grey-900 mr-0"></i> · {{likes_count}}
|
215
|
+
</span>
|
216
216
|
{% endif %}
|
217
|
+
|
217
218
|
{% if comment_count %}
|
218
|
-
|
219
|
-
|
219
|
+
<span class="ml-3">
|
220
|
+
<i class="mdib mdib-comment md-grey-900 mr-0"></i> · {{comment_count}}
|
221
|
+
</span>
|
220
222
|
{% endif %}
|
223
|
+
------------------------------------------------------------ {% endcomment %}
|
221
224
|
|
222
225
|
<!-- Cleanup categories by given blacklist -->
|
223
226
|
{% assign my_categories = post.categories | difference: category_blacklist %}
|
@@ -4,7 +4,7 @@ layout: page
|
|
4
4
|
title: Posts by Category
|
5
5
|
tagline: Explore Posts
|
6
6
|
|
7
|
-
date:
|
7
|
+
date: 2023-09-20
|
8
8
|
#last_modified: 2023-01-01
|
9
9
|
|
10
10
|
description: >
|
@@ -24,10 +24,12 @@ pagination:
|
|
24
24
|
permalink: /page:num/
|
25
25
|
|
26
26
|
image:
|
27
|
-
path: /assets/images/modules/attics/matthaeus
|
27
|
+
path: /assets/images/modules/attics/1920x1280/matthaeus.jpg
|
28
28
|
width: 1920
|
29
29
|
height: 1280
|
30
30
|
|
31
|
+
#tts: false
|
32
|
+
fab_menu_id: open_toc
|
31
33
|
sort: date
|
32
34
|
exclude_from_search: true
|
33
35
|
regenerate: false # set to 'true', if update posts is required
|
@@ -36,7 +38,7 @@ resources: [ animate ]
|
|
36
38
|
resource_options:
|
37
39
|
- attic:
|
38
40
|
slides:
|
39
|
-
- url: /assets/images/modules/attics/matthaeus
|
41
|
+
- url: /assets/images/modules/attics/1920x1280/matthaeus.jpg
|
40
42
|
alt: Photo by Matthaeus on Unsplash
|
41
43
|
badge:
|
42
44
|
type: unsplash
|
@@ -44,6 +46,13 @@ resource_options:
|
|
44
46
|
href: https://unsplash.com/@matthaeus123
|
45
47
|
---
|
46
48
|
|
49
|
+
{% comment %} Debugging
|
50
|
+
--------------------------------------------------------------------------------
|
51
|
+
skip_categories: {{skip_categories | debug}}
|
52
|
+
site_category_word_list: {{site_category_word_list | debug}}
|
53
|
+
--------------------------------------------------------------------------------
|
54
|
+
{% endcomment %}
|
55
|
+
|
47
56
|
{% comment %} Liquid procedures
|
48
57
|
-------------------------------------------------------------------------------- {% endcomment %}
|
49
58
|
{% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %}
|
@@ -80,9 +89,10 @@ resource_options:
|
|
80
89
|
{% capture browser_page_url %}{{page.url}}{% endcapture %}
|
81
90
|
{% endif %}
|
82
91
|
|
92
|
+
{% comment %} Generate URLs for all Navigator Views
|
93
|
+
------------------------------------------------------------------------ {% endcomment %}
|
83
94
|
{% include {{get_page_path}} mode='absolute' %}
|
84
95
|
{% assign navigator_path = page_path|remove_first: 'archive' %}
|
85
|
-
|
86
96
|
{% capture navigator %}{{navigator_path}}{% endcapture %}
|
87
97
|
{% capture date_view %}{{page_path}}/dateview/{% endcapture %}
|
88
98
|
{% capture category_view %}{{page_path}}/categoryview/{% endcapture %}
|
@@ -97,14 +107,13 @@ resource_options:
|
|
97
107
|
{% assign sorted_posts = site.posts|sort: 'date' %}
|
98
108
|
{% endif %}
|
99
109
|
|
100
|
-
{% comment %} TODO: skip_words NOT longer needed?
|
101
|
-
|
110
|
+
{% comment %} TODO: skip_words NOT longer needed? Already done
|
111
|
+
by processing of categories
|
102
112
|
--------------------------------------------------------------------------------
|
103
113
|
{% capture skip_words %} Posts Public {% endcapture %}
|
104
114
|
--------------------------------------------------------------------------------
|
105
115
|
{% endcomment %}
|
106
116
|
|
107
|
-
|
108
117
|
{% comment %} category processing
|
109
118
|
-------------------------------------------------------------------------------- {% endcomment %}
|
110
119
|
{% for category in category_blacklist %}
|
@@ -133,83 +142,66 @@ resource_options:
|
|
133
142
|
{% assign image_filters = '' %}
|
134
143
|
{% endif %}
|
135
144
|
|
136
|
-
{% comment %}
|
137
|
-
--------------------------------------------------------------------------------
|
138
|
-
{% if site.language == "en" %}
|
139
|
-
{% assign language = "en" %}
|
140
|
-
{% elsif site.language == "de"%}
|
141
|
-
{% assign language = "de" %}
|
142
|
-
{% else %}
|
143
|
-
{% assign language = "en" %}
|
144
|
-
{% endif %}
|
145
|
+
{% comment %} Collect Readmore Text
|
145
146
|
-------------------------------------------------------------------------------- {% endcomment %}
|
146
|
-
|
147
|
-
{% assign
|
148
|
-
|
149
|
-
{% if language == "en" %}
|
150
|
-
{% assign readmore_text = "read" %}
|
151
|
-
{% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %}
|
152
|
-
{% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %}
|
153
|
-
{% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %}
|
154
|
-
{% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %}
|
155
|
-
|
156
|
-
{% assign view_headline = blog_navigator_options.category_view.page_text.en.headline %}
|
157
|
-
{% assign view_description_text = blog_navigator_options.category_view.page_text.en.description %}
|
147
|
+
{% if blog_navigator_options.readmore_text %}
|
148
|
+
{% assign readmore_text = blog_navigator_options.readmore_text %}
|
158
149
|
{% endif %}
|
159
150
|
|
160
|
-
{% comment %}
|
161
|
-
--------------------------------------------------------------------------------
|
162
|
-
{% if language == "de" %}
|
163
|
-
{% assign readmore_text = "lesen" %}
|
164
|
-
|
165
|
-
{% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %}
|
166
|
-
{% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %}
|
167
|
-
{% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %}
|
168
|
-
{% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %}
|
169
|
-
|
170
|
-
{% assign view_headline = blog_navigator_options.category_view.page_text.de.headline %}
|
171
|
-
{% assign view_description_text = blog_navigator_options.category_view.page_text.de.description %}
|
172
|
-
{% endif %}
|
151
|
+
{% comment %} Collect Button Text/Description
|
173
152
|
-------------------------------------------------------------------------------- {% endcomment %}
|
153
|
+
{% assign home_button_text = blog_navigator_options.button_text.view_pager.home %}
|
154
|
+
{% assign navigator_button_text = blog_navigator_options.button_text.view_pager.navigator %}
|
155
|
+
{% assign category_view_button_text = blog_navigator_options.button_text.view_pager.category_view %}
|
156
|
+
{% assign date_view_button_text = blog_navigator_options.button_text.view_pager.date_view %}
|
157
|
+
{% assign archive_view_button_text = blog_navigator_options.button_text.view_pager.archive_view %}
|
158
|
+
{% assign tag_view_button_text = blog_navigator_options.button_text.view_pager.tag_view %}
|
159
|
+
|
160
|
+
{% assign description_enabled = blog_navigator_options.category_view.page_description.enabled %}
|
161
|
+
{% assign description_text = blog_navigator_options.category_view.page_description.text %}
|
162
|
+
{% assign headline_enabled = blog_navigator_options.category_view.headline.enabled %}
|
163
|
+
{% assign headline_text = blog_navigator_options.category_view.headline.text %}
|
174
164
|
|
175
|
-
{% comment %} Debugging
|
176
|
-
--------------------------------------------------------------------------------
|
177
|
-
skip_categories: {{skip_categories | debug}}
|
178
|
-
site_category_word_list: {{site_category_word_list | debug}}
|
179
|
-
--------------------------------------------------------------------------------
|
180
|
-
{% endcomment %}
|
181
165
|
|
182
166
|
{% comment %} Main
|
183
167
|
-------------------------------------------------------------------------------- {% endcomment %}
|
184
|
-
<!-- [INFO ] [
|
168
|
+
<!-- [INFO ] [blog.navigator.archive.categoryview.html ] [Begin content] -->
|
185
169
|
{% include {{create_word_cloud}} source="categories" word_list=category_list %}
|
186
170
|
|
171
|
+
{% comment %} Generate navigation pager
|
172
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
187
173
|
<!-- [INFO ] [ {{page.url}} ] [Generate HTML}] -->
|
188
|
-
<div class="paginator speak2me-ignore ml-3
|
174
|
+
<div class="paginator speak2me-ignore ml-3">
|
189
175
|
<ul class="pagination raised-z0">
|
190
|
-
<li class="page-item"><a class="page-link" href="/"
|
191
|
-
|
192
|
-
<li class="page-item"><a class="page-link" href="{{
|
193
|
-
|
194
|
-
|
195
|
-
<li class="page-item"><a class="page-link" href="{{all_view}}" alt="View All">{{archive_view_button_text}}</a></li>
|
176
|
+
<li class="page-item"><a class="page-link" href="/" title="Back to {{home_button_text}}">{{home_button_text}}</a></li>
|
177
|
+
<li class="page-item"><a class="page-link" href="{{navigator}}" title="Back to {{navigator_button_text}}">{{navigator_button_text}}</a></li>
|
178
|
+
<li class="page-item"><a class="page-link" href="{{date_view}}" title="View by {{date_view_button_text}}">{{date_view_button_text}}</a></li>
|
179
|
+
<!-- li class="page-item"><a class="page-link" href="{{tag_view}}" title="View by {{tag_view_button_text}}">{{tag_view_button_text}}</a></li -->
|
180
|
+
<li class="page-item"><a class="page-link" href="{{all_view}}" title="View {{archive_view_button_text}}">{{archive_view_button_text}}</a></li>
|
196
181
|
</ul>
|
197
182
|
</div>
|
198
183
|
|
199
|
-
|
200
|
-
|
201
|
-
|
184
|
+
{% comment %} Generate content section
|
185
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
186
|
+
<div class="content post-search-results ml-3">
|
187
|
+
{% if description_enabled %}
|
188
|
+
<div class="view-description mt-4 mb-4">{{description_text}}</div>
|
202
189
|
{% endif %}
|
203
190
|
|
204
|
-
|
205
|
-
|
191
|
+
{% if headline_enabled %}
|
192
|
+
<div class="post-headline mt-4 mb-5">
|
193
|
+
<h2 id="post_headline" class="notoc">{{headline_text}}</h2>
|
206
194
|
</div>
|
195
|
+
{% endif %}
|
207
196
|
|
208
197
|
{% assign tags = site.categories|sort %}
|
209
198
|
{% for tag in tags %}
|
210
199
|
{% assign category = tag|first %}
|
211
200
|
{% unless category_list contains category %} {% continue %} {% endunless %}
|
212
|
-
|
201
|
+
|
202
|
+
<h2 id="{{tag|first|downcase}}" class="anchor-link mb-4">
|
203
|
+
<i class="mdib mdib-pin mr-1"></i>{{tag|first|capitalize}}
|
204
|
+
</h2>
|
213
205
|
|
214
206
|
{% for post in sorted_posts %}
|
215
207
|
{%if post.categories contains tag[0]%}
|
@@ -220,17 +212,22 @@ site_category_word_list: {{site_category_word_list | debug}}
|
|
220
212
|
{% comment %} {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html %} {% endcomment %}
|
221
213
|
{% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...' %}
|
222
214
|
|
215
|
+
{% comment %} jadams, 2023-09-20: currently NOT used
|
216
|
+
----------------------------------------------------------------------
|
223
217
|
<!-- Collect comment provider details -->
|
224
218
|
{% for sharing in builder_config.sharing_provider %}
|
225
219
|
{% assign provider = sharing.provider %}
|
226
220
|
{% assign likes_count = sharing.likes_count %}
|
227
221
|
{% assign comment_count = sharing.comment_count %}
|
228
222
|
{% endfor %}
|
223
|
+
---------------------------------------------------------------------- {% endcomment %}
|
229
224
|
|
230
225
|
<article class="card raised-z0 mb-5">
|
231
|
-
|
232
|
-
|
226
|
+
|
227
|
+
<div class="card-header bg-primary pt-3 pb-2">
|
228
|
+
<h3 id="{{100000|rand}}" class="md-white notranslate">{{post.title}}</h3>
|
233
229
|
</div>
|
230
|
+
|
234
231
|
<div class="row mx-0">
|
235
232
|
<!-- [INFO ] [j1.pages.blog.navigator.categoryview ] [Check if post image is available] -->
|
236
233
|
{% if post.image %}
|
@@ -258,22 +255,24 @@ site_category_word_list: {{site_category_word_list | debug}}
|
|
258
255
|
<div class="card-footer-text">
|
259
256
|
|
260
257
|
{% if post.date %}
|
261
|
-
|
262
|
-
<i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%Y %B, %e"}}
|
263
|
-
{% endif %}
|
264
|
-
{% if language == "de" %}
|
265
|
-
<i class="mdi mdi-calendar-blank md-grey-600 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
|
266
|
-
{% endif %}
|
267
|
-
{% endif %}
|
268
|
-
{% if likes_count %}
|
269
|
-
<span class="font-weight-bold"> · </span>
|
270
|
-
<i class="mdi mdi-heart mr-1"></i> {{likes_count}}
|
271
|
-
{% endif %}
|
272
|
-
{% if comment_count %}
|
273
|
-
<span class="font-weight-bold"> · </span>
|
274
|
-
<i class="mdi mdi-comment mr-1"></i> {{comment_count}}
|
258
|
+
<i class="mdi mdi-calendar-blank md-grey-600 mr-2"></i>{{post.date | localize: "%Y %B, %e"}}
|
275
259
|
{% endif %}
|
276
260
|
|
261
|
+
{% comment %} jadams, 2023-09-20: currently NOT used
|
262
|
+
------------------------------------------------------------
|
263
|
+
{% if likes_count %}
|
264
|
+
<span class="ml-3">
|
265
|
+
<i class="mdib mdib-heart md-grey-900 mr-0"></i> · {{likes_count}}
|
266
|
+
</span>
|
267
|
+
{% endif %}
|
268
|
+
|
269
|
+
{% if comment_count %}
|
270
|
+
<span class="ml-3">
|
271
|
+
<i class="mdib mdib-comment md-grey-900 mr-0"></i> · {{comment_count}}
|
272
|
+
</span>
|
273
|
+
{% endif %}
|
274
|
+
------------------------------------------------------------ {% endcomment %}
|
275
|
+
|
277
276
|
<!-- Cleanup categories by given blacklist -->
|
278
277
|
{% assign my_categories = post.categories | difference: category_blacklist %}
|
279
278
|
|