benjeto-jekyll-theme 0.1.1 → 0.1.2

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: 0cbd89f4b4bc3422da534c723a23cf3970a9dcdc508a4a9014c4369cf63a8c31
4
- data.tar.gz: aa0aebea8b0e13dbb73a91140b59d990d81edd353950247df17102d1d513a8ec
3
+ metadata.gz: f8ac7b9d6677cd6cc6c63951acf3cd0e38ecbd349002e2186a296ef81ba66623
4
+ data.tar.gz: 36d13d8a31b9147faa4bb8dbd3d08dcf717e9ead970d5ec6d09a5dcc2427f07e
5
5
  SHA512:
6
- metadata.gz: 120f5a137d43d4f936f311f0da970ebdcb6cba46e6d79312e375a308fe79e6492baf60f7b8e13a2cf4338e0202e3d6c2049a1dc46a10a86fba0364a765826a3d
7
- data.tar.gz: e0f7318bd819809d1cb5b96ec816eee68e8e23ea39505356bbfd87b8cda25cdc5ccd0087c79d2b1a8b7e8092ecb2c0ac4d877cebfa5ac2ae9960bc07c6233051
6
+ metadata.gz: 28a85641a1adec9697b57c05ca955fd844c917cd9be6337a44f02ff734e0cb5e9714b467498b8aa5b60c0b03afce9719c28c3f69ee1c451c9a6b8a95fcb1f8bd
7
+ data.tar.gz: 353fff5fe58ecb20be5e08d8e05f8a3f040e3d55daad40f18f35a67efa6cb154c87828326071c4ea73d7b01308d3b1bad2dc0abdb6b4e31d3adf4713358ce51d
data/README.md CHANGED
@@ -8,6 +8,7 @@ This theme is perfect for sharing short posts or updates as well as long article
8
8
  - Supports multilingual functionality with [jekyll-polyglot](https://github.com/untra/polyglot), including RTL.
9
9
  - Compatible with [jekyll-paginate](https://github.com/jekyll/jekyll-paginate) and [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2).
10
10
 
11
+ [Sample website is here](https://benjeto.pages.dev).
11
12
 
12
13
  ## Installation
13
14
 
data/_layouts/base.html CHANGED
@@ -6,15 +6,6 @@
6
6
  <noscript>
7
7
  <meta http-equiv="refresh" content="0;url={{ site.url }}/{{ site.lang | default: site.languages[0] }}{{ page.url | relative_url | replace: 'index.html', '' }}">
8
8
  </noscript>
9
- {% if site.default_lang != "nil" -%}
10
- <link rel="alternate" hreflang="{{ site.default_lang }}" href="{{ site.url }}{{ page.permalink }}">
11
- {% endif -%}
12
- {% for lang in site.languages -%}
13
- {% if lang == site.default_lang -%}
14
- {% continue -%}
15
- {% endif -%}
16
- <link rel="alternate" hreflang="{{ lang }}" href="{{ site.url }}/{{ lang }}{{ page.permalink }}">
17
- {% endfor -%}
18
9
  {%- else -%}
19
10
 
20
11
  {% assign rtl_languages = "ar,arc,dv,fa,he,ks,nqo,ps,syr,ur,yi" | split: ',' %}
@@ -16,6 +16,7 @@ div.app-info {
16
16
  width:calc(100% - 116px);
17
17
  min-width:166px;
18
18
  line-height: 1.2;
19
+ margin-bottom: 4px;
19
20
  h2, h3, b {
20
21
  display: block;
21
22
  line-height: 1.2;
data/assets/js/share.js CHANGED
@@ -25,9 +25,9 @@ document.addEventListener('DOMContentLoaded', function () {
25
25
  shareButtons.forEach(button => {
26
26
  const img = button.querySelector('img');
27
27
  const shareMsg = button.querySelector('.shareMsg');
28
- const url = window.location.protocol + window.location.host + button.getAttribute('data-url');
29
28
 
30
29
  if (navigator.share) {
30
+ const url = button.getAttribute('data-url');
31
31
  button.style.display = 'inline-block';
32
32
  img.src = '{{ "/assets/icon/share.svg" | relative_url }}';
33
33
 
@@ -58,6 +58,7 @@ document.addEventListener('DOMContentLoaded', function () {
58
58
  }
59
59
  });
60
60
  } else {
61
+ const url = window.location.protocol + "//" + window.location.host + button.getAttribute('data-url');
61
62
  button.style.display = 'inline-block';
62
63
 
63
64
  button.addEventListener('click', function () {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benjeto-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cizzuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-06 00:00:00.000000000 Z
11
+ date: 2024-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll