benjeto-jekyll-theme 0.1.5 → 0.1.6

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: 39604a7910dd5e0f815291647d0cba1b1bb2e8d4b802c27e17a87684b77f7f11
4
- data.tar.gz: 17c1143a2bd667f75afb0bcf763bef38a50fbb54c7cb9974bf8e995bd6dcdee7
3
+ metadata.gz: 79afcabc59cc1578e48a1fac4529fe9327b40504821962e244220e162a78910f
4
+ data.tar.gz: bb8f3d9d09872f7e75931130b1d4316eb6862337dad505d9f874223604de53c6
5
5
  SHA512:
6
- metadata.gz: 5dbb8e8f4ffb9fa78ea0997980265664f034ca173b5ad2d3a23865b158b81d2e87ff9e5212b05650dd3b2743793e9a9254dbf8cca8a15aacc09b2b93d2eeb9e1
7
- data.tar.gz: baac1d523a117e9e327a9aeff8036a4e928e6b8a24585f237a114c9fb396299ef23918bce21aebea2fcefffe3528f031c629226a2a9c8d91e73fc9158cc5941d
6
+ metadata.gz: 1431f4b5656e90544251583c6b1b2d6c09edba80e0580815af309561678371be2dbc994a0a4257cc977acf3f5d372f761107e486fae20df1c8d3c71d514338fd
7
+ data.tar.gz: 843f3afe5bb3b6988855004cd3d725aa244ae5e9b4675b01ab8a8bfa91b802dd27115561ba06ecdc0f68c5d05f9d99141a87eb448bf19f330996d14550e75fae
@@ -14,7 +14,7 @@
14
14
  {%- if settings.copyright %}
15
15
  <p class="copy">{{ settings.copyright }}</p>
16
16
  {%- endif %}
17
- {%- if site.languages.size > 1 and site.plugins contains "jekyll-polyglot" %}
17
+ {%- if site.languages.size > 1 and site.plugins contains "jekyll-polyglot" and page.nolangs != true %}
18
18
  {%- include lang-select.html -%}
19
19
  {%- endif %}
20
20
  </div>
data/_includes/head.html CHANGED
@@ -91,7 +91,7 @@
91
91
  {% endif -%}
92
92
 
93
93
  {% if site.languages -%}
94
- {% if site.default_lang != "nil" -%}
94
+ {% if site.default_lang != "no-default" -%}
95
95
  <link rel="alternate" hreflang="{{ site.default_lang }}" href="{{ site.url }}{{ page.permalink }}">
96
96
  {% endif -%}
97
97
  {% for lang in site.languages -%}
data/_includes/menu.html CHANGED
@@ -8,7 +8,7 @@
8
8
  {%- if profile.tip %}
9
9
  {%- if profile.tip.size > 1 %}
10
10
  {%- assign needjs = true %}
11
- <noscript>
11
+ <noscript class="nosc">
12
12
  <a class="menu-btn menues" href="{{ profile.tip[0].url }}" title="{{ texts.tip_menu }}">
13
13
  <img class="icon" src="{{ "/assets/icon/love.svg" | relative_url }}" alt="{{ texts.tip }}">
14
14
  </a>
@@ -38,7 +38,7 @@
38
38
  {%- if profile.message %}
39
39
  {%- if profile.message.size > 1 %}
40
40
  {%- assign needjs = true %}
41
- <noscript>
41
+ <noscript class="nosc">
42
42
  <a class="menu-btn menues" href="{{ profile.message[0].url }}" title="{{ texts.message_menu }}">
43
43
  <img class="icon" src="{{ "/assets/icon/message.svg" | relative_url }}" alt="{{ texts.message }}">
44
44
  </a>
@@ -70,7 +70,7 @@
70
70
  {%- assign subscribe_list = profile.subscribe | default: settings.home.tabs %}
71
71
  {%- if subscribe_list.size > 1 %}
72
72
  {%- assign needjs = true %}
73
- <noscript>
73
+ <noscript class="nosc">
74
74
  <a class="menu-btn subscribe menues" href="{{ subscribe_list[0].feed | relative_url }}" title="{{ texts.subscribe_menu }}">{{ texts.subscribe }}</a>
75
75
  </noscript>
76
76
  <button id="btn" class="menu-btn subscribe menues" data-menu="menu-subscribe" title="{{ texts.subscribe_menu }}" aria-haspopup="menu">{{ texts.subscribe }}</button>
@@ -12,7 +12,7 @@
12
12
  </a>
13
13
  <div class="buttonline">
14
14
  {%- if page.layout == "post" and type == "nav" and settings.post.share_button == true %}
15
- <button class="shareBtn" id="shareButton" data-title="{{ page.title | default: page.excerpt | strip_html }}" data-url="{{ page.url }}" role="button" title="{{ texts.share }}">
15
+ <button class="shareBtn" id="shareButton" data-title="{{ page.title | default: page.excerpt | strip_html }}" data-url="$here" role="button" title="{{ texts.share }}">
16
16
  <span class="shareMsg"></span>
17
17
  <img class="icon" src="{{ "/assets/icon/clip.svg" | relative_url }}" alt="{{ texts.copy }}">
18
18
  </button>
@@ -61,7 +61,6 @@ hgroup {
61
61
 
62
62
  a {
63
63
  color: var(--link);
64
- transition: color 0.1s;
65
64
  text-decoration: none;
66
65
  &:hover, &:focus {
67
66
  color: var(--linkhover);
@@ -197,13 +196,14 @@ video {
197
196
  border-radius: 6px;
198
197
  transition: filter 0.2s;
199
198
  .icon {
200
- width: 24px;
199
+ width: auto;
200
+ max-height: 24px;
201
201
  margin-bottom: 1px;
202
202
  }
203
203
  &:has(.icon) {
204
204
  padding: 4px;
205
205
  }
206
- &:hover, &:focus {
206
+ &:hover {
207
207
  filter: brightness(0.9);
208
208
  text-decoration: none;
209
209
  }
@@ -211,9 +211,6 @@ video {
211
211
  background: var(--link);
212
212
  color: var(--bg);
213
213
  border: 1px solid var(--link);
214
- &:hover, &:focus {
215
- filter: brightness(0.8);
216
- }
217
214
  }
218
215
  &#btn {
219
216
  display: none;
@@ -347,19 +344,14 @@ header.home {
347
344
  display: flex;
348
345
  flex-wrap: wrap;
349
346
  list-style: none;
350
- margin: 4px 0 0;
347
+ margin: 8px 0 0;
351
348
  padding: 0 4px;
352
349
  li {
353
350
  margin: 4px;
354
351
  a {
355
- background: var(--boxbglight);
356
352
  border: 1px solid var(--border);
357
353
  border-radius: 4px;
358
354
  padding: 4px 6px;
359
- transition: filter 0.15s;
360
- &:hover, &:focus {
361
- filter: brightness(0.9);
362
- }
363
355
  }
364
356
  }
365
357
  }
@@ -373,6 +365,9 @@ header.home {
373
365
  section.sidebutton {
374
366
  display: flex;
375
367
  flex-wrap: wrap;
368
+ .nosc {
369
+ display: flex;
370
+ }
376
371
  }
377
372
  }
378
373
  a.proficon {
data/assets/js/share.js CHANGED
@@ -27,7 +27,6 @@ document.addEventListener('DOMContentLoaded', function () {
27
27
  const shareMsg = button.querySelector('.shareMsg');
28
28
 
29
29
  if (navigator.share) {
30
- const url = button.getAttribute('data-url');
31
30
  button.style.display = 'inline-block';
32
31
  img.src = '{{ "/assets/icon/share.svg" | relative_url }}';
33
32
 
@@ -47,25 +46,37 @@ document.addEventListener('DOMContentLoaded', function () {
47
46
  event.stopPropagation();
48
47
 
49
48
  const title = button.getAttribute('data-title');
49
+ const url = button.getAttribute('data-url');
50
+ if (url == "$here") {
51
+ shareurl = window.location.href;
52
+ } else {
53
+ shareurl = "{{ site.url }}" + url;
54
+ }
50
55
 
51
56
  try {
52
57
  await navigator.share({
53
58
  title: title,
54
- url: url
59
+ url: shareurl
55
60
  });
56
61
  } catch (error) {
57
62
  console.error('Error sharing:', error);
58
63
  }
59
64
  });
60
65
  } else {
61
- const url = window.location.protocol + "//" + window.location.host + button.getAttribute('data-url');
62
66
  button.style.display = 'inline-block';
63
67
 
64
68
  button.addEventListener('click', function () {
65
69
  event.preventDefault();
66
70
  event.stopPropagation();
67
71
 
68
- navigator.clipboard.writeText(url).then(() => {
72
+ const url = button.getAttribute('data-url');
73
+ if (url == "$here") {
74
+ shareurl = window.location.href;
75
+ } else {
76
+ shareurl = "{{ site.url }}" + url;
77
+ }
78
+
79
+ navigator.clipboard.writeText(shareurl).then(() => {
69
80
  button.classList.add('disabled');
70
81
 
71
82
  {%- if site.languages.size > 1 and site.plugins contains "jekyll-polyglot" %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benjeto-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cizzuk