j1_template_mde 2018.4.25 → 2018.4.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_shim_generator.html +11 -0
  3. data/lib/j1/version.rb +1 -1
  4. data/lib/j1_app.rb +0 -1
  5. data/lib/j1_app/j1_auth_manager/auth_manager.rb +498 -292
  6. data/lib/j1_app/j1_auth_manager/helpers.rb +19 -2
  7. data/lib/j1_app/omniauth/strategies/disqus.rb +1 -1
  8. data/lib/j1_app/omniauth/strategies/patreon.rb +5 -3
  9. data/lib/starter_web/Gemfile +4 -4
  10. data/lib/starter_web/_config.yml +2 -2
  11. data/lib/starter_web/_data/apps/j1_bootstrap_gallery.yml +11 -10
  12. data/lib/starter_web/_data/apps/j1_carousel.yml +49 -48
  13. data/lib/starter_web/_data/apps/j1_justified_gallery.yml +14 -12
  14. data/lib/starter_web/_data/apps/j1_light_gallery.yml +10 -8
  15. data/lib/starter_web/_data/apps/j1_lightbox.yml +31 -29
  16. data/lib/starter_web/_data/apps/j1_link_checker.yml +6 -4
  17. data/lib/starter_web/_data/asciidoc2pdf/default-theme.yml +57 -55
  18. data/lib/starter_web/_data/asciidoc2pdf/j1-theme.yml +6 -6
  19. data/lib/starter_web/_data/builder/blog_navigator.yml +9 -11
  20. data/lib/starter_web/_data/j1_colors.yml +27 -27
  21. data/lib/starter_web/_data/j1_config.yml +43 -41
  22. data/lib/starter_web/_data/j1_polyfills.yml +49 -0
  23. data/lib/starter_web/_data/j1_resources.yml +5 -4
  24. data/lib/starter_web/_data/layouts/app.yml +14 -15
  25. data/lib/starter_web/_data/layouts/blog_archive.yml +24 -26
  26. data/lib/starter_web/_data/layouts/collection.yml +24 -25
  27. data/lib/starter_web/_data/layouts/default.yml +74 -107
  28. data/lib/starter_web/_data/layouts/home.yml +24 -32
  29. data/lib/starter_web/_data/layouts/page.yml +24 -25
  30. data/lib/starter_web/_data/layouts/post.yml +24 -25
  31. data/lib/starter_web/_data/layouts/raw.yml +14 -15
  32. data/lib/starter_web/_data/modules/j1_back2top.yml +25 -23
  33. data/lib/starter_web/_data/modules/j1_footer.yml +5 -4
  34. data/lib/starter_web/_data/modules/j1_header.yml +4 -4
  35. data/lib/starter_web/_data/modules/j1_iframe_resizer.yml +40 -20
  36. data/lib/starter_web/_data/modules/j1_jekyll_search.yml +25 -12
  37. data/lib/starter_web/_data/modules/j1_log4javascript.yml +12 -12
  38. data/lib/starter_web/_data/modules/j1_panel.yml +56 -58
  39. data/lib/starter_web/_data/modules/j1_parallax.yml +10 -6
  40. data/lib/starter_web/_data/modules/j1_polyfills.yml +0 -0
  41. data/lib/starter_web/_data/modules/j1_smooth_scroll.yml +83 -55
  42. data/lib/starter_web/_data/modules/j1_theme_switcher.yml +57 -43
  43. data/lib/starter_web/_data/modules/j1_toccer.yml +36 -35
  44. data/lib/starter_web/_data/pages/builder.yml +17 -16
  45. data/lib/starter_web/_rack/config.ru +4 -3
  46. data/lib/starter_web/assets/themes/j1/core/css/uno.css +8 -2
  47. data/lib/starter_web/assets/themes/j1/core/css/uno.min.css +1 -1
  48. data/lib/starter_web/package.json +1 -1
  49. metadata +4 -4
  50. data/lib/starter_web/_config.yml.kapott +0 -1064
  51. data/lib/starter_web/assets/data/_panel.html +0 -597
@@ -515,10 +515,10 @@ resources:
515
515
  files: extensions/rouge/css/base16/theme.css
516
516
 
517
517
  # ----------------------------------------------------------------------------
518
- # Stickyfill (CSS polyfill)
518
+ # Stickyfill (CSS polyfill, https://github.com/wilddeer/stickyfill)
519
519
  #
520
520
  - resource:
521
- enabled: false
521
+ enabled: true
522
522
  id: stickyfill
523
523
  comment: Polyfill for CSS position sticky
524
524
  region: head
@@ -526,7 +526,8 @@ resources:
526
526
  required: always
527
527
  script_load: sync
528
528
  data:
529
- js: extensions/stickyfill/js/stickyfill
529
+ files: extensions/stickyfill/js/stickyfill.js
530
+
530
531
 
531
532
  # ----------------------------------------------------------------------------
532
533
  # Alogolia
@@ -536,7 +537,7 @@ resources:
536
537
  id: algolia
537
538
  comment: Resources used by Algolia Instantsearch
538
539
  region: head
539
- layout: all
540
+ layout: [ page, post, app ]
540
541
  required: ondemand
541
542
  script_load: sync
542
543
  data:
@@ -20,15 +20,15 @@
20
20
  # ------------------------------------------------------------------------------
21
21
  # Layout configuration settings
22
22
 
23
- # lanes|lane
24
- # -------------------------------------
23
+ # lanes|lane
24
+ # ----------------------------------------------------------------------------
25
25
  # Set LANE specific configuration parameters for a page LAYOUT. The
26
26
  # LANES array contains multiple (lane) hashes that describes the type
27
27
  # of the component that is loaded into a lane and their specific
28
28
  # (placement) parameters.
29
29
  #
30
- # region
31
- # -------------------------------------
30
+ # region
31
+ # ----------------------------------------------------------------------------
32
32
  # J1 templates defines, based on the general structure of a HTML page
33
33
  # (head|body), more specific REGIONS based on HTML5 semantic elements
34
34
  # to place HTML data:
@@ -54,8 +54,8 @@
54
54
  # values: head|body-navigation|body-header|body-main|body-footer
55
55
  # default: no defaults
56
56
  #
57
- # type
58
- # -------------------------------------
57
+ # type
58
+ # ----------------------------------------------------------------------------
59
59
  # The (HTML) content of a lane can be included (from an include file) or
60
60
  # loaded asychronously from a HTML data file by AJAX (get|load) calls.
61
61
  # J1 template is using jQuery as an interface to AJAX calls.
@@ -63,23 +63,23 @@
63
63
  # values: include|load
64
64
  # default: no defaults
65
65
  #
66
- # source
67
- # -------------------------------------
66
+ # source
67
+ # ----------------------------------------------------------------------------
68
68
  # The parameter source defines a (site root relativ) path to the data
69
69
  # source to be included or loaded.
70
70
  #
71
71
  # values: string (path)
72
72
  # default: no defaults
73
73
  #
74
- # file
75
- # -------------------------------------
74
+ # file
75
+ # ----------------------------------------------------------------------------
76
76
  # Defines the data file to be included or loaded.
77
77
  #
78
78
  # values: string
79
79
  # default: no defaults
80
80
  #
81
- # id
82
- # -------------------------------------
81
+ # id
82
+ # ----------------------------------------------------------------------------
83
83
  # Used for AJAX load calls (see parameter type). The id is used twice. First,
84
84
  # id references a HTML fragment as part of the (HTML) data file (see parameter
85
85
  # data below). Second, the id is used to identify the placeholder (div)
@@ -88,8 +88,8 @@
88
88
  # values: string
89
89
  # default: no defaults
90
90
  #
91
- # class
92
- # -------------------------------------
91
+ # class
92
+ # ----------------------------------------------------------------------------
93
93
  # Additional CSS classes that are put on the placeholder (div) element.
94
94
  # Can be used for type 'load', only.
95
95
  #
@@ -97,7 +97,6 @@
97
97
  # default: no defaults
98
98
  #
99
99
  # ------------------------------------------------------------------------------
100
-
101
100
  lanes:
102
101
 
103
102
  # ------------------------------------------------------------------------------
@@ -20,15 +20,15 @@
20
20
  # ------------------------------------------------------------------------------
21
21
  # Layout configuration settings
22
22
 
23
- # lanes|lane
24
- # -------------------------------------
23
+ # lanes|lane
24
+ # ----------------------------------------------------------------------------
25
25
  # Set LANE specific configuration parameters for a page LAYOUT. The
26
26
  # LANES array contains multiple (lane) hashes that describes the type
27
27
  # of the component that is loaded into a lane and their specific
28
28
  # (placement) parameters.
29
29
  #
30
- # region
31
- # -------------------------------------
30
+ # region
31
+ # ----------------------------------------------------------------------------
32
32
  # J1 templates defines, based on the general structure of a HTML page
33
33
  # (head|body), more specific REGIONS based on HTML5 semantic elements
34
34
  # to place HTML data:
@@ -54,51 +54,49 @@
54
54
  # values: head|body-navigation|body-header|body-main|body-footer
55
55
  # default: no defaults
56
56
  #
57
- #
58
- # type
59
- # -------------------------------------
57
+ # type
58
+ # ----------------------------------------------------------------------------
60
59
  # The (HTML) content of a lane can be included (from an include file) or
61
60
  # loaded asychronously from a HTML data file by AJAX (get|load) calls.
62
61
  # J1 template is using jQuery as an interface to AJAX calls.
63
62
  #
64
- # values: include|load
65
- # default: no defaults
63
+ # values: include|load
64
+ # default: no defaults
66
65
  #
67
- # source
68
- # -------------------------------------
66
+ # source
67
+ # ----------------------------------------------------------------------------
69
68
  # The parameter source defines a (site root relativ) path to the data
70
69
  # source to be included or loaded.
71
70
  #
72
- # values: string (path)
73
- # default: no defaults
71
+ # values: string (path)
72
+ # default: no defaults
74
73
  #
75
- # file
76
- # -------------------------------------
74
+ # file
75
+ # ----------------------------------------------------------------------------
77
76
  # Defines the data file to be included or loaded.
78
77
  #
79
- # values: string
80
- # default: no defaults
78
+ # values: string
79
+ # default: no defaults
81
80
  #
82
- # id
83
- # -------------------------------------
81
+ # id
82
+ # ----------------------------------------------------------------------------
84
83
  # Used for AJAX load calls (see parameter type). The id is used twice. First,
85
84
  # id references a HTML fragment as part of the (HTML) data file (see parameter
86
85
  # data below). Second, the id is used to identify the placeholder (div)
87
86
  # element where the AJAX call puts the data on.
88
87
  #
89
- # values: string
90
- # default: no defaults
88
+ # values: string
89
+ # default: no defaults
91
90
  #
92
- # class
93
- # -------------------------------------
91
+ # class
92
+ # ----------------------------------------------------------------------------
94
93
  # Additional CSS classes that are put on the placeholder (div) element.
95
94
  # Can be used for type 'load', only.
96
95
  #
97
- # values: string (CSS class name)
98
- # default: no defaults
96
+ # values: string (CSS class name)
97
+ # default: no defaults
99
98
  #
100
99
  # ------------------------------------------------------------------------------
101
-
102
100
  lanes:
103
101
 
104
102
  # ------------------------------------------------------------------------------
@@ -20,15 +20,15 @@
20
20
  # ------------------------------------------------------------------------------
21
21
  # Layout configuration settings
22
22
 
23
- # lanes|lane
24
- # -------------------------------------
23
+ # lanes|lane
24
+ # ----------------------------------------------------------------------------
25
25
  # Set LANE specific configuration parameters for a page LAYOUT. The
26
26
  # LANES array contains multiple (lane) hashes that describes the type
27
27
  # of the component that is loaded into a lane and their specific
28
28
  # (placement) parameters.
29
29
  #
30
- # region
31
- # -------------------------------------
30
+ # region
31
+ # ----------------------------------------------------------------------------
32
32
  # J1 templates defines, based on the general structure of a HTML page
33
33
  # (head|body), more specific REGIONS based on HTML5 semantic elements
34
34
  # to place HTML data:
@@ -54,50 +54,49 @@
54
54
  # values: head|body-navigation|body-header|body-main|body-footer
55
55
  # default: no defaults
56
56
  #
57
- # type
58
- # -------------------------------------
57
+ # type
58
+ # ----------------------------------------------------------------------------
59
59
  # The (HTML) content of a lane can be included (from an include file) or
60
60
  # loaded asychronously from a HTML data file by AJAX (get|load) calls.
61
61
  # J1 template is using jQuery as an interface to AJAX calls.
62
62
  #
63
- # values: include|load
64
- # default: no defaults
63
+ # values: include|load
64
+ # default: no defaults
65
65
  #
66
- # source
67
- # -------------------------------------
66
+ # source
67
+ # ----------------------------------------------------------------------------
68
68
  # The parameter source defines a (site root relativ) path to the data
69
69
  # source to be included or loaded.
70
70
  #
71
- # values: string (path)
72
- # default: no defaults
71
+ # values: string (path)
72
+ # default: no defaults
73
73
  #
74
- # file
75
- # -------------------------------------
74
+ # file
75
+ # ----------------------------------------------------------------------------
76
76
  # Defines the data file to be included or loaded.
77
77
  #
78
- # values: string
79
- # default: no defaults
78
+ # values: string
79
+ # default: no defaults
80
80
  #
81
- # id
82
- # -------------------------------------
81
+ # id
82
+ # ----------------------------------------------------------------------------
83
83
  # Used for AJAX load calls (see parameter type). The id is used twice. First,
84
84
  # id references a HTML fragment as part of the (HTML) data file (see parameter
85
85
  # data below). Second, the id is used to identify the placeholder (div)
86
86
  # element where the AJAX call puts the data on.
87
87
  #
88
- # values: string
89
- # default: no defaults
88
+ # values: string
89
+ # default: no defaults
90
90
  #
91
- # class
92
- # -------------------------------------
91
+ # class
92
+ # ----------------------------------------------------------------------------
93
93
  # Additional CSS classes that are put on the placeholder (div) element.
94
94
  # Can be used for type 'load', only.
95
95
  #
96
- # values: string (CSS class name)
97
- # default: no defaults
96
+ # values: string (CSS class name)
97
+ # default: no defaults
98
98
  #
99
99
  # ------------------------------------------------------------------------------
100
-
101
100
  lanes:
102
101
 
103
102
  # ------------------------------------------------------------------------------
@@ -17,119 +17,86 @@
17
17
  # YAML data file into the REGION specified with a LANE.
18
18
  # ------------------------------------------------------------------------------
19
19
 
20
- # -------------------------------------------------------------------------
21
- # GLOBAL settings
22
- #
23
-
24
- # base
25
- # --------------------------------------------------------------------
26
- # Defines a (canonical) base path.
27
- #
28
- # core (base) path for core components
29
- # asset (base) path for assets
30
- #
31
-
32
- # -------------------------------------------------------------------------
20
+ # ------------------------------------------------------------------------------
33
21
  # Layout configuration settings
34
22
 
35
- # lanes|lane
36
- # --------------------------------------------------------------------
23
+ # lanes|lane
24
+ # ----------------------------------------------------------------------------
37
25
  # Set LANE specific configuration parameters for a page LAYOUT. The
38
- # LANES array contains multiple (lane) hashes that describes the
39
- # type of the component that is placed into a lane and their specific
26
+ # LANES array contains multiple (lane) hashes that describes the type
27
+ # of the component that is loaded into a lane and their specific
40
28
  # (placement) parameters.
41
29
  #
42
- # region
43
- # --------------------------------------------------------------------
44
- # J1 Template defines, based on the general structure of a HTML
45
- # page (head and body), more specific regions to place HTML data
46
- # (lanes):
47
- #
48
- # head <HEAD> section. Contains (site-wide) meta
49
- # data (tags) and all CSS files to be loaded.
50
- # body-navigation <BODY> section. Contains the navigation bar
51
- # (NavManager). Placed a the BEGINNING of the
52
- # body region <body>.
53
- # body-banner <BODY> section. Contains the page banner
54
- # (header). Placed AFTER the page navigation
55
- # but BEFORE the page content.
56
- # body-content <BODY> section. J1 template puts a specific
57
- # <div> container element in the <BODY> section
58
- # to place the content. All content specific
59
- # elements are loaded into the region 'body-content'.
60
- # Content may e.g. boxes, panels, quotes and
61
- # the page content.
62
- # body-footer <BODY> section. J1 template puts a specific
63
- # <div> container element at the end of the
64
- # <BODY> section. The body-footer region contains
65
- # all elements that should be loaded at the
66
- # end of a page - typically the page footer.
67
- #
68
- # values: head|body-navigation|body-banner|
69
- # body-content|body-footer
70
- # default: no defaults
71
- #
72
- # type
73
- # --------------------------------------------------------------------
74
- # The (HTML) CONTENT of a lane can be placed for sychronous (sync)
75
- # or asychronous (async) load. If the content is placed synchronously,
76
- # a core component of J1 Template (base = core) or an HTML adapter
77
- # (base = module) generates the HTML code to be placed.
78
- # If the content is placed asynchronously, only a <DIV> element, using
79
- # an unique id, is placed for synchronous (page) load. The HTML code
80
- # will be generated asynchronously (by a module) after the page is
81
- # completely loaded (document-ready) and placed within the previously
82
- # generated <DIV> element (e.g. by a module).
83
- #
84
- # values: sync|async
85
- # default: no defaults
86
- #
87
- # base
88
- # --------------------------------------------------------------------
89
- # Type SYNC only. The parameter base defines a (canonical) BASE
90
- # path.
91
- #
92
- # values: core|asset
93
- # default: no defaults
94
- #
95
- # path
96
- # --------------------------------------------------------------------
97
- # Type SYNC only. The parameter path defines a PATH (relativ to BASE)
98
- # to the data source to be placed.
99
- #
100
- # values: string (path)
101
- # default: no defaults
102
- #
103
- # file
104
- # --------------------------------------------------------------------
105
- # Type SYNC only. Defines the FILE to be placed (and
106
- # executed) for a lane.
107
- #
108
- # values: string
109
- # default: no defaults
110
- #
111
- # id
112
- # --------------------------------------------------------------------
113
- # Type ASYNC only. Used for content placed asyncronously by (AJAX
114
- # calls) on an DIV element using this id.
115
- # the data on.
116
- #
117
- # values: string
118
- # default: no defaults
119
- #
120
- # class
121
- # --------------------------------------------------------------------
122
- # Type ASYNC only. Additional CSS classes that are put on the
123
- # DIV element using this id.
124
- #
125
- # values: string (CSS class name)
126
- # default: no defaults
127
- #
128
- # -------------------------------------------------------------------------
129
-
130
- # -------------------------------------------------------------------------
131
- # GLOBAL configuration settings
30
+ # region
31
+ # ----------------------------------------------------------------------------
32
+ # J1 templates defines, based on the general structure of a HTML page
33
+ # (head|body), more specific REGIONS based on HTML5 semantic elements
34
+ # to place HTML data:
35
+ #
36
+ # head <head> section. Contains (site-wide) meta data and
37
+ # all CSS and JS files are to be loaded for a page.
38
+ # body-navigation <body> NAV section. Contains the main navigation bar.
39
+ # Placed a the BEGINNING of the <body> section.
40
+ # body-header <body> HEADER section. Contains the page banner (header).
41
+ # Placed AFTER the page navigation but BEFORE the main
42
+ # content (body-main) of a page.
43
+ # body-main <body> MAIN section. J1 template puts a <main> container
44
+ # element in the <body> section to place the (main) content.
45
+ # All content related elements are loaded into the region
46
+ # 'body-main'. Content may components like boxes, panels,
47
+ # quotes etc. and the document content like sections and
48
+ # articles.
49
+ # body-footer <body> FOOTER section. J1 template puts a <footer> element
50
+ # at the end of the <BODY> section. The body-footer region
51
+ # contains all elements that should be loaded at the end
52
+ # of a page; typically the page footer.
53
+ #
54
+ # values: head|body-navigation|body-header|body-main|body-footer
55
+ # default: no defaults
56
+ #
57
+ # type
58
+ # ----------------------------------------------------------------------------
59
+ # The (HTML) content of a lane can be included (from an include file) or
60
+ # loaded asychronously from a HTML data file by AJAX (get|load) calls.
61
+ # J1 template is using jQuery as an interface to AJAX calls.
62
+ #
63
+ # values: include|load
64
+ # default: no defaults
65
+ #
66
+ # source
67
+ # ----------------------------------------------------------------------------
68
+ # The parameter source defines a (site root relativ) path to the data
69
+ # source to be included or loaded.
70
+ #
71
+ # values: string (path)
72
+ # default: no defaults
73
+ #
74
+ # file
75
+ # ----------------------------------------------------------------------------
76
+ # Defines the data file to be included or loaded.
77
+ #
78
+ # values: string
79
+ # default: no defaults
80
+ #
81
+ # id
82
+ # ----------------------------------------------------------------------------
83
+ # Used for AJAX load calls (see parameter type). The id is used twice. First,
84
+ # id references a HTML fragment as part of the (HTML) data file (see parameter
85
+ # data below). Second, the id is used to identify the placeholder (div)
86
+ # element where the AJAX call puts the data on.
87
+ #
88
+ # values: string
89
+ # default: no defaults
90
+ #
91
+ # class
92
+ # ----------------------------------------------------------------------------
93
+ # Additional CSS classes that are put on the placeholder (div) element.
94
+ # Can be used for type 'load', only.
95
+ #
96
+ # values: string (CSS class name)
97
+ # default: no defaults
132
98
  #
99
+ # ------------------------------------------------------------------------------
133
100
 
134
101
  # -------------------------------------------------------------------------
135
102
  # Layout configuration settings