j1-template 2021.1.1 → 2021.1.6
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/layout_metadata_generator.html +23 -9
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
- data/_includes/themes/j1/modules/connectors/ads +3 -5
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +9 -5
- data/_includes/themes/j1/modules/connectors/analytics +4 -2
- data/_includes/themes/j1/modules/connectors/comments +7 -6
- data/_includes/themes/j1/modules/connectors/translator +3 -4
- data/_includes/themes/j1/modules/navigator/generator.html +4 -40
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +2 -2
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +64 -22
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +14 -10
- data/_layouts/default.html +4 -7
- data/assets/data/authclient.html +231 -229
- data/assets/data/banner.html +30 -32
- data/assets/data/cookieconsent.html +249 -0
- data/assets/data/fam.html +1 -1
- data/assets/data/footer.html +1 -1
- data/assets/data/gallery_customizer.html +10 -5
- data/assets/data/menu.html +3 -3
- data/assets/data/mmenu.html +4 -3
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/panel.html +20 -16
- data/assets/data/quicklinks.html +20 -18
- data/assets/data/themes.json +6 -6
- data/assets/themes/j1/adapter/js/{cookiebar.js → cookieConsent.js} +129 -55
- data/assets/themes/j1/adapter/js/j1.js +147 -145
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +3 -2
- data/assets/themes/j1/adapter/js/mmenu.js +8 -4
- data/assets/themes/j1/adapter/js/navigator.js +77 -22
- data/assets/themes/j1/adapter/js/themer.js +37 -29
- data/assets/themes/j1/adapter/js/toccer.js +4 -45
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +17 -14
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +3960 -240
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +3 -9
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +3 -9
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/cookieConsent/LICENSE +21 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +286 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +28 -0
- data/assets/themes/j1/modules/fam/css/{uno → theme/uno}/fam.css +0 -0
- data/assets/themes/j1/modules/fam/css/theme/uno/fam.min.css +15 -0
- data/assets/themes/j1/modules/fam/js/fam.js +1 -6
- data/assets/themes/j1/modules/iframeResizer/examples/frame.absolute.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.content.html +4 -3
- data/assets/themes/j1/modules/iframeResizer/examples/frame.hover.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.nested.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.textarea.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.tolerance.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/index.html +2 -0
- data/assets/themes/j1/modules/iframeResizer/examples/two.html +4 -2
- data/assets/themes/j1/modules/mmenuLight/css/{mmenu.css → mmenu-light.css} +0 -0
- data/assets/themes/j1/modules/mmenuLight/css/{mmenu.min.css → mmenu-light.min.css} +0 -0
- data/assets/themes/j1/modules/mmenuLight/css/theme/{uno.css → uno/mmenu.css} +0 -0
- data/assets/themes/j1/modules/mmenuLight/css/theme/{uno.min.css → uno/mmenu.min.css} +0 -0
- data/assets/themes/j1/modules/rtable/css/theme/{uno.css → uno/rtable.css} +0 -0
- data/assets/themes/j1/modules/rtable/css/theme/{uno.min.css → uno/rtable.min.css} +0 -0
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +33 -47
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +410 -2
- data/assets/themes/j1/modules/util/js/domready.js +146 -0
- data/assets/themes/j1/modules/util/js/gtag-opt-in.js +1 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +2 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +8 -7
- data/lib/starter_web/_data/_defaults/resources.yml +11 -8
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -0
- data/lib/starter_web/_data/blocks/banner.yml +30 -24
- data/lib/starter_web/_data/blocks/panel.yml +9 -7
- data/lib/starter_web/_data/builder/blog_navigator.yml +6 -1
- data/lib/starter_web/_data/j1_config.yml +22 -19
- data/lib/starter_web/_data/layouts/blog_archive.yml +9 -0
- data/lib/starter_web/_data/layouts/default.yml +17 -27
- data/lib/starter_web/_data/layouts/home.yml +6 -5
- data/lib/starter_web/_data/layouts/page.yml +1 -1
- data/lib/starter_web/_data/modules/{cookiebar.yml → cookieconsent.yml} +4 -4
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +135 -0
- data/lib/starter_web/_data/modules/defaults/navigator.yml +5 -2
- data/lib/starter_web/_data/modules/defaults/themer.yml +2 -1
- data/lib/starter_web/_data/modules/navigator.yml +24 -21
- data/lib/starter_web/_data/modules/navigator_menu.yml +1 -1
- data/lib/starter_web/_data/pages/builder.yml +7 -7
- data/lib/starter_web/_data/private.default.yml +119 -0
- data/lib/starter_web/_data/private.yml +6 -6
- data/lib/starter_web/_data/resources.yml +19 -15
- data/lib/starter_web/_includes/attributes.asciidoc +10 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/{cookies-1920x1200-bw.jpg → cookies-1920x1200.jpg} +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +3 -9
- data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +4 -4
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -7
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +2 -7
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +3 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +3 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +3 -0
- data/lib/starter_web/dot.gitignore +1 -1
- data/lib/starter_web/index.html +3 -3
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +43 -23
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +51 -27
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +48 -26
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +44 -12
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
- data/lib/starter_web/pages/public/cookieConsent.adoc +93 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +244 -0
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +2 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -16
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +104 -209
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +6 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +25 -14
- data/assets/data/cookiebar.html +0 -285
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +0 -132
@@ -2,10 +2,10 @@
|
|
2
2
|
title: Cookies
|
3
3
|
tagline: good to know
|
4
4
|
|
5
|
-
categories: [ Featured ]
|
6
|
-
tags: [
|
5
|
+
categories: [ Featured, Post ]
|
6
|
+
tags: [ Cookies ]
|
7
7
|
|
8
|
-
image: /assets/images/modules/attics/cookies-1920x1200
|
8
|
+
image: /assets/images/modules/attics/cookies-1920x1200.jpg
|
9
9
|
|
10
10
|
regenerate: false
|
11
11
|
|
@@ -16,7 +16,7 @@ resource_options:
|
|
16
16
|
padding_bottom: 50
|
17
17
|
opacity: 0.5
|
18
18
|
slides:
|
19
|
-
- url: /assets/images/modules/attics/cookies-1920x1200
|
19
|
+
- url: /assets/images/modules/attics/cookies-1920x1200.jpg
|
20
20
|
alt: Photo by Miroslava on Unsplash
|
21
21
|
# caption:
|
22
22
|
# text: Photo by Miroslava on Unsplash
|
data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc
CHANGED
@@ -2,17 +2,11 @@
|
|
2
2
|
title: Site Generators
|
3
3
|
tagline: top open source tools
|
4
4
|
|
5
|
-
categories: [ Featured ]
|
5
|
+
categories: [ Featured, Post ]
|
6
6
|
tags: [ Jekyll, Generators ]
|
7
7
|
|
8
|
-
series: false
|
9
8
|
image: /assets/images/modules/attics/machine-generator-1920x1280.jpg
|
10
9
|
|
11
|
-
adsense: false
|
12
|
-
comments: false
|
13
|
-
advertising: false
|
14
|
-
toc: true
|
15
|
-
|
16
10
|
regenerate: false
|
17
11
|
|
18
12
|
resources: [ lightbox ]
|
@@ -2,17 +2,12 @@
|
|
2
2
|
title: J1 Template
|
3
3
|
tagline: first version is out
|
4
4
|
|
5
|
-
categories: [ Featured ]
|
6
|
-
tags: [
|
5
|
+
categories: [ Featured, Post ]
|
6
|
+
tags: [ J1, Template ]
|
7
7
|
|
8
|
-
series: false
|
9
8
|
image: /assets/images/modules/attics/runner-1920x1200.jpg
|
10
9
|
|
11
|
-
adsense: false
|
12
|
-
comments: false
|
13
|
-
advertising: false
|
14
10
|
fam_menu_id: default
|
15
|
-
toc: false
|
16
11
|
|
17
12
|
regenerate: false
|
18
13
|
|
data/lib/starter_web/index.html
CHANGED
@@ -17,8 +17,8 @@ tags: []
|
|
17
17
|
robots:
|
18
18
|
index: true
|
19
19
|
follow: true
|
20
|
-
|
21
|
-
analytics:
|
20
|
+
|
21
|
+
analytics: true
|
22
22
|
advertising: false
|
23
23
|
comments: false
|
24
24
|
|
@@ -26,7 +26,7 @@ fam_menu_id: default
|
|
26
26
|
scrollbar: false
|
27
27
|
toc: false
|
28
28
|
|
29
|
-
regenerate:
|
29
|
+
regenerate: true
|
30
30
|
|
31
31
|
resources: []
|
32
32
|
resource_options:
|
@@ -15,7 +15,7 @@ pagination:
|
|
15
15
|
enabled: false
|
16
16
|
permalink: /page:num/
|
17
17
|
|
18
|
-
regenerate:
|
18
|
+
regenerate: true
|
19
19
|
|
20
20
|
resources: []
|
21
21
|
resource_options:
|
@@ -43,6 +43,7 @@ resource_options:
|
|
43
43
|
-------------------------------------------------------------------------------- {% endcomment %}
|
44
44
|
{% assign view_config = site.data.builder.blog_navigator.archive_view %}
|
45
45
|
{% assign view_description = view_config.description %}
|
46
|
+
{% assign defaults = site.data.builder.blog_navigator.defaults %}
|
46
47
|
|
47
48
|
{% if site.permalink == 'none' %}
|
48
49
|
{% capture browser_page_url %}{{page.url}}.html{% endcapture %}
|
@@ -88,28 +89,46 @@ resource_options:
|
|
88
89
|
{% assign comment_count = sharing.comment_count %}
|
89
90
|
{% endfor %}
|
90
91
|
|
91
|
-
<article class="card raised-
|
92
|
+
<article class="card raised-z3 mb-5">
|
92
93
|
<h3 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h3>
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
{
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
{
|
105
|
-
|
106
|
-
|
107
|
-
|
94
|
+
<div class="row mx-0">
|
95
|
+
|
96
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Check if post image is available] -->
|
97
|
+
{% if post.image %}
|
98
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image is available] -->
|
99
|
+
<div class="col-md-6 img-bg--fill px-0"
|
100
|
+
style="background-image: url({{post.image}});">
|
101
|
+
</div>
|
102
|
+
{% else %}
|
103
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
|
104
|
+
<div class="col-md-6 img-bg--fill px-0"
|
105
|
+
style="background-image: url({{defaults.post_image}});">
|
106
|
+
</div>
|
107
|
+
{% endif %}
|
108
|
+
|
109
|
+
<div class="col-md-6">
|
110
|
+
<div class="card-body r-text-300">{{excerpt}}</div>
|
111
|
+
<div class="card-footer r-text-200">
|
112
|
+
<div class="card-footer-text">
|
113
|
+
<hr class="my-3">
|
114
|
+
{% if post.date %}
|
115
|
+
<i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
|
116
|
+
{% endif %}
|
117
|
+
{% if likes_count %}
|
118
|
+
<span class="font-weight-bold"> · </span>
|
119
|
+
<i class="mdi mdi-heart mdi-md-grey mr-1"></i> {{likes_count}}
|
120
|
+
{% endif %}
|
121
|
+
{% if comment_count %}
|
122
|
+
<span class="font-weight-bold"> · </span>
|
123
|
+
<i class="mdi mdi-comment mdi-md-grey mr-1"></i> {{comment_count}}
|
124
|
+
{% endif %}
|
125
|
+
</div>
|
126
|
+
<a class="card-link text-muted text-lowercase"
|
127
|
+
href="{{post.url}}#readmore">
|
128
|
+
Read · {{post.tagline}}
|
129
|
+
</a>
|
130
|
+
</div>
|
108
131
|
</div>
|
109
|
-
<a class="card-link md-grey-800 font-weight-bold g-font-size-12 text-uppercase"
|
110
|
-
href="{{post.url}}#readmore">
|
111
|
-
Read · {{post.tagline}}
|
112
|
-
</a>
|
113
132
|
</div>
|
114
133
|
</article>
|
115
134
|
{% endfor %}
|
@@ -126,10 +145,11 @@ resource_options:
|
|
126
145
|
var user_state = j1.readCookie(user_state_cookie_name);
|
127
146
|
var user_state_last_page = "{{browser_page_url}}";
|
128
147
|
user_state.last_page = user_state_last_page;
|
129
|
-
|
148
|
+
|
130
149
|
j1.writeCookie({
|
131
150
|
name: user_state_cookie_name,
|
132
|
-
data: user_state
|
151
|
+
data: user_state,
|
152
|
+
samesite: 'Strict'
|
133
153
|
});
|
134
154
|
logger.info('Saved current Post Browser page to cookie: {{browser_page_url}}');
|
135
155
|
}
|
@@ -15,7 +15,7 @@ pagination:
|
|
15
15
|
enabled: false
|
16
16
|
permalink: /page:num/
|
17
17
|
|
18
|
-
regenerate:
|
18
|
+
regenerate: true
|
19
19
|
|
20
20
|
resources: []
|
21
21
|
resource_options:
|
@@ -47,7 +47,9 @@ resource_options:
|
|
47
47
|
{% comment %} Variables
|
48
48
|
-------------------------------------------------------------------------------- {% endcomment %}
|
49
49
|
{% assign view_config = site.data.builder.blog_navigator.category_view %}
|
50
|
+
{% assign truncate_words = site.excerpt_truncate_words %}
|
50
51
|
{% assign view_description = view_config.description %}
|
52
|
+
{% assign defaults = site.data.builder.blog_navigator.defaults %}
|
51
53
|
|
52
54
|
{% if site.permalink == 'none' %}
|
53
55
|
{% capture browser_page_url %}{{page.url}}.html{% endcapture %}
|
@@ -76,12 +78,16 @@ resource_options:
|
|
76
78
|
-------------------------------------------------------------------------------- {% endcomment %}
|
77
79
|
{% capture skip_words %} Posts Public {% endcapture %}
|
78
80
|
|
81
|
+
{% assign skip_categories = view_config.skip_categories | split: ", " | join: " " %}
|
82
|
+
|
83
|
+
{% comment %} skip_categories: {{skip_categories | debug}} {% endcomment %}
|
84
|
+
|
79
85
|
{% capture site_category_word_list %}{% for category in site.categories %}{{category|first|capitalize|lstrip|rstrip}}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
80
86
|
{% assign category_words = site_category_word_list|split:',' %}
|
81
87
|
{% assign categories = category_words|uniq %}
|
82
88
|
|
83
89
|
{% for category in categories %}
|
84
|
-
{% if
|
90
|
+
{% if skip_categories contains category %} {% continue %} {% endif %}
|
85
91
|
{% capture category_list %}{{category_list|append: category}}{% unless forloop.last %},{% endunless %}{% endcapture %}
|
86
92
|
{% endfor %}
|
87
93
|
|
@@ -117,7 +123,7 @@ resource_options:
|
|
117
123
|
{% include {{get_category_item}} category=category %}
|
118
124
|
{% include {{select_icon_size}} family=icon_family size=icon_size %}
|
119
125
|
{% assign icon_size = size %}
|
120
|
-
{% assign excerpt = post.excerpt|truncatewords:
|
126
|
+
{% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
|
121
127
|
|
122
128
|
<!-- Collect comment provider details -->
|
123
129
|
{% for sharing in builder_config.sharing_provider %}
|
@@ -126,29 +132,46 @@ resource_options:
|
|
126
132
|
{% assign comment_count = sharing.comment_count %}
|
127
133
|
{% endfor %}
|
128
134
|
|
129
|
-
<article class="card raised-
|
130
|
-
<
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
{
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
135
|
+
<article class="card raised-z3 mb-5">
|
136
|
+
<h4 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h4>
|
137
|
+
<div class="row mx-0">
|
138
|
+
|
139
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Check if post image is available] -->
|
140
|
+
{% if post.image %}
|
141
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image is available] -->
|
142
|
+
<div class="col-md-6 img-bg--fill px-0"
|
143
|
+
style="background-image: url({{post.image}});">
|
144
|
+
</div>
|
145
|
+
{% else %}
|
146
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
|
147
|
+
<div class="col-md-6 img-bg--fill px-0"
|
148
|
+
style="background-image: url({{defaults.post_image}});">
|
149
|
+
</div>
|
150
|
+
{% endif %}
|
151
|
+
|
152
|
+
<div class="col-md-6">
|
153
|
+
<div class="card-body r-text-300">{{excerpt}}</div>
|
154
|
+
<div class="card-footer r-text-200">
|
155
|
+
<div class="card-footer-text">
|
156
|
+
<hr class="my-3">
|
157
|
+
{% if post.date %}
|
158
|
+
<i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
|
159
|
+
{% endif %}
|
160
|
+
{% if likes_count %}
|
161
|
+
<span class="font-weight-bold"> · </span>
|
162
|
+
<i class="mdi mdi-heart mr-1"></i> {{likes_count}}
|
163
|
+
{% endif %}
|
164
|
+
{% if comment_count %}
|
165
|
+
<span class="font-weight-bold"> · </span>
|
166
|
+
<i class="mdi mdi-comment mr-1"></i> {{comment_count}}
|
167
|
+
{% endif %}
|
168
|
+
</div>
|
169
|
+
<a class="card-link text-muted text-lowercase"
|
170
|
+
href="{{post.url}}#readmore">
|
171
|
+
Read · {{post.tagline}}
|
172
|
+
</a>
|
173
|
+
</div>
|
147
174
|
</div>
|
148
|
-
<a class="card-link md-grey-800 font-weight-bold g-font-size-12 text-uppercase"
|
149
|
-
href="{{post.url}}#readmore">
|
150
|
-
Read · {{post.tagline}}
|
151
|
-
</a>
|
152
175
|
</div>
|
153
176
|
</article>
|
154
177
|
{% endif %}
|
@@ -167,10 +190,11 @@ resource_options:
|
|
167
190
|
var user_state = j1.readCookie(user_state_cookie_name);
|
168
191
|
var user_state_last_page = "{{browser_page_url}}";
|
169
192
|
user_state.last_page = user_state_last_page;
|
170
|
-
|
193
|
+
|
171
194
|
j1.writeCookie({
|
172
195
|
name: user_state_cookie_name,
|
173
|
-
data: user_state
|
196
|
+
data: user_state,
|
197
|
+
samesite: 'Strict'
|
174
198
|
});
|
175
199
|
logger.info('Saved current Post Browser page to cookie: {{browser_page_url}}');
|
176
200
|
}
|
@@ -15,7 +15,7 @@ pagination:
|
|
15
15
|
enabled: false
|
16
16
|
permalink: /page:num/
|
17
17
|
|
18
|
-
regenerate:
|
18
|
+
regenerate: true
|
19
19
|
|
20
20
|
resources: []
|
21
21
|
resource_options:
|
@@ -43,6 +43,7 @@ resource_options:
|
|
43
43
|
-------------------------------------------------------------------------------- {% endcomment %}
|
44
44
|
{% assign view_config = site.data.builder.blog_navigator.date_view %}
|
45
45
|
{% assign view_description = view_config.description %}
|
46
|
+
{% assign defaults = site.data.builder.blog_navigator.defaults %}
|
46
47
|
|
47
48
|
{% if site.permalink == 'none' %}
|
48
49
|
{% capture browser_page_url %}{{page.url}}.html{% endcapture %}
|
@@ -86,13 +87,15 @@ resource_options:
|
|
86
87
|
{% capture monthHead %}
|
87
88
|
{% if month != nmonth %}
|
88
89
|
{% if forloop.index != 1 %}{{closeList}}{%endif %}
|
89
|
-
<h3 id="{{100000|rand}}"
|
90
|
-
|
90
|
+
<h3 id="{{100000|rand}}" class="toc-link mt-5 mb-3">
|
91
|
+
{% comment %}
|
92
|
+
------------------------------------------------------------------------
|
91
93
|
{% if year != nyear %}
|
92
94
|
<a href="#" id="{{post.date|date:'%Y'}}">
|
93
95
|
{% else %}
|
94
96
|
<a href="#" id="{{post.date|date:'%Y-%m' }}">
|
95
97
|
{% endif %}
|
98
|
+
------------------------------------------------------------------------ {% endcomment %}
|
96
99
|
<i class="mdi mdi-calendar-blank"></i>
|
97
100
|
{{post.date|date:'%B %Y'}}
|
98
101
|
</a>
|
@@ -111,28 +114,46 @@ resource_options:
|
|
111
114
|
{% capture link %}
|
112
115
|
{% assign excerpt = post.excerpt|truncatewords:50|replace:'...',' ...'|strip_html|strip_newlines|strip %}
|
113
116
|
<li>
|
114
|
-
<article class="card raised-
|
115
|
-
<
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
{
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
{
|
128
|
-
|
129
|
-
|
130
|
-
|
117
|
+
<article class="card raised-z3 mb-5">
|
118
|
+
<h4 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h4>
|
119
|
+
<div class="row mx-0">
|
120
|
+
|
121
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Check if post image is available] -->
|
122
|
+
{% if post.image %}
|
123
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image is available] -->
|
124
|
+
<div class="col-md-6 img-bg--fill px-0"
|
125
|
+
style="background-image: url({{post.image}});">
|
126
|
+
</div>
|
127
|
+
{% else %}
|
128
|
+
<!-- [INFO ] [j1.pages.blog.navigator.archive ] [Post image missing, using configured default image] -->
|
129
|
+
<div class="col-md-6 img-bg--fill px-0"
|
130
|
+
style="background-image: url({{defaults.post_image}});">
|
131
|
+
</div>
|
132
|
+
{% endif %}
|
133
|
+
|
134
|
+
<div class="col-md-6">
|
135
|
+
<div class="card-body r-text-300">{{excerpt}}</div>
|
136
|
+
<div class="card-footer r-text-200">
|
137
|
+
<div class="card-footer-text">
|
138
|
+
<hr class="my-3">
|
139
|
+
{% if post.date %}
|
140
|
+
<i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
|
141
|
+
{% endif %}
|
142
|
+
{% if likes_count %}
|
143
|
+
<span class="font-weight-bold"> · </span>
|
144
|
+
<i class="mdi mdi-heart mr-1"></i> {{likes_count}}
|
145
|
+
{% endif %}
|
146
|
+
{% if comment_count %}
|
147
|
+
<span class="font-weight-bold"> · </span>
|
148
|
+
<i class="mdi mdi-comment mr-1"></i> {{comment_count}}
|
149
|
+
{% endif %}
|
150
|
+
</div>
|
151
|
+
<a class="card-link text-muted text-lowercase"
|
152
|
+
href="{{post.url}}#readmore">
|
153
|
+
Read · {{post.tagline}}
|
154
|
+
</a>
|
155
|
+
</div>
|
131
156
|
</div>
|
132
|
-
<a class="card-link md-grey-800 font-weight-bold g-font-size-12 text-uppercase"
|
133
|
-
href="{{post.url}}#readmore">
|
134
|
-
Read · {{post.tagline}}
|
135
|
-
</a>
|
136
157
|
</div>
|
137
158
|
</article>
|
138
159
|
</li>
|
@@ -156,10 +177,11 @@ resource_options:
|
|
156
177
|
var user_state = j1.readCookie(user_state_cookie_name);
|
157
178
|
var user_state_last_page = "{{browser_page_url}}";
|
158
179
|
user_state.last_page = user_state_last_page;
|
159
|
-
|
180
|
+
|
160
181
|
j1.writeCookie({
|
161
182
|
name: user_state_cookie_name,
|
162
|
-
data: user_state
|
183
|
+
data: user_state,
|
184
|
+
samesite: 'Strict'
|
163
185
|
});
|
164
186
|
logger.info('Saved current Post Browser page to cookie: {{browser_page_url}}');
|
165
187
|
}
|