j1-template 2020.0.3 → 2020.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +21 -17
  3. data/_includes/themes/j1/layouts/content_generator_collection.html +14 -11
  4. data/_includes/themes/j1/layouts/content_generator_page.html +15 -16
  5. data/_includes/themes/j1/layouts/content_generator_post.html +17 -22
  6. data/_includes/themes/j1/modules/navigator/generator.html +31 -25
  7. data/assets/data/{sidebar.html → mmenu_sidebar.html} +24 -18
  8. data/assets/data/mmenu_toc.html +45 -0
  9. data/assets/data/quicklinks.html +12 -4
  10. data/assets/error_pages/HTTP204.html +3 -3
  11. data/assets/themes/j1/core/css/theme_extensions.css +2 -2
  12. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  13. data/assets/themes/j1/core/css/uno.css +2 -2
  14. data/assets/themes/j1/core/css/uno.min.css +1 -1
  15. data/assets/themes/j1/core/js/template.js +2 -2
  16. data/assets/themes/j1/core/js/template.js.map +1 -1
  17. data/assets/themes/j1/core/js/template.min.js +1 -1
  18. data/lib/j1/version.rb +1 -1
  19. data/lib/starter_web/Gemfile +1 -1
  20. data/lib/starter_web/_config.yml +12 -139
  21. data/lib/starter_web/_data/modules/defaults/navigator.yml +2 -24
  22. data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
  23. data/lib/starter_web/_data/modules/navigator.yml +158 -97
  24. data/lib/starter_web/_data/modules/toccer.yml +2 -1
  25. data/lib/starter_web/_data/resources.yml +8 -2
  26. data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js +207 -44
  27. data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +8 -32
  28. data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +40 -36
  29. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +375 -1
  30. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +95 -0
  31. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +95 -0
  32. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +3 -1
  33. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +11 -3
  34. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +118 -0
  35. data/lib/starter_web/collections/posts/public/{jekyll → featured}/_posts/2018-05-01-confusion-about-base-url.adoc +0 -0
  36. data/lib/starter_web/package.json +1 -1
  37. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
  38. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
  39. data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
  40. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  41. data/lib/starter_web/utilsrv/package.json +1 -1
  42. metadata +8 -4
@@ -0,0 +1,95 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/extensions/mmenu-light/css/theme/uno.css
4
+ # Provides MobileMenu styles for J1 Theme Uno
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2020 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
+ # -----------------------------------------------------------------------------
15
+ */
16
+
17
+ /*
18
+ jadams, 2020-06-20: CSS/Offset to the NAV bar should be calculated
19
+ at runtime as a dyn style
20
+ */
21
+
22
+ /* CSS overwrites
23
+ ----------------------------------------------------------------------------- */
24
+
25
+ /* Drawer */
26
+ .mm-ocd {
27
+ top: 80px; /* jadams, 2020-06-20: offset to the NAV bar */
28
+ }
29
+
30
+ .mm-ocd--left .mm-ocd__content {
31
+ background-color: #212121;
32
+ }
33
+
34
+ .mm-ocd--right .mm-ocd__content {
35
+ background-color: #212121;
36
+ }
37
+
38
+ /* Navigator */
39
+ .mm-spn.mm-spn--navbar:after {
40
+ text-align: left; /* jadams, 2020-06-20: set menu title to the left */
41
+ font-size: x-large; /* jadams, 2020-06-20: increase size of the menu title */
42
+ }
43
+
44
+ /* Themes */
45
+ /* jadams, 2020-06-20: set j1 template colors (dark theme) */
46
+ .mm-spn.mm-spn--dark {
47
+ color: #e3e3e3;
48
+ background: #191919
49
+ }
50
+
51
+ /* Sidebar
52
+ ----------------------------------------------------------------------------- */
53
+ .mm-side {
54
+ margin: 1.5rem;
55
+ }
56
+
57
+ .mm-side .widget {
58
+ position: relative;
59
+ z-index: 1;
60
+ margin-bottom: 25px
61
+ }
62
+
63
+ .mm-side .widget .title {
64
+ color: #fff;
65
+ margin-bottom: 15px;
66
+ border-left: 3px solid #204a87;
67
+ padding-left: 5px
68
+ }
69
+
70
+ .mm-side .widget .heading {
71
+ text-align: left;
72
+ color: #eee;
73
+ font-size: 18px;
74
+ text-transform: uppercase;
75
+ position: relative;
76
+ margin-bottom: 10px;
77
+ padding-bottom: 10px
78
+ }
79
+
80
+ .mm-side .widget ul.link {
81
+ font-family: Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;
82
+ font-size: 14px;
83
+ padding: 0;
84
+ margin: 0;
85
+ list-style: none
86
+ }
87
+
88
+ .mm-side .widget ul.link li a {
89
+ color: #aaa
90
+ }
91
+
92
+ .mm-side .widget ul.link li a:focus,.mm-side .widget ul.link li a:hover {
93
+ color: #fafafa;
94
+ text-decoration: none
95
+ }
@@ -0,0 +1,95 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/themes/j1/extensions/mmenu-light/css/theme/uno.css
4
+ # Provides MobileMenu styles for J1 Theme Uno
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2020 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
+ # -----------------------------------------------------------------------------
15
+ */
16
+
17
+ /*
18
+ jadams, 2020-06-20: CSS/Offset to the NAV bar should be calculated
19
+ at runtime as a dyn style
20
+ */
21
+
22
+ /* CSS overwrites
23
+ ----------------------------------------------------------------------------- */
24
+
25
+ /* Drawer */
26
+ .mm-ocd {
27
+ top: 80px; /* jadams, 2020-06-20: offset to the NAV bar */
28
+ }
29
+
30
+ .mm-ocd--left .mm-ocd__content {
31
+ background-color: #212121;
32
+ }
33
+
34
+ .mm-ocd--right .mm-ocd__content {
35
+ background-color: #212121;
36
+ }
37
+
38
+ /* Navigator */
39
+ .mm-spn.mm-spn--navbar:after {
40
+ text-align: left; /* jadams, 2020-06-20: set menu title to the left */
41
+ font-size: x-large; /* jadams, 2020-06-20: increase size of the menu title */
42
+ }
43
+
44
+ /* Themes */
45
+ /* jadams, 2020-06-20: set j1 template colors (dark theme) */
46
+ .mm-spn.mm-spn--dark {
47
+ color: #e3e3e3;
48
+ background: #191919
49
+ }
50
+
51
+ /* Sidebar
52
+ ----------------------------------------------------------------------------- */
53
+ .mm-side {
54
+ margin: 1.5rem;
55
+ }
56
+
57
+ .mm-side .widget {
58
+ position: relative;
59
+ z-index: 1;
60
+ margin-bottom: 25px
61
+ }
62
+
63
+ .mm-side .widget .title {
64
+ color: #fff;
65
+ margin-bottom: 15px;
66
+ border-left: 3px solid #204a87;
67
+ padding-left: 5px
68
+ }
69
+
70
+ .mm-side .widget .heading {
71
+ text-align: left;
72
+ color: #eee;
73
+ font-size: 18px;
74
+ text-transform: uppercase;
75
+ position: relative;
76
+ margin-bottom: 10px;
77
+ padding-bottom: 10px
78
+ }
79
+
80
+ .mm-side .widget ul.link {
81
+ font-family: Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;
82
+ font-size: 14px;
83
+ padding: 0;
84
+ margin: 0;
85
+ list-style: none
86
+ }
87
+
88
+ .mm-side .widget ul.link li a {
89
+ color: #aaa
90
+ }
91
+
92
+ .mm-side .widget ul.link li a:focus,.mm-side .widget ul.link li a:hover {
93
+ color: #fafafa;
94
+ text-decoration: none
95
+ }
@@ -139,7 +139,7 @@
139
139
  var n = this;
140
140
  // jadams, 2020-06-21: deactivate bubble up control by preventDefault
141
141
  // on so-called passive events to suppress error messages issues by
142
- // (Google) Chromium browsers. Google has changed the behavior of
142
+ // (Google) Chromium browsers. Google has changed the behavior of
143
143
  // passive event listeners only for window, document or body elements.
144
144
  //
145
145
  // See: https://developers.google.com/web/updates/2017/01/scrolling-intervention
@@ -148,6 +148,8 @@
148
148
  void 0 === t && (t = null), this.wrapper = document.createElement("div"), this.wrapper.classList.add("" + u), this.wrapper.classList.add(u + "--" + e), this.content = document.createElement("div"), this.content.classList.add(u + "__content"), this.wrapper.append(this.content), this.backdrop = document.createElement("div"), this.backdrop.classList.add(u + "__backdrop"), this.wrapper.append(this.backdrop), document.body.append(this.wrapper), t && this.content.append(t);
149
149
  var i = function (t) {
150
150
  // jadams, 2020-06-21: deactivate close drawer on mouse click event
151
+ // call back needed to find the openclose status to correct
152
+ // the toggle button
151
153
  // n.close();
152
154
  if (passiveSupported) { t.preventDefault() }
153
155
  t.stopImmediatePropagation()
@@ -137,12 +137,20 @@
137
137
  d = function () {
138
138
  function t(t, e) {
139
139
  var n = this;
140
+ // jadams, 2020-06-21: deactivate bubble up control by preventDefault
141
+ // on so-called passive events to suppress error messages issues by
142
+ // (Google) Chromium browsers. Google has changed the behavior of
143
+ // passive event listeners only for window, document or body elements.
144
+ //
145
+ // See: https://developers.google.com/web/updates/2017/01/scrolling-intervention
146
+ //
140
147
  var passiveSupported = false;
141
148
  void 0 === t && (t = null), this.wrapper = document.createElement("div"), this.wrapper.classList.add("" + u), this.wrapper.classList.add(u + "--" + e), this.content = document.createElement("div"), this.content.classList.add(u + "__content"), this.wrapper.append(this.content), this.backdrop = document.createElement("div"), this.backdrop.classList.add(u + "__backdrop"), this.wrapper.append(this.backdrop), document.body.append(this.wrapper), t && this.content.append(t);
142
149
  var i = function (t) {
143
- n.close();
150
+ // jadams, 2020-06-21: deactivate close drawer on mouse click event
151
+ // n.close();
144
152
  if (passiveSupported) { t.preventDefault() }
145
- t.stopImmediatePropagation();
153
+ t.stopImmediatePropagation()
146
154
  };
147
155
  this.backdrop.addEventListener("touchstart", i, {
148
156
  passive: !0
@@ -190,7 +198,7 @@
190
198
  var n = (t = t || {}).position,
191
199
  i = void 0 === n ? "left" : n;
192
200
  this.drawer = new d(null, i);
193
- var s = document.createComment("original menu location");
201
+ var s = document.createComment("original mmenu location");
194
202
  this.menu.after(s), this.toggler.add((function () {
195
203
  e.drawer.content.append(e.menu)
196
204
  }), (function () {
@@ -0,0 +1,118 @@
1
+ // Source: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
2
+ if (window.NodeList && !NodeList.prototype.forEach) {
3
+ NodeList.prototype.forEach = function(callback, thisArg) {
4
+ thisArg = thisArg || window;
5
+ for (var i = 0; i < this.length; i++) {
6
+ callback.call(thisArg, this[i], i, this);
7
+ }
8
+ };
9
+ }
10
+
11
+ // Source: https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
12
+ if (!Element.prototype.matches) {
13
+ Element.prototype.matches =
14
+ Element.prototype.matchesSelector ||
15
+ Element.prototype.mozMatchesSelector ||
16
+ Element.prototype.msMatchesSelector ||
17
+ Element.prototype.oMatchesSelector ||
18
+ Element.prototype.webkitMatchesSelector ||
19
+ function(s) {
20
+ var matches = (
21
+ this.document || this.ownerDocument
22
+ ).querySelectorAll(s),
23
+ i = matches.length;
24
+ while (--i >= 0 && matches.item(i) !== this) {}
25
+ return i > -1;
26
+ };
27
+ }
28
+
29
+ // Source: https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
30
+ if (!Element.prototype.matches) {
31
+ Element.prototype.matches =
32
+ Element.prototype.msMatchesSelector ||
33
+ Element.prototype.webkitMatchesSelector;
34
+ }
35
+
36
+ if (!Element.prototype.closest) {
37
+ Element.prototype.closest = function(s) {
38
+ var el = this;
39
+
40
+ do {
41
+ if (el.matches(s)) return el;
42
+ el = el.parentElement || el.parentNode;
43
+ } while (el !== null && el.nodeType === 1);
44
+ return null;
45
+ };
46
+ }
47
+
48
+ // from: https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/after()/after().md
49
+ (function(arr) {
50
+ arr.forEach(function(item) {
51
+ if (item.hasOwnProperty('after')) {
52
+ return;
53
+ }
54
+ Object.defineProperty(item, 'after', {
55
+ configurable: true,
56
+ enumerable: true,
57
+ writable: true,
58
+ value: function after() {
59
+ var argArr = Array.prototype.slice.call(arguments),
60
+ docFrag = document.createDocumentFragment();
61
+
62
+ argArr.forEach(function(argItem) {
63
+ var isNode = argItem instanceof Node;
64
+ docFrag.appendChild(
65
+ isNode
66
+ ? argItem
67
+ : document.createTextNode(String(argItem))
68
+ );
69
+ });
70
+
71
+ this.parentNode.insertBefore(docFrag, this.nextSibling);
72
+ }
73
+ });
74
+ });
75
+ })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
76
+
77
+ // Source: https://github.com/jserz/js_piece/blob/master/DOM/ParentNode/append()/append().md
78
+ (function(arr) {
79
+ arr.forEach(function(item) {
80
+ if (item.hasOwnProperty('append')) {
81
+ return;
82
+ }
83
+ Object.defineProperty(item, 'append', {
84
+ configurable: true,
85
+ enumerable: true,
86
+ writable: true,
87
+ value: function append() {
88
+ var argArr = Array.prototype.slice.call(arguments),
89
+ docFrag = document.createDocumentFragment();
90
+
91
+ argArr.forEach(function(argItem) {
92
+ var isNode = argItem instanceof Node;
93
+ docFrag.appendChild(
94
+ isNode
95
+ ? argItem
96
+ : document.createTextNode(String(argItem))
97
+ );
98
+ });
99
+
100
+ this.appendChild(docFrag);
101
+ }
102
+ });
103
+ });
104
+ })([Element.prototype, Document.prototype, DocumentFragment.prototype]);
105
+
106
+ // from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
107
+ (function() {
108
+ if (typeof window.Event === 'function') return false;
109
+
110
+ function Event(event, params) {
111
+ params = params || { bubbles: false, cancelable: false };
112
+ var evt = document.createEvent('Event');
113
+ evt.initEvent(event, params.bubbles, params.cancelable);
114
+ return evt;
115
+ }
116
+
117
+ window.Event = Event;
118
+ })();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1_starter",
4
- "version": "2020.0.3",
4
+ "version": "2020.0.4",
5
5
  "description": "J1 Template starter Web",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Roundtripppp
2
+ title: Roundtrip
3
3
  tagline: present images
4
4
  description: J1 Template Roundtrip - Present image based data
5
5
 
@@ -276,7 +276,7 @@ and high quality *justified* image galleries. J1 Template combines the gallery
276
276
  with the *lightboxes* supported to *enlage* the images of a gallery.
277
277
 
278
278
  See *Justified Gallery* in action - and for sure all what you see is even
279
- responsive. Change the size of your current browser window, by width or height,
279
+ responsive. Change the size of your current browser window, by width or height,
280
280
  to see what will happen!
281
281
 
282
282
  === Justified Gallery
@@ -63,8 +63,8 @@ include::{includedir}/attributes.asciidoc[tag=data]
63
63
  == Typography
64
64
 
65
65
  Typography serves as one the most crucial branding elements for any business.
66
- Typography matters for any media presenting text. Text will take on a important
67
- role of acting not only as plain text but will also serve as something like
66
+ Typography matters for any media presenting text. Text will take on a important
67
+ role of acting not only as plain text but will also serve as something like
68
68
  images.
69
69
 
70
70
  === Responsive Text
@@ -7,7 +7,7 @@ tags: [ Support ]
7
7
  index: []
8
8
  categories: [ pages ]
9
9
 
10
- permalink: /pages/public/legal/de/support/
10
+ permalink: /pages/public/legal/en/support/
11
11
  regenerate: false
12
12
 
13
13
  resources: []
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "utls",
4
- "version": "2020.0.3",
4
+ "version": "2020.0.4",
5
5
  "description": "J1 Template Utility Server",
6
6
  "homepage": "https://jekyll.one",
7
7
  "author": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "utls",
4
- "version": "2020.0.3",
4
+ "version": "2020.0.4",
5
5
  "description": "J1 Template Utility Server",
6
6
  "homepage": "https://jekyll.one",
7
7
  "author": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: j1-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 2020.0.3
4
+ version: 2020.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - juergen_jekyll_one
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-21 00:00:00.000000000 Z
11
+ date: 2020-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -368,10 +368,11 @@ files:
368
368
  - assets/data/menu.html
369
369
  - assets/data/messages.yml
370
370
  - assets/data/mmenu.html
371
+ - assets/data/mmenu_sidebar.html
372
+ - assets/data/mmenu_toc.html
371
373
  - assets/data/panel.html
372
374
  - assets/data/quicklinks.html
373
375
  - assets/data/search.yml
374
- - assets/data/sidebar.html
375
376
  - assets/data/themes.json
376
377
  - assets/data/twa_v1.json
377
378
  - assets/error_pages/HTTP204.html
@@ -1021,9 +1022,12 @@ files:
1021
1022
  - lib/starter_web/assets/themes/j1/extensions/log4javascript/log4javascript.min.js
1022
1023
  - lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css
1023
1024
  - lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css
1025
+ - lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css
1026
+ - lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css
1024
1027
  - lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js
1025
1028
  - lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js
1026
1029
  - lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js
1030
+ - lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js
1027
1031
  - lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.dark/theme.css
1028
1032
  - lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.light/theme.css
1029
1033
  - lib/starter_web/assets/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css
@@ -1079,9 +1083,9 @@ files:
1079
1083
  - lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb
1080
1084
  - lib/starter_web/collections/posts/public/featured/_posts/000_includes/attributes.asciidoc
1081
1085
  - lib/starter_web/collections/posts/public/featured/_posts/000_includes/unsplash-badge.asciidoc
1086
+ - lib/starter_web/collections/posts/public/featured/_posts/2018-05-01-confusion-about-base-url.adoc
1082
1087
  - lib/starter_web/collections/posts/public/featured/_posts/2019-05-01-top-open-source-static-site-generators.adoc
1083
1088
  - lib/starter_web/collections/posts/public/featured/_posts/2019-06-01-about-cookies.adoc
1084
- - lib/starter_web/collections/posts/public/jekyll/_posts/2018-05-01-confusion-about-base-url.adoc
1085
1089
  - lib/starter_web/collections/posts/public/series/_posts/000_includes/attributes.asciidoc
1086
1090
  - lib/starter_web/collections/posts/public/series/_posts/000_includes/documents/100-docker-using-shared-folders.asciidoc
1087
1091
  - lib/starter_web/collections/posts/public/series/_posts/000_includes/documents/loop.sh