j1-template 2021.1.8 → 2021.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_metadata_generator.html +4 -4
  3. data/_includes/themes/j1/modules/connectors/ads +18 -7
  4. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +6 -6
  5. data/_includes/themes/j1/modules/connectors/analytics +17 -3
  6. data/_includes/themes/j1/modules/connectors/comments +22 -8
  7. data/_includes/themes/j1/modules/connectors/translator +20 -6
  8. data/_includes/themes/j1/procedures/global/select_location.proc +3 -3
  9. data/assets/error_pages/HTTP204.html +33 -10
  10. data/assets/error_pages/HTTP400.html +32 -8
  11. data/assets/error_pages/HTTP401.html +32 -9
  12. data/assets/error_pages/HTTP403.html +32 -8
  13. data/assets/error_pages/HTTP404.html +32 -8
  14. data/assets/error_pages/HTTP500.html +32 -8
  15. data/assets/error_pages/HTTP501.html +32 -8
  16. data/assets/error_pages/HTTP502.html +32 -8
  17. data/assets/error_pages/HTTP503.html +33 -8
  18. data/assets/themes/j1/adapter/js/cookieConsent.js +64 -59
  19. data/assets/themes/j1/adapter/js/fam.js +2 -1
  20. data/assets/themes/j1/adapter/js/j1.js +315 -128
  21. data/assets/themes/j1/adapter/js/navigator.js +5 -2
  22. data/assets/themes/j1/adapter/js/themer.js +137 -90
  23. data/assets/themes/j1/core/js/template.js +24 -4
  24. data/assets/themes/j1/core/js/template.js.map +1 -1
  25. data/assets/themes/j1/core/js/template.min.js +24 -4
  26. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  27. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +36 -16
  28. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -3
  29. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -2
  30. data/lib/j1/version.rb +1 -1
  31. data/lib/starter_web/Gemfile +1 -1
  32. data/lib/starter_web/_config.yml +18 -10
  33. data/lib/starter_web/_data/_defaults/private.default.yml +119 -0
  34. data/lib/starter_web/_data/j1_config.yml +1 -1
  35. data/lib/starter_web/_data/modules/cookieconsent.yml +1 -0
  36. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +11 -9
  37. data/lib/starter_web/_data/resources.yml +0 -4
  38. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  39. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  40. data/lib/starter_web/dot.gitignore +1 -1
  41. data/lib/starter_web/index.html +3 -3
  42. data/lib/starter_web/package.json +2 -2
  43. data/lib/starter_web/pages/public/blog/navigator/archive.html +2 -1
  44. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -2
  45. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +20 -3
  46. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +9 -6
  47. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  48. data/lib/starter_web/utilsrv/package.json +1 -1
  49. metadata +3 -65
  50. data/assets/error_pages/HTTP520.html +0 -68
  51. data/assets/error_pages/HTTP521.html +0 -68
  52. data/assets/error_pages/HTTP533.html +0 -68
  53. data/assets/themes/j1/adapter/js/navigator.1.js +0 -896
  54. data/assets/themes/j1/adapter/js/navigator.2.js +0 -928
  55. data/assets/themes/j1/adapter/js/themer.1.js +0 -326
  56. data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.css +0 -58
  57. data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
  58. data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.css +0 -778
  59. data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.min.css +0 -5
  60. data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.css +0 -981
  61. data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.min.css +0 -5
  62. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.eot +0 -0
  63. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.svg +0 -47
  64. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.ttf +0 -0
  65. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.woff +0 -0
  66. data/assets/themes/j1/modules/_lightGallery/css/img/loading.gif +0 -0
  67. data/assets/themes/j1/modules/_lightGallery/css/img/video-play.png +0 -0
  68. data/assets/themes/j1/modules/_lightGallery/css/img/vimeo-play.png +0 -0
  69. data/assets/themes/j1/modules/_lightGallery/css/img/youtube-play.png +0 -0
  70. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/animation-w.png +0 -0
  71. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/customize-w.png +0 -0
  72. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/dynamic-w.png +0 -0
  73. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/facebook-icon.svg +0 -10
  74. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/googleplus-icon.svg +0 -30
  75. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/html5-w.png +0 -0
  76. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/linked-in.png +0 -0
  77. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/module-w.png +0 -0
  78. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/play-button.png +0 -0
  79. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/responsive-w.png +0 -0
  80. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/thumb-w.png +0 -0
  81. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/touch-w.png +0 -0
  82. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter-icon.svg +0 -15
  83. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter.png +0 -0
  84. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/video1-w.png +0 -0
  85. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom-w.png +0 -0
  86. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom.png +0 -0
  87. data/assets/themes/j1/modules/_lightGallery/css/themes/uno.css +0 -262
  88. data/assets/themes/j1/modules/_lightGallery/css/themes/uno.min.css +0 -15
  89. data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.js +0 -1362
  90. data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.min.js +0 -4
  91. data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.js +0 -402
  92. data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.min.js +0 -8
  93. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.js +0 -206
  94. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.min.js +0 -5
  95. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.js +0 -126
  96. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.min.js +0 -5
  97. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.js +0 -101
  98. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.min.js +0 -5
  99. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.js +0 -105
  100. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.min.js +0 -5
  101. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.js +0 -107
  102. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.min.js +0 -5
  103. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.js +0 -478
  104. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.min.js +0 -5
  105. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.js +0 -342
  106. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.min.js +0 -5
  107. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.js +0 -527
  108. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.min.js +0 -5
  109. data/assets/themes/j1/modules/util/js/js.cookie.js +0 -163
  110. data/assets/themes/j1/modules/util/js/lite-url.js +0 -203
  111. data/assets/themes/j1/modules/util/js/lite-url.min.js +0 -7
  112. data/assets/themes/j1/modules/util/js/platform.js +0 -1260
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js
3
+ # ~/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js
4
4
  # Provides JS Core for J1 Module BS Cookie Consent
5
5
  #
6
6
  # Product/Info:
@@ -24,5 +24,4 @@
24
24
  # outside of J1 Template!
25
25
  # -----------------------------------------------------------------------------
26
26
  */
27
-
28
- "use strict";function BootstrapCookieConsent(c){var g;var e;var q;var r=log4javascript.getLogger("j1.core.bsCookieConsent");var p="bccs-modal";var l=this;var n=false;this.props={autoShowDialog:true,language:navigator.language,languages:["en","de"],contentURL:"./content",cookieName:"cookie-consent-settings",cookieStorageDays:365,postSelectionCallback:undefined,whitelisted:[],xhr_data_element:""};for(var d in c){this.props[d]=c[d]}this.language=this.props.language;if(this.language.indexOf("-")!==-1){this.language=this.language.split("-")[0]}if(!this.props.languages.includes(this.language)){this.language=this.props.languages[0]}var f={set:function(u,v,x){var w=window.btoa(v);var s="";if(x){var t=new Date();t.setTime(t.getTime()+(x*24*60*60*1000));s="; expires="+t.toUTCString()}document.cookie=u+"="+(w||"")+s+"; Path=/; SameSite=Strict;"},get:function(t){var w=t+"=";var s=document.cookie.split(";");for(var u=0;u<s.length;u++){var y=s[u];while(y.charAt(0)===" "){y=y.substring(1,y.length)}if(y.indexOf(w)===0){var x=y.substring(w.length,y.length);var v=window.atob(x);return v}}return undefined}};var k={documentReady:function(s){if(document.readyState!=="loading"){s()}else{document.addEventListener("DOMContentLoaded",s)}}};function j(s){k.documentReady(function(){l.modal=document.getElementById(p);if(!l.modal){l.modal=document.createElement("div");l.modal.id=p;l.modal.setAttribute("class","modal fade");l.modal.setAttribute("tabindex","-1");l.modal.setAttribute("role","dialog");l.modal.setAttribute("aria-labelledby",p);document.body.append(l.modal);l.$modal=$(l.modal);if(l.props.postSelectionCallback){l.$modal.on("hidden.bs.modal",function(){l.props.postSelectionCallback()})}var t=l.props.contentURL+"/index.html";$.get(t).done(function(u){l.modal.innerHTML=u;l.modal.innerHTML=$("#"+l.props.xhr_data_element).eq(0).html();$(l.modal).modal({backdrop:"static",keyboard:false});l.$buttonDoNotAgree=$("#bccs-buttonDoNotAgree");l.$buttonAgree=$("#bccs-buttonAgree");l.$buttonSave=$("#bccs-buttonSave");l.$buttonAgreeAll=$("#bccs-buttonAgreeAll");i();h();$("#bccs-options").on("hide.bs.collapse",function(){n=false;i()}).on("show.bs.collapse",function(){n=true;i()});l.$buttonDoNotAgree.click(function(){b()});l.$buttonAgree.click(function(){m()});l.$buttonSave.click(function(){$("#bccs-options").collapse("hide");o();h()});l.$buttonAgreeAll.click(function(){$("#bccs-options").collapse("hide");m();h()})}).fail(function(){r.error("You probably need to set `contentURL` in the props")})}else{l.$modal.modal("show")}}.bind(this))}function h(){var u=l.getSettings();if(u){for(var t in u){var s=l.$modal.find("#bccs-options .bccs-option[data-name='"+t+"'] input[type='checkbox']");s.prop("checked",u[t])}}}function i(){if(n){l.$buttonDoNotAgree.hide();l.$buttonAgree.hide();l.$buttonSave.show();l.$buttonAgreeAll.show()}else{l.$buttonDoNotAgree.show();l.$buttonAgree.show();l.$buttonSave.hide();l.$buttonAgreeAll.hide()}}function a(t){var s=l.$modal.find("#bccs-options .bccs-option");var v={};for(var w=0;w<s.length;w++){var y=s[w];var u=y.getAttribute("data-name");if(u==="necessary"){v[u]=true}else{if(t===undefined){var x=$(y).find("input[type='checkbox']");v[u]=x.prop("checked")}else{v[u]=!!t}}}return v}function m(){f.set(l.props.cookieName,JSON.stringify(a(true)),l.props.cookieStorageDays);l.$modal.modal("hide")}function b(){f.set(l.props.cookieName,JSON.stringify(a(false)),l.props.cookieStorageDays);r.warn("delete cookie: j1.user.consent");j1.deleteCookie("all");l.$modal.modal("hide");j1.goHome()}function o(){f.set(l.props.cookieName,JSON.stringify(a()),l.props.cookieStorageDays);l.$modal.modal("hide")}q=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(f.get(this.props.cookieName)===undefined&&this.props.autoShowDialog&&!q){j()}this.showDialog=function(){q=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(!q){j()}};this.getSettings=function(t){var s=f.get(l.props.cookieName);if(s){var u=JSON.parse(f.get(l.props.cookieName));if(t===undefined){return u}else{if(u){return u[t]}else{return false}}}else{return undefined}}};
27
+ "use strict";function BootstrapCookieConsent(c){var g;var e;var q;var r=log4javascript.getLogger("j1.core.bsCookieConsent");var p="bccs-modal";var l=this;var n=false;r.info("Initializing core module: started");r.info("state: started");this.props={autoShowDialog:true,language:navigator.language,languages:["en","de"],contentURL:"./content",cookieName:"cookie-consent-settings",cookieStorageDays:365,postSelectionCallback:undefined,whitelisted:[],xhr_data_element:""};for(var d in c){this.props[d]=c[d]}this.language=this.props.language;if(this.language.indexOf("-")!==-1){this.language=this.language.split("-")[0]}if(!this.props.languages.includes(this.language)){this.language=this.props.languages[0]}var f={set:function(u,v,x){var w=window.btoa(v);var s="";if(x){var t=new Date();t.setTime(t.getTime()+(x*24*60*60*1000));s="; expires="+t.toUTCString()}document.cookie=u+"="+(w||"")+s+"; Path=/; SameSite=Strict;"},get:function(t){var w=t+"=";var s=document.cookie.split(";");for(var u=0;u<s.length;u++){var y=s[u];while(y.charAt(0)===" "){y=y.substring(1,y.length)}if(y.indexOf(w)===0){var x=y.substring(w.length,y.length);var v=window.atob(x);return v}}return undefined}};var k={documentReady:function(s){if(document.readyState!=="loading"){s()}else{document.addEventListener("DOMContentLoaded",s)}}};function j(s){k.documentReady(function(){l.modal=document.getElementById(p);if(!l.modal){r.info("Load consent modal");l.modal=document.createElement("div");l.modal.id=p;l.modal.setAttribute("class","modal fade");l.modal.setAttribute("tabindex","-1");l.modal.setAttribute("role","dialog");l.modal.setAttribute("aria-labelledby",p);document.body.append(l.modal);l.$modal=$(l.modal);if(l.props.postSelectionCallback){l.$modal.on("hidden.bs.modal",function(){l.props.postSelectionCallback()})}var t=l.props.contentURL+"/index.html";$.get(t).done(function(u){r.info("Loading Consent modal: successfully");l.modal.innerHTML=u;l.modal.innerHTML=$("#"+l.props.xhr_data_element).eq(0).html();$(l.modal).modal({backdrop:"static",keyboard:false});l.$buttonDoNotAgree=$("#bccs-buttonDoNotAgree");l.$buttonAgree=$("#bccs-buttonAgree");l.$buttonSave=$("#bccs-buttonSave");l.$buttonAgreeAll=$("#bccs-buttonAgreeAll");r.info("Load/Initialze options from cookie");i();h();$("#bccs-options").on("hide.bs.collapse",function(){n=false;i()}).on("show.bs.collapse",function(){n=true;i()});r.info("Initialze event handler");l.$buttonDoNotAgree.click(function(){b()});l.$buttonAgree.click(function(){m()});l.$buttonSave.click(function(){$("#bccs-options").collapse("hide");o();h()});l.$buttonAgreeAll.click(function(){$("#bccs-options").collapse("hide");m();h()})}).fail(function(){r.error("Loading Consent modal: failed");r.info("Probably no `contentURL` set")})}else{l.$modal.modal("show")}}.bind(this))}function h(){var u=l.getSettings();if(u){for(var t in u){var s=l.$modal.find("#bccs-options .bccs-option[data-name='"+t+"'] input[type='checkbox']");s.prop("checked",u[t])}}}function i(){if(n){l.$buttonDoNotAgree.hide();l.$buttonAgree.hide();l.$buttonSave.show();l.$buttonAgreeAll.show()}else{l.$buttonDoNotAgree.show();l.$buttonAgree.show();l.$buttonSave.hide();l.$buttonAgreeAll.hide()}}function a(t){var s=l.$modal.find("#bccs-options .bccs-option");var v={};for(var w=0;w<s.length;w++){var y=s[w];var u=y.getAttribute("data-name");if(u==="necessary"){v[u]=true}else{if(t===undefined){var x=$(y).find("input[type='checkbox']");v[u]=x.prop("checked")}else{v[u]=!!t}}}return v}function m(){f.set(l.props.cookieName,JSON.stringify(a(true)),l.props.cookieStorageDays);l.$modal.modal("hide")}function b(){f.set(l.props.cookieName,JSON.stringify(a(false)),l.props.cookieStorageDays);r.warn("delete cookie: j1.user.consent");j1.deleteCookie("all");l.$modal.modal("hide");j1.goHome()}function o(){f.set(l.props.cookieName,JSON.stringify(a()),l.props.cookieStorageDays);l.$modal.modal("hide")}q=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(f.get(this.props.cookieName)===undefined&&this.props.autoShowDialog&&!q){j()}r.info("Initializing core module finished");r.info("state: finished");this.showDialog=function(){q=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(!q){j()}};this.getSettings=function(t){var s=f.get(l.props.cookieName);if(s){var u=JSON.parse(f.get(l.props.cookieName));if(t===undefined){return u}else{if(u){return u[t]}else{return false}}}else{return undefined}}};
@@ -162,8 +162,7 @@
162
162
  data: j1_user_state
163
163
  });
164
164
 
165
- // force reload the page from the server (skip cache)
166
- // and detect selected theme from cookie
165
+ // reload current page (skip cache)
167
166
  location.reload(true);
168
167
  } else {
169
168
  logger.warn('write to cookie : disabled');
data/lib/j1/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module J1
2
- VERSION = '2021.1.8'
2
+ VERSION = '2021.1.12'
3
3
  end
@@ -54,7 +54,7 @@ gem 'jekyll', '~> 4.2'
54
54
 
55
55
  # Theme Rubies, default: J1 Template (NOT used for the development system)
56
56
  #
57
- gem 'j1-template', '~> 2021.1.8'
57
+ gem 'j1-template', '~> 2021.1.12'
58
58
 
59
59
  # ------------------------------------------------------------------------------
60
60
  # PRODUCTION: Gem needed for the Jekyll and J1 prod environment
@@ -53,7 +53,7 @@ environment: production
53
53
  # ------------------------------------------------------------------------------
54
54
  # Sets the build version of J1 Template Gem
55
55
  #
56
- version: 2021.1.8
56
+ version: 2021.1.12
57
57
 
58
58
  # version
59
59
  # ------------------------------------------------------------------------------
@@ -593,9 +593,9 @@ defaults:
593
593
  layout: page
594
594
  author: J1 Team
595
595
 
596
- # robots:
597
- # index: true
598
- # follow: true
596
+ robots:
597
+ index: false
598
+ follow: false
599
599
 
600
600
  analytics: false
601
601
  advertising: false
@@ -632,9 +632,9 @@ defaults:
632
632
  layout: post
633
633
  author: J1 Team
634
634
 
635
- # robots:
636
- # index: true
637
- # follow: true
635
+ robots:
636
+ index: false
637
+ follow: false
638
638
 
639
639
  analytics: false
640
640
  advertising: false
@@ -671,9 +671,9 @@ defaults:
671
671
  layout: post
672
672
  author: J1 Team
673
673
 
674
- # robots:
675
- # index: true
676
- # follow: true
674
+ robots:
675
+ index: false
676
+ follow: false
677
677
 
678
678
  analytics: false
679
679
  advertising: false
@@ -706,6 +706,10 @@ defaults:
706
706
  layout: post
707
707
  author: Wikipedia
708
708
 
709
+ robots:
710
+ index: false
711
+ follow: false
712
+
709
713
  analytics: false
710
714
  advertising: false
711
715
  comments: false
@@ -741,6 +745,10 @@ defaults:
741
745
  layout: page
742
746
  sitemap: false
743
747
 
748
+ robots:
749
+ index: false
750
+ follow: false
751
+
744
752
  # ==============================================================================
745
753
  # 6. LAYOUT configuration
746
754
  #
@@ -0,0 +1,119 @@
1
+ # ------------------------------------------------------------------------------
2
+ # ~/_data/private.yml
3
+ # The private.yml file is used to set sensitive private data used by
4
+ # J1 components to configure security and authentication settings
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2019 Juergen Adams
10
+ #
11
+ # J1 Template is licensed under the MIT License.
12
+ # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
13
+ # ------------------------------------------------------------------------------
14
+ # NOTE:
15
+ # As this file contains very confidential data, a productive private.yml
16
+ # file should ALWAYS be excluded from ANY source published to the public
17
+ # (e.g. a repo at Github)
18
+ # ------------------------------------------------------------------------------
19
+
20
+
21
+ # ==============================================================================
22
+ # GLOBAL settings
23
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
+ global:
25
+
26
+ # used by J1 to encrypt cookies
27
+ session_secret: <your-secret-string>
28
+
29
+
30
+ # ==============================================================================
31
+ # MODULE settings
32
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
+ modules:
34
+
35
+ # J1 Webhook
36
+ # NOTE:
37
+ # ----------------------------------------------------------------------------
38
+ webhook:
39
+
40
+ comment:
41
+ name: <your-config-name>
42
+ user: <your-gh-user>
43
+ repo: <your-gh-repo>
44
+ server_url: <your-gh-webhook-url>
45
+
46
+ secret: <your-gh-secret> # secret used at GH Webhooks
47
+ payload_url: <your-payload-url> # payload url (e.g channel at smee.io)
48
+
49
+
50
+ # ==============================================================================
51
+ # # J1 Utility Server
52
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53
+ util_srv:
54
+
55
+ oauth:
56
+
57
+ # GH OAuth settings used for J1 Control Center (NetlifyCMS) for the
58
+ # external OAuth client (base_url)
59
+ # --------------------------------------------------------------------------
60
+ comment:
61
+ name: <your-config-name>
62
+ user: <your-gh-user>
63
+ user_url: <your-user-url>
64
+ strategy: members
65
+ members: all
66
+
67
+ site_url: http://localhost:41010
68
+ site_redirect_url: http://localhost:41010/auth/github/callback
69
+ client_scope: repo, user
70
+ client_id: <your-client-id>
71
+ client_secret: <your-client-secret>
72
+
73
+
74
+ # ==============================================================================
75
+ # MIDDLEWARE settings
76
+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77
+ middleware:
78
+
79
+ # OAuth settings (J1 Auth Client)
80
+ # ----------------------------------------------------------------------------
81
+ oauth:
82
+
83
+ # --------------------------------------------------------------------------
84
+ # DISQUS credentials
85
+ # ==========================================================================
86
+ disqus:
87
+
88
+ # J1 Auth client (mode APP, development system)
89
+ # ------------------------------------------------------------------------
90
+ comment:
91
+ name: <your-disqus-config-name>
92
+ user: <your-disqus-user>
93
+
94
+ client_url: http://localhost:41010
95
+ client_redirect_url: http://localhost:41010/auth/disqus/callback
96
+ client_id: <your-disqus-client-id>
97
+ client_secret: <your-disqus-client-secret>
98
+
99
+ # --------------------------------------------------------------------------
100
+ # GITHUB credentials
101
+ # ==========================================================================
102
+ github:
103
+
104
+ # J1 Auth client (mode APP, development system)
105
+ # ------------------------------------------------------------------------
106
+ comment:
107
+ name: <your-gh-config-name>
108
+ user: <your-gh-user>
109
+ org: <your-gh-org>
110
+ strategy: members
111
+ members: all
112
+
113
+ client_url: http://localhost:41010
114
+ client_redirect_url: http://localhost:41010/auth/github/callback
115
+ client_id: <your-gh-client-id>
116
+ client_secret: <your-gh-client-secret>
117
+
118
+ # ------------------------------------------------------------------------------
119
+ # END
@@ -162,7 +162,7 @@ cookies:
162
162
  # NOTE: Used for developent mode ONLY
163
163
  # NOTE: See ~/packages/300_template_src/_layouts/default.html
164
164
  # ------------------------------------------------------------------------------
165
- flicker_timeout: 250
165
+ flicker_timeout: 150
166
166
 
167
167
  # ------------------------------------------------------------------------------
168
168
  # HTML PrettyPrint
@@ -27,6 +27,7 @@ settings:
27
27
 
28
28
  enabled: true
29
29
  show_cookie_icon: true
30
+ reloadPageOnChange: true
30
31
 
31
32
  # ------------------------------------------------------------------------------
32
33
  # END config
@@ -26,16 +26,18 @@ defaults:
26
26
 
27
27
  enabled: false
28
28
 
29
- autoShowDialog: true # disable autoShowModal on the privacy policy and legal notice pages, to make these pages readable
30
- language: en # the language, in which the modal is shown. Default navigator.language
31
- languages: [en, de] # supported languages, defaults to first language in array (en)
32
- contentURL: /assets/data/cookieconsent # this URL must contain the dialogs content in the needed languages
33
- cookieName: j1.user.consent # the name of the cookie in which the configuration is stored as JSON
34
- cookieStorageDays: 365 # the duration the cookie configuration is stored on the client
29
+ autoShowDialog: true # show consent dialog if NO consent cookie found
30
+ language: en # language of the modal is shown. Default: navigator.language
31
+ languages: [en, de] # supported languages, defaults to FIRST language defined by languages
32
+ contentURL: /assets/data/cookieconsent # dialogs content for all languages
33
+ cookieName: j1.user.consent # name of the consent cookie
34
+ cookieStorageDays: 365 # duration the consent cookie is stored
35
+ postSelectionCallback: j1.adapter.cookieConsent.cbCookie # currently hardcoded
35
36
 
36
- reloadPageOnChange: false # reload current page if any user settings has been changed
37
- xhr_data_element: consent-data # container for the language-specific consent modal taken from /assets/data/cookieconsent.html
38
- whitelisted: [ "/pages/public/legal/en/privacy" ] # pages no consent issued
37
+ reloadPageOnChange: false # reload current page if user settings has been changed
38
+ sameSite: Strict # restrict consent cookie to first-party, do NOT send cookie to other domains
39
+ xhr_data_element: consent-data # container for the language-specific consent modal (taken from /assets/data/cookieconsent.html)
40
+ whitelisted: [ /pages/public/legal/en/privacy ] # pages NO consent issued, currently NOT supported
39
41
 
40
42
  consent_modal_title:
41
43
  de: Ihre Privatsphäre
@@ -362,10 +362,6 @@ resources:
362
362
 
363
363
  ]
364
364
  files: [
365
- modules/util/js/js.cookie.js,
366
- modules/util/js/lite-url.js,
367
- modules/util/js/platform.js,
368
- modules/util/js/domready.js,
369
365
  modules/util/js/gtag-opt-in.js,
370
366
  adapter/js/j1.js
371
367
  ]
@@ -412,7 +412,7 @@ end::tables[]
412
412
  // -----------------------------------------------------------------------------
413
413
  tag::products[]
414
414
  :j1--license: MIT License
415
- :j1--version: 2021.1.8
415
+ :j1--version: 2021.1.12
416
416
  :j1--site-name: Jekyll One
417
417
  end::products[]
418
418
 
@@ -360,6 +360,6 @@ end
360
360
 
361
361
  module Jekyll
362
362
  module J1LunrSearch
363
- VERSION = '2021.1.8'
363
+ VERSION = '2021.1.12'
364
364
  end
365
365
  end
@@ -42,7 +42,7 @@ tmp/
42
42
  # Never publish your sensitive personal and/or OAuth
43
43
  # data to any repo - not to public, not to any private.
44
44
  # ------------------------------------------------------------------------------
45
- private.yml
45
+ # private.yml
46
46
 
47
47
 
48
48
  # Unneeded files for the generated site
@@ -18,9 +18,9 @@ robots:
18
18
  index: true
19
19
  follow: true
20
20
 
21
- analytics: true
22
- advertising: false
23
- comments: false
21
+ # analytics: false
22
+ # advertising: false
23
+ # comments: false
24
24
 
25
25
  fam_menu_id: default
26
26
  scrollbar: false
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1_starter",
4
- "version": "2021.1.8",
4
+ "version": "2021.1.12",
5
5
  "description": "J1 Template Starter Web",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -91,7 +91,7 @@
91
91
  "rebuild:do": "cross-env SINATRA_ACTIVESUPPORT_WARNING=false bundle exec jekyll b --incremental",
92
92
  "post-rebuild": "run-s -s postrebuild:*",
93
93
  "post-rebuild:finished": "echo .. rebuild finished.",
94
- "post-rebuild:hint": "echo To open the site, run: yarn site.",
94
+ "post-rebuild:hint": "echo To open the site, run: yarn site",
95
95
 
96
96
  "clean": "run-s -s clean-site && run-s clean:*",
97
97
  "clean-site": "echo Clean up site files .. && bundle exec jekyll clean",
@@ -42,6 +42,7 @@ resource_options:
42
42
  {% comment %} Variables
43
43
  -------------------------------------------------------------------------------- {% endcomment %}
44
44
  {% assign view_config = site.data.builder.blog_navigator.archive_view %}
45
+ {% assign truncate_words = site.excerpt_truncate_words %}
45
46
  {% assign view_description = view_config.description %}
46
47
  {% assign defaults = site.data.builder.blog_navigator.defaults %}
47
48
 
@@ -80,7 +81,7 @@ resource_options:
80
81
 
81
82
  <!-- ul class="list-unstyled link-news" -->
82
83
  {% for post in site.posts %}
83
- {% assign excerpt = post.excerpt|truncatewords:50|replace:'...',' ...'|strip_html|strip_newlines|strip %}
84
+ {% assign excerpt = post.excerpt|truncatewords:truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
84
85
 
85
86
  <!-- Collect comment provider details -->
86
87
  {% for sharing in builder_config.sharing_provider %}
@@ -41,7 +41,8 @@ resource_options:
41
41
 
42
42
  {% comment %} Variables
43
43
  -------------------------------------------------------------------------------- {% endcomment %}
44
- {% assign view_config = site.data.builder.blog_navigator.date_view %}
44
+ {% assign view_config = site.data.builder.blog_navigator.category_view %}
45
+ {% assign truncate_words = site.excerpt_truncate_words %}
45
46
  {% assign view_description = view_config.description %}
46
47
  {% assign defaults = site.data.builder.blog_navigator.defaults %}
47
48
 
@@ -112,7 +113,7 @@ resource_options:
112
113
  {% endfor %}
113
114
 
114
115
  {% capture link %}
115
- {% assign excerpt = post.excerpt|truncatewords:50|replace:'...',' ...'|strip_html|strip_newlines|strip %}
116
+ {% assign excerpt = post.excerpt|truncatewords:truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
116
117
  <li>
117
118
  <article class="card raised-z3 mb-5">
118
119
  <h4 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h4>
@@ -38,8 +38,9 @@ resource_options:
38
38
 
39
39
  {% comment %} Variables
40
40
  -------------------------------------------------------------------------------- {% endcomment %}
41
- {% assign view_config = site.data.builder.blog_navigator.tag_view %}
42
- {% assign view_description = view_config.description %}
41
+ {% assign view_config = site.data.builder.blog_navigator.category_view %}
42
+ {% assign truncate_words = site.excerpt_truncate_words %}
43
+ {% assign view_description = view_config.description %}
43
44
  {% assign defaults = site.data.builder.blog_navigator.defaults %}
44
45
 
45
46
  {% if site.permalink == 'none' %}
@@ -152,8 +153,24 @@ resource_options:
152
153
  {% include {{select_icon_size}} family=icon_family size=icon_size %}
153
154
  {% assign icon_size = size %}
154
155
 
155
- {% assign excerpt = post.excerpt|truncatewords:50|replace:'...',' ...'|strip_html|strip_newlines|strip %}
156
+ {% assign excerpt = post.excerpt|truncatewords:truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
156
157
 
158
+ <!-- place post -->
159
+ <!--div class="card card-flat mb-4">
160
+ <div class="card-body">
161
+
162
+ <h5 id="{{ 100000 | rand }}" class="card-title">{{ post.title }}</h5>
163
+ <h6 class="notoc card-subtitle text-muted mb-2">{{ post.tagline }}</h6>
164
+ <div class="card-text"><p>{{ excerpt }}</p></div>
165
+ </div>
166
+ <div class="card-footer">
167
+ <a class="btn btn-primary btn-raised btn-flex" href="{{post.url}}#readmore">
168
+ <i class="fa fa-eye fa-lg" style="color:#FFFFFF;"></i>
169
+ Read more
170
+ </a>
171
+ </div>
172
+ </div -->
173
+
157
174
  <!-- place post -->
158
175
  <article class="card raised-z3 mb-5">
159
176
  <h3 id="{{100000|rand}}" class="card-header bg-primary">{{post.title}}</h3>
@@ -45,7 +45,7 @@ resource_options:
45
45
  //
46
46
  :cookies: true
47
47
  :cookie-consent: true
48
- :logs-files: true
48
+ :logs-files: false
49
49
  :google-analytics: true
50
50
  :facebook: false
51
51
  :twitter: false
@@ -196,12 +196,15 @@ with any other data held by Google.
196
196
 
197
197
  You may object to the use of cookies by selecting the appropriate settings
198
198
  on your browser, however please note that if you do this you may not be able
199
- to use the full functionality of this website. You can also avoid the
200
- recording of data referring to your use of the website generated by cookies
201
- (including your IP address) by Google as well as the processing of your
202
- data by Google by downloading and installing the browser plug-in available
203
- from the following
199
+ to use the full functionality of this website.
200
+
201
+ /////
202
+ You can also avoid the recording of data referring to your use of the website
203
+ generated by cookies (including your IP address) by Google as well as the
204
+ processing of your data by Google by downloading and installing the browser
205
+ plug-in available from the following:
204
206
  link:{url-google--deactivate-ga-en}[Browser-Add-on Google Analytics, {browser-window--new}]
207
+ /////
205
208
 
206
209
  endif::[]
207
210