elixir-toolkit-theme 1.6.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e166c0f23c8a0b714ce0b473d8a09c9e6c56dbd19c855ec1f0dba24dc46b0143
4
- data.tar.gz: 7d4e6d8072737b2875a3f759f936f11d1d103c0a34af45e4d972f0d6d22172a9
3
+ metadata.gz: 835140721cbcda81fe83a1ae4a85a1b049c459aebd069b3143fdbdb46673c0b6
4
+ data.tar.gz: eb472bbf8edc2ddb7926b70c6867484ee19c935dc3285c15c673be7b09201b73
5
5
  SHA512:
6
- metadata.gz: 6a5243c9e41f433914d44bb5a02546a3ce359a4dc2b17ffca5a5de66ccdd876f83252f4b56ddff72c8fcf6399c9e39d48e244516865f5b2ac39a6127483ff005
7
- data.tar.gz: 0e5b679f01dc4b43dda2f688fbdd7f31eed7598f7256aea56d8fca5849747c8bf018d631e4c28e1e83673079af8285e7ede3b47fa51989f94ec1019fd70e4717
6
+ metadata.gz: '0796770b120d052558c0cd2130c5d01de009a8ab5c6886b6562f46a4b430c7c7d8d9ed9a22c741151c90d503b3292b3af8463c7c1e195c5b2c6b3a50b0fefe84'
7
+ data.tar.gz: 774dd67da3fc8be7a5ddd7af6c6463aeae7e14077256df8891b34242880909b9b72e26685446618ac5283925c4429583e4ff6259725a69e00d832739b7161a7c
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 %}
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 %}
@@ -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
  }
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.1
4
+ version: 1.7.0
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-07 00:00:00.000000000 Z
11
+ date: 2022-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll