elixir-toolkit-theme 1.6.0 → 1.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a03f8e8c39849e2eeb532c925fc6164b49a587acdf7d14915d5e69bb3ad29ad8
4
- data.tar.gz: 4b15ef49e8a41bac54a0a4a4954e18d818d4261c26de64ef89e6438881b6c58a
3
+ metadata.gz: 0443c3da3491280579984c47b3d3fe956b63fc8553f9741a88c1fdc7db2e9be0
4
+ data.tar.gz: 282c28e0ceda276afe5af37036204deca4c69a38239ff294b962fdeddc2b9a34
5
5
  SHA512:
6
- metadata.gz: 6992127e460757e6917a1f5108a97cf3ebd54e8c16d271befbd5c80bef248ad96a1819d7a634ce5fe1a9f4f5adb384208e0fb502cd43f11cc2da0a66a0ee1763
7
- data.tar.gz: 5943e2ab7decd081e45a730eb36f6cdfabc5bfffb9af8c46c9c205f5fc3ed6e6be0b287d35ad1210fc4d048e196e1c47b315f5dd69742722b8d41db123205757
6
+ metadata.gz: a238b0de46e0c5a701ee66cb8550d138fb1ee4098edf22a70c31c3e5c872a4bd7a98c5f7d3e18d74e55a83a2fc512adea191e725e64626ca0fbcb5b74dbe7a98
7
+ data.tar.gz: 619bcf9d9df1fcf08f647d10d4847c815a35c9ded6c08f9456c62816880d00eb0a3647ccaa4d8d91e3960eca0438e6f163c6492e923865200177f02ecc7026bd
@@ -25,6 +25,6 @@
25
25
  </div>
26
26
  <script>
27
27
  $(function () {
28
- show_{ { include.event_type } } s();
28
+ show_{{ include.event_type }}s();
29
29
  });
30
30
  </script>
data/_includes/head.html CHANGED
@@ -16,8 +16,8 @@
16
16
  <meta property="og:description" content="{{ site.description }}" />
17
17
  <meta property="og:image" content="//{{site.github.url | remove: 'https://' | remove: 'http://'}}/assets/img/apple-touch-icon.png" />
18
18
  <meta name="apple-mobile-web-app-title" content="{{site.title}}">
19
- <meta name="msapplication-TileColor" content="#{{site.theme_variables.theme_color}}">
20
- <meta name="theme-color" content="#{{site.theme_variables.theme_color}}">
19
+ <meta name="msapplication-TileColor" content="#{{site.theme_variables.theme_color | default: 0d6efd }}">
20
+ <meta name="theme-color" content="#{{site.theme_variables.theme_color | default: 0d6efd }}">
21
21
  {%- if page.search_exclude == true and page.url != "/index.html" %}
22
22
  <meta name="robots" content="noindex" />
23
23
  {%- endif %}
@@ -74,7 +74,7 @@
74
74
  <link rel="icon" type="image/png" sizes="32x32" href="{{ 'assets/img/favicon-32x32.png' | relative_url }}">
75
75
  <link rel="icon" type="image/png" sizes="16x16" href="{{ 'assets/img/favicon-16x16.png' | relative_url }}">
76
76
  <link rel="manifest" href="{{ 'assets/img/site.webmanifest' | relative_url }}">
77
- <link rel="mask-icon" href="{{ 'assets/img/safari-pinned-tab.svg' | relative_url }}" color="#{{site.theme_variables.theme_color}}">
77
+ <link rel="mask-icon" href="{{ 'assets/img/safari-pinned-tab.svg' | relative_url }}" color="#{{site.theme_variables.theme_color | default: 0d6efd }}">
78
78
  <link rel="shortcut icon" href="{{ 'assets/img/favicon.ico' | relative_url }}">
79
79
  <!-- Schema.org metadata -->
80
80
  {% include schemasorg.html %}
@@ -10,20 +10,18 @@
10
10
  {{ page.sidebar | capitalize | replace: "_", " " }} menu <i title="navbar-toggler" class="fa fa-bars ms-2"></i>
11
11
  </button>
12
12
  <nav class="collapse" id="side-nav" aria-label="Side navigation">
13
- <ul id="menu" class="list-unstyled mb-4 mb-lg-0">
14
- {%- if sidebar.title or sidebar.version %}
15
- {%- if sidebar.title_url and page.url == sidebar.title_url %}
16
- <li class="sidebar-title active">
17
- {%- else %}
18
- <li class="sidebar-title">
19
- {%- endif %}
20
- {%- if sidebar.title_url %}
21
- <a class="btn active hover-primary text-start d-block mb-1" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
22
- {%- else %}
23
- <a class="btn active hover-primary text-start d-block mb-1 disabled" aria-disabled="true">{{sidebar.title}} {{sidebar.version}}</a>
24
- {%- endif %}
25
- </li>
26
- {%- endif %}
13
+ {%- if sidebar.title or sidebar.version %}
14
+ {%- if sidebar.title_url %}
15
+ {%- if page.url == sidebar.title_url %}
16
+ <a class="btn hover-primary text-start d-block mb-1 sidebar-title active" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
17
+ {%- else %}
18
+ <a class="btn hover-primary text-start d-block mb-1 sidebar-title" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
19
+ {%- endif %}
20
+ {%- else %}
21
+ <a class="btn text-start d-block mb-1 sidebar-title disabled" aria-disabled="true">{{sidebar.title}} {{sidebar.version}}</a>
22
+ {%- endif %}
23
+ {%- endif %}
24
+ <ul class="list-unstyled mb-4 mb-lg-0">
27
25
  {%- for folder in sidebar.subitems %}
28
26
  {%- if page.url == folder.url %}
29
27
  <li class="active{%- if folder.hr %} mt-3{% endif %}">
data/_layouts/page.html CHANGED
@@ -9,14 +9,23 @@ layout: default
9
9
  {%- else %}
10
10
  <h1>{{ page.title }}
11
11
  {%- endif %}
12
+ {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.edit_me == nil or site.theme_variables.github_buttons.open_issue == nil or site.theme_variables.github_buttons.history == nil %}
12
13
  <div class="btn-group">
14
+ {%- if site.theme_variables.github_buttons.edit_me or site.theme_variables.github_buttons.edit_me == nil %}
13
15
  {%- if page.custom-editme %}
14
16
  <a role="button" data-bs-toggle="tooltip" title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.custom-editme}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
15
17
  {%- else %}
16
18
  <a role="button" data-bs-toggle="tooltip" title="Propose changes to this page on {{site.theme_variables.git_host | default: 'GitHub' }}" href="{{site.github.repository_url}}/blob/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-pencil-alt"></i></a>
17
19
  {%- endif %}
20
+ {%- endif %}
21
+ {%- if site.theme_variables.github_buttons.open_issue or site.theme_variables.github_buttons.open_issue == nil %}
22
+ <a role="button" data-bs-toggle="tooltip" title="Report an issue" href="{{site.github.repository_url}}/issues/new?title={{'Issue on page: ' | url_encode }}{{page.title | url_encode }}&amp;body={{'I would like to report an issue on the ' | url_encode }}{{page.title | url_encode }}{{' page at `'| url_encode }}{{page.url | url_encode }}{{'`. Description of the issue:' | url_encode }}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-exclamation"></i></a>
23
+ {%- endif %}
24
+ {%- if site.theme_variables.github_buttons.history or site.theme_variables.github_buttons.history == nil %}
18
25
  <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page" href="{{site.github.repository_url}}/commits/{{site.github.source.branch}}/{{page.path}}" class="btn btn-sm hover-primary text-primary"><i class="fas fa-history"></i></a>
26
+ {%- endif %}
19
27
  </div>
28
+ {%- endif %}
20
29
  </h1>
21
30
  {%- endif %}
22
31
  {%- if page.summary %}
data/assets/css/main.scss CHANGED
@@ -271,7 +271,7 @@ header .navbar {
271
271
  background-color: $sidebar-bg-active;
272
272
  }
273
273
 
274
- ul#menu {
274
+ #side-nav>ul {
275
275
  > li:not(.sidebar-title) > a {
276
276
  background-color: $sidebar-bg;
277
277
  color: $sidebar-color;
@@ -1,3 +1,7 @@
1
+ ---
2
+ layout: none
3
+ permalink: assets/img/site.webmanifest
4
+ ---
1
5
  {
2
6
  "name": "",
3
7
  "short_name": "",
@@ -13,7 +17,7 @@
13
17
  "type": "image/png"
14
18
  }
15
19
  ],
16
- "theme_color": "#ffffff",
20
+ "theme_color": "#{{ site.theme_variables.theme_color | default: '0d6efd' }}",
17
21
  "background_color": "#ffffff",
18
22
  "display": "standalone"
19
23
  }
data/assets/js/main.js CHANGED
@@ -31,7 +31,7 @@ $(document).ready(function external_new_window() {
31
31
  */
32
32
  $(document).ready(function () {
33
33
  // Initialize navgoco with default options
34
- $("#menu").navgoco({
34
+ $("#side-nav>ul").navgoco({
35
35
  caretHtml: '',
36
36
  accordion: true,
37
37
  openClass: 'active', // open
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-04 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll