benjeto-jekyll-theme 0.1.1 → 0.1.3
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/base.scss +6 -3
- 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: 345337e58e5cd5987fa9d881b76b49c950d6e01de12dcef749166c9f4c74fdf8
|
4
|
+
data.tar.gz: c929d600a1a63b65d4d932c97cb2d77eb3f2d4d09883d7e9adc7631e4a55c3a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a88c458b29ce9f72a35c0201135972aa23a9e968964c95ff89cb26263ec7b91410eddb59c10ac6fe9fd331c4aadaf24ac3e609019b24b5f11c2aae74a51e9bc
|
7
|
+
data.tar.gz: 24976b5e01f93887e7ae1281a826a75716dbac0ef48f185234cb89125a870d068bfd368c17bf5194de7ec01662193ccaec2f84228334827d4ed8edb42372cad2
|
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/_sass/benjeto/base.scss
CHANGED
@@ -117,7 +117,7 @@ caption {
|
|
117
117
|
blockquote:not(.tiktok-embed) {
|
118
118
|
margin: 16px 0;
|
119
119
|
padding: 16px 24px;
|
120
|
-
background: var(--
|
120
|
+
background: var(--boxbglight);
|
121
121
|
border-left: 4px solid var(--border);
|
122
122
|
p {
|
123
123
|
margin: 4px 0;
|
@@ -128,13 +128,15 @@ pre, code, code * {
|
|
128
128
|
font-family: monospace, system-ui, sans-serif;
|
129
129
|
}
|
130
130
|
code {
|
131
|
-
background: var(--
|
132
|
-
border: 1px solid var(--
|
131
|
+
background: var(--boxbg);
|
132
|
+
border: 1px solid var(--boxbg);
|
133
133
|
border-radius: 4px;
|
134
134
|
padding: 1px 4px;
|
135
135
|
margin: 0 2px;
|
136
136
|
}
|
137
137
|
pre code {
|
138
|
+
background: var(--boxbglight);
|
139
|
+
border-color: var(--boxbglight);
|
138
140
|
direction: ltr;
|
139
141
|
display: block;
|
140
142
|
border-radius: 6px;
|
@@ -625,6 +627,7 @@ ul.lang-select {
|
|
625
627
|
@media (prefers-contrast: more) {
|
626
628
|
code, pre code {
|
627
629
|
background: var(--bg);
|
630
|
+
border-color: var(--border);
|
628
631
|
}
|
629
632
|
article.post {
|
630
633
|
border-color: var(--boxbg);
|
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.3
|
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
|