j1_template 2019.4.10 → 2019.4.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/j1/version.rb +1 -1
  3. data/lib/starter_web/Gemfile +1 -1
  4. data/lib/starter_web/_cc_test_data/_config.yml +1 -1
  5. data/lib/starter_web/_config.yml +1 -1
  6. data/lib/starter_web/assets/themes/j1/core/js/j1.js +9 -1
  7. data/lib/starter_web/package.json +1 -1
  8. data/lib/starter_web/pages/public/start/downloads/quickstarter/100_linux_starter.adoc +1 -1
  9. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  10. data/lib/starter_web/utilsrv/package.json +1 -1
  11. metadata +15 -50
  12. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.before_merge_added.rb +0 -1267
  13. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.new.rb +0 -1121
  14. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.no_cookie.mgmt.rb +0 -1130
  15. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.ok.rb +0 -1130
  16. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.org.2.rb +0 -1086
  17. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.org.rb +0 -1548
  18. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.update.web_cookie.rb +0 -1333
  19. data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.2.erb +0 -198
  20. data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.additional_inits.erb +0 -254
  21. data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.manage.cookies.erb +0 -255
  22. data/lib/starter_web/assets/_data/_temp/_banner.html +0 -421
  23. data/lib/starter_web/assets/_data/_temp/_panel.html +0 -585
  24. data/lib/starter_web/assets/_data/_temp/banner.case.snippet.html.asciidoc +0 -91
  25. data/lib/starter_web/assets/_data/_temp/banner.new.html.asciidoc +0 -559
  26. data/lib/starter_web/assets/_data/_temp/banner.with.defaults.html.asciidoc +0 -547
  27. data/lib/starter_web/assets/_data/_temp/footer.html.new +0 -228
  28. data/lib/starter_web/assets/_data/_temp/footer.html.org +0 -234
  29. data/lib/starter_web/assets/_data/_temp/footer.old.html +0 -231
  30. data/lib/starter_web/assets/_data/_temp/footer_new.html +0 -226
  31. data/lib/starter_web/assets/_data/_temp/footer_old.html +0 -222
  32. data/lib/starter_web/assets/_data/_temp/menu.old.html +0 -462
  33. data/lib/starter_web/assets/_data/_temp/panel.new.html +0 -560
  34. data/lib/starter_web/assets/_data/_temp/panel.old.html +0 -597
  35. data/lib/starter_web/assets/_data/_temp/panel.org.html +0 -597
  36. data/lib/starter_web/assets/_data/animate.json +0 -120
  37. data/lib/starter_web/assets/_data/ascii_code_table.json +0 -1794
  38. data/lib/starter_web/assets/_data/authclient.html +0 -365
  39. data/lib/starter_web/assets/_data/banner.html +0 -431
  40. data/lib/starter_web/assets/_data/carousel.json +0 -110
  41. data/lib/starter_web/assets/_data/colors.json +0 -43
  42. data/lib/starter_web/assets/_data/cookie_consent.html +0 -225
  43. data/lib/starter_web/assets/_data/countries.json +0 -974
  44. data/lib/starter_web/assets/_data/font_sizes.json +0 -43
  45. data/lib/starter_web/assets/_data/fontawesome_icons.json +0 -5525
  46. data/lib/starter_web/assets/_data/footer.html +0 -239
  47. data/lib/starter_web/assets/_data/galleries.json +0 -160
  48. data/lib/starter_web/assets/_data/mdi_icons.json +0 -14641
  49. data/lib/starter_web/assets/_data/menu.html +0 -469
  50. data/lib/starter_web/assets/_data/messages.yml +0 -130
  51. data/lib/starter_web/assets/_data/objects.json +0 -458
  52. data/lib/starter_web/assets/_data/panel.html +0 -501
  53. data/lib/starter_web/assets/_data/panel.new.html +0 -498
  54. data/lib/starter_web/assets/_data/quicklinks.html +0 -178
  55. data/lib/starter_web/assets/_data/search.yml +0 -131
  56. data/lib/starter_web/assets/_data/sidebar.html +0 -261
  57. data/lib/starter_web/assets/_data/themes.json +0 -59
  58. data/lib/starter_web/assets/_data/twa_v1.json +0 -6978
  59. data/lib/starter_web/assets/_data/twa_v2.json +0 -12812
  60. data/lib/starter_web/assets/_data/webhook.html +0 -190
@@ -1,178 +0,0 @@
1
- ---
2
- regenerate: true
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/data/quicklinks.html
10
- # Liquid PROCEDURE template to create the HTML portion of the quicklink bar
11
- # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX)
12
- #
13
- # Product/Info:
14
- # https://jekyll.one
15
- #
16
- # Copyright (C) 2019 Juergen Adams
17
- #
18
- # J1 Template is licensed under the MIT License.
19
- # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
20
- # -----------------------------------------------------------------------------
21
- # Test data:
22
- # liquid_var: {{ liquid_var | debug }}
23
- # -----------------------------------------------------------------------------
24
- {% endcomment %}
25
-
26
- {% comment %} Liquid procedures
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
- {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
29
- {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
30
-
31
-
32
- {% comment %} Liquid var initialization
33
- -------------------------------------------------------------------------------- {% endcomment %}
34
- {% assign modules = site.data.modules %}
35
-
36
- {% comment %} Set config files
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- {% assign navigator_defaults = modules.defaults.navigator.defaults %}
39
- {% assign navigator_settings = modules.navigator.settings %}
40
- {% assign consent_defaults = modules.defaults.cookie_consent.defaults %}
41
- {% assign consent_settings = modules.cookie_consent.settings %}
42
- {% assign quick_search_defaults = modules.defaults.jekyll_search.defaults %}
43
- {% assign quick_search_settings = modules.jekyll_search.settings %}
44
-
45
- {% assign auth_manager_config = site.j1_auth %}
46
- {% assign auth_client_config = navigator_defaults.nav_authclient %}
47
-
48
- {% comment %} Set config data
49
- -------------------------------------------------------------------------------- {% endcomment %}
50
- {% assign nav_quicklinks_defaults = navigator_defaults.nav_quicklinks %}
51
- {% assign nav_quicklinks_settings = navigator_settings.nav_quicklinks %}
52
-
53
- {% comment %} Set config options
54
- ------------------------------------------------------------------------------ {% endcomment %}
55
- {% assign quick_search_options = quick_search_defaults | merge: quick_search_settings %}
56
- {% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %}
57
- {% assign consent_options = consent_defaults | merge: consent_settings %}
58
-
59
- {% comment %} Set quicklinks properties
60
- ------------------------------------------------------------------------------ {% endcomment %}
61
- {% assign icon_family = quicklinks_options.icon_family | downcase %}
62
-
63
- {% assign cookies_icon = quicklinks_options.cookies_icon %}
64
- {% assign search_icon = quicklinks_options.top_search_icon %}
65
- {% assign sidebar_icon = quicklinks_options.sidebar_icon %}
66
- {% assign signin_icon = quicklinks_options.signin_icon %}
67
- {% assign signout_icon = quicklinks_options.signout_icon %}
68
-
69
- {% assign control_center_icon = quicklinks_options.control_center_icon %}
70
- {% assign control_center_url = quicklinks_options.control_center_url %}
71
-
72
- {% assign disqus_icon = quicklinks_options.disqus_icon %}
73
- {% assign github_icon = quicklinks_options.github_icon %}
74
- {% assign patreon_icon = quicklinks_options.patreon_icon %}
75
- {% assign facebook_icon = quicklinks_options.facebook_icon %}
76
- {% assign twitter_icon = quicklinks_options.twitter_icon %}
77
-
78
- {% assign disqus_url = quicklinks_options.disqus_url %}
79
- {% assign github_url = quicklinks_options.github_url %}
80
- {% assign patreon_url = quicklinks_options.patreon_url %}
81
- {% assign facebook_url = quicklinks_options.facebook_url %}
82
- {% assign twitter_url = quicklinks_options.twitter_url %}
83
-
84
- {% assign signin_modal_id = auth_client_config.signin_modal_id %}
85
-
86
-
87
-
88
- {% comment %} Show|Hide Quicksearch icon
89
- ------------------------------------------------------------------------------ {% endcomment %}
90
- {% if quick_search_options.enabled %}
91
- {% assign show_quick_search_icon = true %}
92
- {% else %}
93
- {% assign show_quick_search_icon = false %}
94
- {% endif %}
95
-
96
- {% comment %} Show|Hide AuthManager icon
97
- ------------------------------------------------------------------------------ {% endcomment %}
98
- {% if auth_manager_config.enabled %}
99
- {% assign show_auth_manager_icon = true %}
100
- {% else %}
101
- {% assign show_auth_manager_icon = false %}
102
- {% endif %}
103
-
104
- {% comment %} Show|Hide Control Center icon
105
- ------------------------------------------------------------------------------ {% endcomment %}
106
- {% if quicklinks_options.control_center %}
107
- {% assign show_control_center_icon = true %}
108
- {% else %}
109
- {% assign show_control_center_icon = false %}
110
- {% endif %}
111
-
112
- {% comment %} Show|Hide Sidebar icon
113
- ------------------------------------------------------------------------------ {% endcomment %}
114
- {% if quicklinks_options.sidebar %}
115
- {% assign show_sidebar_icon = true %}
116
- {% else %}
117
- {% assign show_sidebar_icon = false %}
118
- {% endif %}
119
-
120
- {% comment %} Show|Hide CookieConsent icon
121
- ------------------------------------------------------------------------------ {% endcomment %}
122
- {% if consent_options.enabled %}
123
- {% assign consent_enabled = true %}
124
- {% else %}
125
- {% assign consent_enabled = false %}
126
- {% endif %}
127
-
128
- {% if consent_options.show_consent_icon %}
129
- {% assign consent_icon_enabled = true %}
130
- {% else %}
131
- {% assign consent_icon_enabled = false %}
132
- {% endif %}
133
-
134
- {% if consent_enabled and consent_icon_enabled %}
135
- {% assign show_cookie_consent_icon = true %}
136
- {% else %}
137
- {% assign show_cookie_consent_icon = false %}
138
- {% endif %}
139
-
140
- {% comment %} Select icon family and size (color set dynamically by adapter)
141
- ------------------------------------------------------------------------------ {% endcomment %}
142
- {% if quicklinks_options.icon_family == 'FontAwesome' or quicklinks_options.icon_family == 'FontAwesome4' or quicklinks_options.icon_family == 'FontAwesome5' %}
143
- {% assign icon_family = 'fa' %}
144
- {% elsif quicklinks_options.icon_family == 'MDI' or quicklinks_options.icon_family == 'Material Design Icons'%}
145
- {% assign icon_family = 'mdi' %}
146
- {% else %}
147
- {% assign icon_family = 'mdi' %}
148
- {% endif %}
149
-
150
- {% include {{select_icon_size}} family=quicklinks_options.icon_family size=quicklinks_options.icon_size %}
151
- {% assign icon_size = size %}
152
-
153
-
154
- {% comment %} Main
155
- -------------------------------------------------------------------------------- {% endcomment %}
156
- <!-- [INFO ] [j1.modules.navigator.quicklinks.html ] [AuthManager detected as: {{ show_auth_manager_icon }}] -->
157
- <!-- [INFO ] [j1.modules.navigator.quicklinks.html ] [CookieConsent detected as: {{ consent_enabled }}] -->
158
- <!-- [INFO ] [j1.modules.navigator.quicklinks.html ] [Show CookieConsent icon detected as: {{ show_cookie_consent_icon }}] -->
159
- <!-- [INFO ] [j1.modules.navigator.quicklinks.html ] [Show ControlCenter icon detected as: {{ show_control_center_icon }}] -->
160
- <!-- [INFO ] [j1.modules.navigator.quicklinks.html ] [Set icon familiy as: {{ icon_family }}] -->
161
- <!-- [INFO ] [j1.modules.navigator.quicklinks.html ] [Set icon size as: {{ icon_size }}] -->
162
- <ul class="navbar-nav">
163
- {% if disqus_url != "none" %}<li id="quickLinksDisqusButton" class="nav-item"><a id="disqus_id" class="nav-icon" href="{{disqus_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{disqus_icon}} {{icon_size}}"></i></a></li>{% endif %}
164
- {% if github_url != "none" %}<li id="quickLinksGithubButton"class="nav-item"><a id="github_id" class="nav-icon" href="{{github_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{github_icon}} {{icon_size}}"></i></a></li>{% endif %}
165
- {% if patreon_url != "none" %}<li id="quickLinksPatreonButton" class="nav-item"><a id="patreon_id" class="nav-icon" href="{{patreon_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{patreon_icon}} {{icon_size}}"></i></a></li>{% endif %}
166
- {% if facebook_url != "none" %}<li id="quickLinksFacebookButton" class="nav-item"><a id="facebook_id" class="nav-icon" href="{{facebook_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{facebook_icon}} {{icon_size}}"></i></a></li>{% endif %}
167
- {% if twitter_url != "none" %}<li id="quickLinksTwitterButton"class="nav-item"><a id="twitter_id" class="nav-icon" href="{{twitter_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{twitter_icon}} {{icon_size}}"></i></a></li>{% endif %}
168
- {% if show_auth_manager_icon %}<li id="quickLinksSignInOutButton" class="nav-item" style="display: none;"><a class="nav-icon" id="navLinkSignInOut" href="#" data-toggle="modal" data-target="#{{signin_modal_id}}"><i id="iconSignInOut" class="{{icon_family}} {{icon_family}}-{{signin_icon}} {{icon_size}}"></i></a></li>{% endif %}
169
- {% if show_cookie_consent_icon %}<li id="quickLinksCookieButton" class="nav-item" style="display: none;"><a id="cookie-state" class="nav-icon" href="#" data-toggle="modal" data-target="#cookieRevokeCentralDanger"><i class="{{icon_family}} {{icon_family}}-{{cookies_icon}} {{icon_size}}"></i></a></li>{% endif %}
170
- {% if show_quick_search_icon %}<li id="quickLinksSearchButton" class="nav-item search"><a class="nav-icon" href="#"><i class="{{icon_family}} {{icon_family}}-{{search_icon}} {{icon_size}}"></i></a></li>{% endif %}
171
- {% if show_control_center_icon %}<li id="quickLinksControlCenterButton" class="nav-item control-center" style="display: block;"><a class="nav-icon" href="{{control_center_url}}"><i class="{{icon_family}} {{icon_family}}-{{control_center_icon}} {{icon_size}}"></i></a></li>{% endif %}
172
- {% if show_sidebar_icon %}<li id="quickLinksSideBarButton" class="nav-item side-menu"><a class="nav-icon" href="#"><i class="{{icon_family}} {{icon_family}}-{{sidebar_icon}} {{icon_size}}"></i></a></li>{% endif %}
173
- </ul>
174
-
175
- {% endcapture %}
176
-
177
- {{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
178
- {% assign cache = nil %}
@@ -1,131 +0,0 @@
1
- ---
2
- regenerate: false
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/data/search.yml
10
- # Liquid YAML template to generate INDEX data used by SimpleJekyllSearch
11
- #
12
- # Product/Info:
13
- # http://jekyll.one
14
- #
15
- # Copyright (C) 2019 Juergen Adams
16
- #
17
- # J1 Template is licensed under the MIT License.
18
- # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
19
- #
20
- # -----------------------------------------------------------------------------
21
- #
22
- # SimpleJekyllSearch, a JavaScript library to add search functionality
23
- # to any Jekyll Site or Blog.
24
- #
25
- # The Liquid template search.yml is used by J1 SimpleJekyllSearch.
26
- # This template is a helper that creates the search database (index, YAML)
27
- # for all documents.
28
- #
29
- # The Liquid template generates a simple YAML file as an array that contains
30
- # objects for ALL posts and pages included for indexing. See below the fields
31
- # taken from the source files.
32
- #
33
- # NOTE:
34
- # Be careful changing the Liquid code. If the code is changed, check
35
- # the integrity of the YAML data created. Corrupted YAML data makes
36
- # the Javascript of SimpleJekyllSearch to fail (JSONLoader.js) and no
37
- # search functionality will be available for most UNCLEAR reasons.
38
- #
39
- # -----------------------------------------------------------------------------
40
- # Test data:
41
- # {{ liquid_var | debug }}
42
- # -----------------------------------------------------------------------------
43
- {% endcomment %}
44
-
45
- {% assign quick_search_config = site.data.modules.j1_jekyll_search %}
46
- {% assign result_target = quick_search_config.target %}
47
-
48
- {% comment %} Set posts count by posts_num. Indicates if a comma
49
- needs to be set for valid JSON
50
- ------------------------------------------------------------------------------ {% endcomment %}
51
- {% assign posts_num = site.posts.size %}
52
-
53
- {% for post in site.posts %}
54
- {% if post.noindex %} {% continue %} {% endif %}
55
- {
56
- "title": "{{ post.title | strip }}",
57
- "tagline": "{{ post.tagline | strip }}",
58
- {% if post.tags %}
59
- "tags": "{{ post.tags | join: ',' }}",
60
- {% else %}
61
- "tags": "",
62
- {% endif %}
63
- {% if post.index %}
64
- "index": "{{ post.index | join: ',' }}",
65
- {% else %}
66
- "index": "",
67
- {% endif %}
68
- {% if post.categories %}
69
- "categories": "{{ post.categories | join: ',' }}",
70
- {% else %}
71
- "categories": "",
72
- {% endif %}
73
- "date": "{{ post.date }}",
74
- "url": "{{ site.baseurl }}{{ post.url }}",
75
- "target": "{{ result_target }}",
76
- {% if post.excerpt %}
77
- "excerpt": "{{ post.excerpt | newline_to_br | strip_html | strip | newline_to_space | replace:'"','\"' | truncatewords: 50 }}"
78
- {% else %}
79
- "excerpt": ""
80
- {% endif %}
81
- }{% if posts_num %},{% endif %}
82
- {% endfor %}
83
-
84
- {% comment %} For unknown reason, loop for pages needs corrected
85
- by page_offset. Helper forloop.last not usable.
86
- ------------------------------------------------------------------------------ {% endcomment %}
87
-
88
- {% comment %} For pages, NO excerpt is supported (v3.8.5)
89
- ------------------------------------------------------------------------------ {% endcomment %}
90
-
91
- {% assign page_offset = 2 %}
92
-
93
- {% for page in site.pages %}
94
- {% if page.noindex %} {% continue %} {% endif %}
95
- {% if page.url contains 'assets' or page.url contains '.json' or page.url contains '.txt' %} {% continue %} {% endif %}
96
- {% if page.url contains '.html' %} {% continue %} {% endif %}
97
- {% if page.url == '/'%} {% continue %} {% endif %}
98
- {
99
- "title": "{{ page.title | escape }}",
100
- "tagline": "{{ page.tagline }}",
101
- {% if page.tags %}
102
- "tags": "{{ page.tags | join: ', ' }}",
103
- {% else %}
104
- "tags": "",
105
- {% endif %}
106
- {% if page.index %}
107
- "index": "{{ page.index | join: ', ' }}",
108
- {% else %}
109
- "index": "",
110
- {% endif %}
111
- {% if page.categories %}
112
- "categories": "{{ page.categories | join: ', ' }}",
113
- {% else %}
114
- "categories": "",
115
- {% endif %}
116
- "url": "{{ site.baseurl }}{{ page.url }}",
117
- "target": "{{ result_target }}",
118
- {% if page.excerpt %}
119
- "excerpt": "{{ page.excerpt | newline_to_br | strip_html | strip | newline_to_space | replace:'"','\"' | truncatewords: 50 }}"
120
- {% else %}
121
- "excerpt": "{{ page.description | newline_to_br | strip_html | strip | newline_to_space | replace:'"','\"' | truncatewords: 50 }}"
122
- {% endif %}
123
- }{% unless forloop.rindex0 == page_offset %},{% endunless %}
124
- {% endfor %}
125
- {% endcapture %}
126
-
127
- [
128
- {{ cache | strip_empty_lines }}
129
- ]
130
-
131
- {% assign cache = nil %}
@@ -1,261 +0,0 @@
1
- ---
2
- regenerate: true
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/data/sidebar.html
10
- # Liquid PROCEDURE template to create the HTML portion of the sidebar
11
- # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX)
12
- #
13
- # Product/Info:
14
- # https://jekyll.one
15
- #
16
- # Copyright (C) 2019 Juergen Adams
17
- #
18
- # J1 Template is licensed under the MIT License.
19
- # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
20
- # -----------------------------------------------------------------------------
21
- # Test data:
22
- # liquid_var: {{ liquid_var | debug }}
23
- # -----------------------------------------------------------------------------
24
- {% endcomment %}
25
-
26
- {% comment %} Liquid procedures
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
- {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
29
- {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
30
-
31
-
32
- {% comment %} Liquid var initialization
33
- -------------------------------------------------------------------------------- {% endcomment %}
34
-
35
- {% comment %} Set config files
36
- -------------------------------------------------------------------------------- {% endcomment %}
37
-
38
- {% assign navigator_defaults = site.data.modules.defaults.navigator.defaults %}
39
- {% assign navigator_settings = site.data.modules.navigator.settings %}
40
-
41
- {% comment %} Set config data
42
- -------------------------------------------------------------------------------- {% endcomment %}
43
- {% assign nav_sidebar_defaults = navigator_defaults.nav_sidebar %}
44
- {% assign nav_sidebar_settings = navigator_settings.nav_sidebar %}
45
-
46
- {% comment %} Set config options
47
- ------------------------------------------------------------------------------ {% endcomment %}
48
- {% assign sidebar_options = nav_sidebar_defaults | merge: nav_sidebar_settings %}
49
-
50
- {% comment %} Set sidebar properties
51
- ------------------------------------------------------------------------------ {% endcomment %}
52
- {% assign display_user_info = sidebar_options.display_user_info %}
53
- {% assign display_theme = sidebar_options.display_theme %}
54
- {% assign close_icon = sidebar_options.close_icon %}
55
-
56
- {% comment %} Set global settings
57
- ------------------------------------------------------------------------------ {% endcomment %}
58
- {% assign nav_bar_id = navigator_defaults.id %}
59
- {% assign nav_navbar_media_breakpoint = navigator_defaults.nav_bar.media_breakpoint %}
60
-
61
-
62
- {% comment %} Main
63
- ------------------------------------------------------------------------------ {% endcomment %}
64
-
65
- {% if sidebar_options.icon_family == 'FontAwesome' or sidebar_options.icon_family == 'FontAwesome4' or sidebar_options.icon_family == 'FontAwesome5' %}
66
- {% assign icon_family = 'fa' %}
67
- {% elsif sidebar_options.icon_family == 'MDI' or sidebar_options.icon_family == 'Material Design Icons'%}
68
- {% assign icon_family = 'mdi' %}
69
- {% else %}
70
- {% assign icon_family = 'mdi' %}
71
- {% endif %}
72
-
73
- {% include {{select_color}} color=sidebar_options.icon_color fallback="#9E9E9E" %}
74
- {% capture icon_color %}style="color: {{color}}"{% endcapture %}
75
-
76
- {% include {{select_icon_size}} family=icon_family size=sidebar_options.icon_size %}
77
- {% assign icon_size = size %}
78
-
79
-
80
- {% comment %} Main
81
- -------------------------------------------------------------------------------- {% endcomment %}
82
-
83
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Start processing: sidebar] -->
84
- <a href="#" class="close-side"><i class="{{icon_family}} {{icon_family}}-{{close_icon}} mdi-48px" {{icon_color}}></i></a>
85
-
86
- {% for boxes in sidebar_options.boxes %}
87
- {% for box in boxes %}
88
-
89
- {% for item in box[1] %}
90
- {% assign key = item[0] %}
91
- {% assign value = item[1] %}
92
- {% if key == 'enabled' %} {% assign enabled = value %} {% endif %}
93
- {% if key == 'type' %} {% assign type = value %} {% endif %}
94
- {% if key == 'title' %} {% assign title = value %} {% endif %}
95
- {% if key == 'type' %} {% assign type = value %} {% endif %}
96
- {% if key == 'links' %} {% assign links = value %} {% endif %}
97
- {% endfor %}
98
-
99
- {% if enabled %}
100
- {% case type %}
101
-
102
- {% comment %} Collect USER info
103
- ---------------------------------------------------------------------- {% endcomment %}
104
- {% when 'user_info' %}
105
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [USER info enabled] -->
106
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Write widged placeholder: USER info] -->
107
- <div id="user-info" class="widget">
108
- <h4 class="heading">{{title}}</h4>
109
- <ul id="display_user_details" class="link">
110
- {% for link in links %}
111
-
112
- {% if link.icon == null %}
113
- {% assign icon = '' %}
114
- {% else %}
115
- {% capture icon %}<i class="{{icon_family}} {{icon_family}}-{{link.icon}} {{icon_size}} mr-2" {{icon_color}}></i>{% endcapture %}
116
- {% endif %}
117
-
118
- {% if link.target == nil or link.target == "" or link.target == "none" %}
119
- {% assign target = "" %}
120
- {% else %}
121
- {% capture target %}target="{{link.target}}"{% endcapture %}
122
- {% endif %}
123
-
124
- {% if link.value == nil or link.value == "" or link.value == "none" %}
125
- {% assign link_text = link.title %}
126
- {% else %}
127
- {% if link.value contains '??' %}
128
- {% capture macro_name %}{{link.value|replace: '?',''|downcase}}{% endcapture %}
129
- {% capture macro_id %}id="macro-{{macro_name}}"{% endcapture %}
130
- {% else %}
131
- {% assign macro_id = '' %}
132
- {% endif %}
133
- {% capture link_text %}{{link.title}}: {{link.value}}{% endcapture %}
134
- {% endif %}
135
-
136
- <li><a {{macro_id}} href="{{link.href|strip}}" {{target}}>{{icon}} {{link_text}}</a></li>
137
-
138
- {% endfor %}
139
- </ul>
140
- </div>
141
-
142
- {% comment %} END Collect USER info
143
- ---------------------------------------------------------------------- {% endcomment %}
144
-
145
- {% comment %} Reset element variables
146
- ---------------------------------------------------------------------- {% endcomment %}
147
- {% assign enabled = nil %}
148
- {% assign type = nil %}
149
- {% assign title = nil %}
150
- {% assign type = nil %}
151
- {% assign links = nil %}
152
-
153
- {% comment %} Collect THEME info
154
- ---------------------------------------------------------------------- {% endcomment %}
155
- {% when 'theme_info' %}
156
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [THEME info detected] -->
157
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Write widged placeholder: USER info] -->
158
- <div id="theme-info" class="widget">
159
- <h4 class="heading">{{title}}</h4>
160
- <ul class="link">
161
- {% for link in links %}
162
-
163
- {% if link.icon == null %}
164
- {% assign icon = '' %}
165
- {% else %}
166
- {% capture icon %}<i class="{{icon_family}} {{icon_family}}-{{link.icon}} {{icon_size}} mr-2" {{icon_color}}></i>{% endcapture %}
167
- {% endif %}
168
-
169
- {% if link.target == nil or link.target == "" or link.target == "none" %}
170
- {% assign target = "" %}
171
- {% else %}
172
- {% capture target %}target="{{link.target}}"{% endcapture %}
173
- {% endif %}
174
-
175
- {% if link.value == nil or link.value == "" or link.value == "none" %}
176
- {% assign link_text = link.title %}
177
- {% else %}
178
- {% if link.value contains '??' %}
179
- {% capture macro_name %}{{link.value|replace: '?',''|downcase}}{% endcapture %}
180
- {% capture macro_id %}id="macro-{{macro_name}}"{% endcapture %}
181
- {% else %}
182
- {% assign macro_id = '' %}
183
- {% endif %}
184
- {% capture link_text %}{{link.title}}: {{link.value}}{% endcapture %}
185
- {% endif %}
186
-
187
- <li><a {{macro_id}} href="{{link.href|strip}}" {{target}}>{{icon}} {{link_text}}</a></li>
188
-
189
- {% endfor %}
190
- </ul>
191
- </div>
192
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [End processing: THEME info] -->
193
-
194
- {% comment %} END Collect THEME info
195
- ---------------------------------------------------------------------- {% endcomment %}
196
-
197
- {% comment %} Reset element variables
198
- ---------------------------------------------------------------------- {% endcomment %}
199
- {% assign enabled = nil %}
200
- {% assign type = nil %}
201
- {% assign title = nil %}
202
- {% assign type = nil %}
203
- {% assign links = nil %}
204
-
205
- {% comment %} Collect SITE info
206
- ---------------------------------------------------------------------- {% endcomment %}
207
- {% when 'site_info' %}
208
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Start processing SITE info] -->
209
-
210
- <div id="site-info" class="widget">
211
- <h4 class="heading">{{title}}</h4>
212
- <ul class="link">
213
- {% for link in links %}
214
- {% if link.icon == null %}
215
- {% assign icon = "" %}
216
- {% else %}
217
- {% capture icon %}<i class="{{icon_family}} {{icon_family}}-{{link.icon}} {{icon_size}} mr-2" {{icon_color}}></i>{% endcapture %}
218
- {% endif %}
219
-
220
- {% if link.target == nil or link.target == "" or link.target == "none" %}
221
- {% assign target = "" %}
222
- {% else %}
223
- {% capture target %}target="{{link.target}}"{% endcapture %}
224
- {% endif %}
225
-
226
- {% if link.value == nil or link.value == "" or link.value == "none" %}
227
- {% assign link_text = link.title %}
228
- {% else %}
229
- {% capture link_text %}"{{link.title}}: {{link.title}}"{% endcapture %}
230
- {% endif %}
231
-
232
- <li><a href="{{link.href|strip}}" {{target}}>{{icon}}{{link_text}}</a></li>
233
-
234
- {% endfor %}
235
- </ul>
236
- </div>
237
-
238
- {% comment %} END Collect SITE info
239
- ---------------------------------------------------------------------- {% endcomment %}
240
-
241
- {% comment %} Reset element variables
242
- ---------------------------------------------------------------------- {% endcomment %}
243
- {% assign enabled = nil %}
244
- {% assign type = nil %}
245
- {% assign title = nil %}
246
- {% assign type = nil %}
247
- {% assign links = nil %}
248
-
249
- {% endcase %}
250
- {% endif %}
251
-
252
- {% endfor %}
253
- {% endfor %}
254
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [End processing sidebar boxes] -->
255
- <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [End processing: sidebar] -->
256
-
257
- {% endcapture %}
258
-
259
- {{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
260
- {% assign cache = nil %}
261
-
@@ -1,59 +0,0 @@
1
- ---
2
- regenerate: false
3
- ---
4
-
5
- {% capture j1_cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/data/themes.json
10
- # The Liquid template themes.json is used by the Theme Switcher to locate
11
- # the CSS files to be loaded on a switch for a specific theme
12
- #
13
- # Product/Info:
14
- # https://jekyll.one
15
- #
16
- # Copyright (C) 2019 Juergen Adams
17
- #
18
- # J1 Template is licensed under the MIT License.
19
- # For details, see https://jekyll.one
20
- # -----------------------------------------------------------------------------
21
- # NOTE:
22
- # Be carefull change the Liquid code. If the code is changed, check the
23
- # interity of the JSON data created. Invalid JSON data will cause the
24
- # Javascript portion of the Theme Switcher to fail and no valid CSS will
25
- # be available to provide the needed styles to properly render your pages.
26
- # -----------------------------------------------------------------------------
27
- # Test data:
28
- # {{ liquid_var | debug }}
29
- # -----------------------------------------------------------------------------
30
- {% endcomment %}
31
-
32
- {% assign environment = site.environment %}
33
- {% assign asset_path = site.data.template_settings.asset_path %}
34
- {% assign custom_theme_config = site.data.template_settings.custom_theme %}
35
- {% assign custom_scss = custom_theme_config.custom_scss %}
36
- {% capture theme_path %}{{asset_path}}/modules/bs_theme_switcher/themes{% endcapture %}
37
-
38
- {% if environment == 'development' %}
39
- {
40
- "themes":
41
- [
42
- {"name": "Uno", "css": "{{asset_path}}/core/css/uno.css"},
43
- {"name": "Bootstrap", "css": "{{asset_path}}/core/css/bootstrap.css"}
44
- ]
45
- }
46
- {% else %}
47
- {
48
- "themes":
49
- [
50
- {"name": "Uno", "css": "{{asset_path}}/core/css/uno.min.css"},
51
- {"name": "Bootstrap", "css": "{{asset_path}}/core/css/bootstrap.min.css"}
52
- ]
53
- }
54
- {% endif %}
55
-
56
- {% endcapture %}
57
-
58
- {{ j1_cache | strip_empty_lines }}
59
- {% assign j1_cache = nil %}