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.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_metadata_generator.html +23 -9
  3. data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
  4. data/_includes/themes/j1/modules/connectors/ads +3 -5
  5. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +9 -5
  6. data/_includes/themes/j1/modules/connectors/analytics +4 -2
  7. data/_includes/themes/j1/modules/connectors/comments +7 -6
  8. data/_includes/themes/j1/modules/connectors/translator +3 -4
  9. data/_includes/themes/j1/modules/navigator/generator.html +4 -40
  10. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +2 -2
  11. data/_includes/themes/j1/procedures/global/create_bs_button.proc +64 -22
  12. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +14 -10
  13. data/_layouts/default.html +4 -7
  14. data/assets/data/authclient.html +231 -229
  15. data/assets/data/banner.html +30 -32
  16. data/assets/data/cookieconsent.html +249 -0
  17. data/assets/data/fam.html +1 -1
  18. data/assets/data/footer.html +1 -1
  19. data/assets/data/gallery_customizer.html +10 -5
  20. data/assets/data/menu.html +3 -3
  21. data/assets/data/mmenu.html +4 -3
  22. data/assets/data/mmenu_sidebar.html +1 -1
  23. data/assets/data/mmenu_toc.html +1 -1
  24. data/assets/data/panel.html +20 -16
  25. data/assets/data/quicklinks.html +20 -18
  26. data/assets/data/themes.json +6 -6
  27. data/assets/themes/j1/adapter/js/{cookiebar.js → cookieConsent.js} +129 -55
  28. data/assets/themes/j1/adapter/js/j1.js +147 -145
  29. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +3 -2
  30. data/assets/themes/j1/adapter/js/mmenu.js +8 -4
  31. data/assets/themes/j1/adapter/js/navigator.js +77 -22
  32. data/assets/themes/j1/adapter/js/themer.js +37 -29
  33. data/assets/themes/j1/adapter/js/toccer.js +4 -45
  34. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +17 -14
  35. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
  36. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +3960 -240
  37. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
  38. data/assets/themes/j1/core/js/template.js +3 -9
  39. data/assets/themes/j1/core/js/template.js.map +1 -1
  40. data/assets/themes/j1/core/js/template.min.js +3 -9
  41. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  42. data/assets/themes/j1/modules/cookieConsent/LICENSE +21 -0
  43. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +286 -0
  44. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +28 -0
  45. data/assets/themes/j1/modules/fam/css/{uno → theme/uno}/fam.css +0 -0
  46. data/assets/themes/j1/modules/fam/css/theme/uno/fam.min.css +15 -0
  47. data/assets/themes/j1/modules/fam/js/fam.js +1 -6
  48. data/assets/themes/j1/modules/iframeResizer/examples/frame.absolute.html +4 -2
  49. data/assets/themes/j1/modules/iframeResizer/examples/frame.content.html +4 -3
  50. data/assets/themes/j1/modules/iframeResizer/examples/frame.hover.html +4 -2
  51. data/assets/themes/j1/modules/iframeResizer/examples/frame.nested.html +4 -2
  52. data/assets/themes/j1/modules/iframeResizer/examples/frame.textarea.html +4 -2
  53. data/assets/themes/j1/modules/iframeResizer/examples/frame.tolerance.html +4 -2
  54. data/assets/themes/j1/modules/iframeResizer/examples/index.html +2 -0
  55. data/assets/themes/j1/modules/iframeResizer/examples/two.html +4 -2
  56. data/assets/themes/j1/modules/mmenuLight/css/{mmenu.css → mmenu-light.css} +0 -0
  57. data/assets/themes/j1/modules/mmenuLight/css/{mmenu.min.css → mmenu-light.min.css} +0 -0
  58. data/assets/themes/j1/modules/mmenuLight/css/theme/{uno.css → uno/mmenu.css} +0 -0
  59. data/assets/themes/j1/modules/mmenuLight/css/theme/{uno.min.css → uno/mmenu.min.css} +0 -0
  60. data/assets/themes/j1/modules/rtable/css/theme/{uno.css → uno/rtable.css} +0 -0
  61. data/assets/themes/j1/modules/rtable/css/theme/{uno.min.css → uno/rtable.min.css} +0 -0
  62. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +33 -47
  63. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +410 -2
  64. data/assets/themes/j1/modules/util/js/domready.js +146 -0
  65. data/assets/themes/j1/modules/util/js/gtag-opt-in.js +1 -0
  66. data/lib/j1/version.rb +1 -1
  67. data/lib/j1_app/j1_auth_manager/auth_manager.rb +2 -3
  68. data/lib/starter_web/Gemfile +1 -1
  69. data/lib/starter_web/_config.yml +8 -7
  70. data/lib/starter_web/_data/_defaults/resources.yml +11 -8
  71. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -0
  72. data/lib/starter_web/_data/blocks/banner.yml +30 -24
  73. data/lib/starter_web/_data/blocks/panel.yml +9 -7
  74. data/lib/starter_web/_data/builder/blog_navigator.yml +6 -1
  75. data/lib/starter_web/_data/j1_config.yml +22 -19
  76. data/lib/starter_web/_data/layouts/blog_archive.yml +9 -0
  77. data/lib/starter_web/_data/layouts/default.yml +17 -27
  78. data/lib/starter_web/_data/layouts/home.yml +6 -5
  79. data/lib/starter_web/_data/layouts/page.yml +1 -1
  80. data/lib/starter_web/_data/modules/{cookiebar.yml → cookieconsent.yml} +4 -4
  81. data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -0
  82. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +135 -0
  83. data/lib/starter_web/_data/modules/defaults/navigator.yml +5 -2
  84. data/lib/starter_web/_data/modules/defaults/themer.yml +2 -1
  85. data/lib/starter_web/_data/modules/navigator.yml +24 -21
  86. data/lib/starter_web/_data/modules/navigator_menu.yml +1 -1
  87. data/lib/starter_web/_data/pages/builder.yml +7 -7
  88. data/lib/starter_web/_data/private.default.yml +119 -0
  89. data/lib/starter_web/_data/private.yml +6 -6
  90. data/lib/starter_web/_data/resources.yml +19 -15
  91. data/lib/starter_web/_includes/attributes.asciidoc +10 -1
  92. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  93. data/lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg +0 -0
  94. data/lib/starter_web/assets/images/modules/attics/{cookies-1920x1200-bw.jpg → cookies-1920x1200.jpg} +0 -0
  95. data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
  96. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +3 -9
  97. data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +4 -4
  98. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -7
  99. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +2 -7
  100. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -4
  101. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -4
  102. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -4
  103. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -4
  104. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +3 -0
  105. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +3 -0
  106. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +3 -0
  107. data/lib/starter_web/dot.gitignore +1 -1
  108. data/lib/starter_web/index.html +3 -3
  109. data/lib/starter_web/package.json +1 -1
  110. data/lib/starter_web/pages/public/blog/navigator/archive.html +43 -23
  111. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +51 -27
  112. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +48 -26
  113. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +44 -12
  114. data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
  115. data/lib/starter_web/pages/public/cookieConsent.adoc +93 -0
  116. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +244 -0
  117. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +2 -1
  118. data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -16
  119. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +104 -209
  120. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +6 -1
  121. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  122. data/lib/starter_web/utilsrv/package.json +1 -1
  123. metadata +25 -14
  124. data/assets/data/cookiebar.html +0 -285
  125. 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: [ About, Cookies ]
5
+ categories: [ Featured, Post ]
6
+ tags: [ Cookies ]
7
7
 
8
- image: /assets/images/modules/attics/cookies-1920x1200-bw.jpg
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-bw.jpg
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
@@ -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: [ About, J1 ]
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
 
@@ -6,10 +6,6 @@ categories: [ Series ]
6
6
  tags: [ Post, Test ]
7
7
 
8
8
  series: test-series
9
- adsense: false
10
- comments: false
11
- toc: true
12
- exclude_from_search: false
13
9
 
14
10
  regenerate: false
15
11
 
@@ -6,10 +6,6 @@ categories: [ Series ]
6
6
  tags: [ Post, Test ]
7
7
 
8
8
  series: test-series
9
- adsense: false
10
- comments: false
11
- toc: true
12
- exclude_from_search: false
13
9
 
14
10
  regenerate: false
15
11
 
@@ -6,10 +6,6 @@ categories: [ Series ]
6
6
  tags: [ Post, Test ]
7
7
 
8
8
  series: test-series
9
- adsense: false
10
- comments: false
11
- toc: true
12
- exclude_from_search: false
13
9
 
14
10
  regenerate: false
15
11
 
@@ -6,10 +6,6 @@ categories: [ Series ]
6
6
  tags: [ Post, Test ]
7
7
 
8
8
  series: test-series
9
- adsense: false
10
- comments: false
11
- toc: true
12
- exclude_from_search: false
13
9
 
14
10
  regenerate: false
15
11
 
@@ -5,6 +5,9 @@ tagline: largest city in the state of minnesota
5
5
  categories: [ Wikipedia ]
6
6
  tags: [ USA, Minnesota, City, Minneapolis ]
7
7
 
8
+ image: /assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg
9
+
10
+ sitemap: false
8
11
  regenerate: false
9
12
 
10
13
  resources: []
@@ -5,6 +5,9 @@ tagline: largest snake population
5
5
  categories: [ Wikipedia ]
6
6
  tags: [ Canada, Cities ]
7
7
 
8
+ image: /assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg
9
+
10
+ sitemap: false
8
11
  regenerate: false
9
12
 
10
13
  resources: []
@@ -5,6 +5,9 @@ tagline: largest river in the pacific northwest r
5
5
  categories: [ Wikipedia ]
6
6
  tags: [ USA, Rivers ]
7
7
 
8
+ image: /assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg
9
+
10
+ sitemap: false
8
11
  regenerate: false
9
12
 
10
13
  resources: []
@@ -14,7 +14,7 @@ Gemfile.lock
14
14
 
15
15
  Passengerfile.json
16
16
 
17
- google*.html
17
+ /google*.html
18
18
 
19
19
  tmp/
20
20
 
@@ -17,8 +17,8 @@ tags: []
17
17
  robots:
18
18
  index: true
19
19
  follow: true
20
-
21
- analytics: false
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: false
29
+ regenerate: true
30
30
 
31
31
  resources: []
32
32
  resource_options:
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1_starter",
4
- "version": "2021.1.1",
4
+ "version": "2021.1.6",
5
5
  "description": "J1 Template Starter Web",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -15,7 +15,7 @@ pagination:
15
15
  enabled: false
16
16
  permalink: /page:num/
17
17
 
18
- regenerate: false
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-z5 mb-5">
92
+ <article class="card raised-z3 mb-5">
92
93
  <h3 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h3>
93
- <!-- h5 class="notoc card-subtitle text-muted mb-2">{{post.tagline}}</h5 -->
94
- <div class="card-body r-text-300">{{excerpt}}</div>
95
- <div class="card-footer r-text-200">
96
- <div class="card-footer-text">
97
- {% if post.date %}
98
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
99
- {% endif %}
100
- {% if likes_count %}
101
- <span class="font-weight-bold"> · </span>
102
- <i class="mdi mdi-heart mr-1"></i> {{likes_count}}
103
- {% endif %}
104
- {% if comment_count %}
105
- <span class="font-weight-bold"> · </span>
106
- <i class="mdi mdi-comment mr-1"></i> {{comment_count}}
107
- {% endif %}
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
- // j1.setUserState( {last_page:user_state_last_page} );
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: false
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 skip_words contains category %} {% continue %} {% endif %}
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:50|replace:'...',' ...'|strip_html|strip_newlines|strip %}
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-z5 mb-5">
130
- <h3 id="{{100000|rand}}" class="card-header bg-primary notoc">{{post.title}}</h3>
131
- <!-- h5 class="notoc card-subtitle text-muted mb-2">{{post.tagline}}</h5 -->
132
- <div class="card-body r-text-300">{{excerpt}}</div>
133
-
134
- <div class="card-footer r-text-200">
135
- <div class="card-footer-text">
136
- {% if post.date %}
137
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
138
- {% endif %}
139
- {% if likes_count %}
140
- <span class="font-weight-bold"> · </span>
141
- <i class="mdi mdi-heart mr-1"></i> {{likes_count}}
142
- {% endif %}
143
- {% if comment_count %}
144
- <span class="font-weight-bold"> · </span>
145
- <i class="mdi mdi-comment mr-1"></i> {{comment_count}}
146
- {% endif %}
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
- // j1.setUserState( {last_page:user_state_last_page} );
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: false
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
- class="toc-link mt-5 mb-3">
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-z5 mb-5">
115
- <h3 id="{{100000|rand}}" class="card-header bg-primary notoc">{{post.title}}</h3>
116
- <!-- h5 class="notoc card-subtitle text-muted mb-2">{{post.tagline}}</h5 -->
117
- <div class="card-body r-text-300">{{excerpt}}</div>
118
- <div class="card-footer r-text-200">
119
- <div class="card-footer-text">
120
- {% if post.date %}
121
- <i class="mdi mdi-calendar-blank mr-1"></i> {{post.date | date: "%Y %B, %e"}}
122
- {% endif %}
123
- {% if likes_count %}
124
- <span class="font-weight-bold"> · </span>
125
- <i class="mdi mdi-heart mr-1"></i> {{likes_count}}
126
- {% endif %}
127
- {% if comment_count %}
128
- <span class="font-weight-bold"> · </span>
129
- <i class="mdi mdi-comment mr-1"></i> {{comment_count}}
130
- {% endif %}
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
- // j1.setUserState( {last_page:user_state_last_page} );
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
  }