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 +4 -4
- data/README.md +1 -0
- data/_layouts/base.html +0 -9
- data/_sass/benjeto/css/app-box.scss +1 -0
- data/assets/js/share.js +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8ac7b9d6677cd6cc6c63951acf3cd0e38ecbd349002e2186a296ef81ba66623
|
4
|
+
data.tar.gz: 36d13d8a31b9147faa4bb8dbd3d08dcf717e9ead970d5ec6d09a5dcc2427f07e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: ',' %}
|
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.
|
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-
|
11
|
+
date: 2024-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|