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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cbd89f4b4bc3422da534c723a23cf3970a9dcdc508a4a9014c4369cf63a8c31
4
- data.tar.gz: aa0aebea8b0e13dbb73a91140b59d990d81edd353950247df17102d1d513a8ec
3
+ metadata.gz: 345337e58e5cd5987fa9d881b76b49c950d6e01de12dcef749166c9f4c74fdf8
4
+ data.tar.gz: c929d600a1a63b65d4d932c97cb2d77eb3f2d4d09883d7e9adc7631e4a55c3a5
5
5
  SHA512:
6
- metadata.gz: 120f5a137d43d4f936f311f0da970ebdcb6cba46e6d79312e375a308fe79e6492baf60f7b8e13a2cf4338e0202e3d6c2049a1dc46a10a86fba0364a765826a3d
7
- data.tar.gz: e0f7318bd819809d1cb5b96ec816eee68e8e23ea39505356bbfd87b8cda25cdc5ccd0087c79d2b1a8b7e8092ecb2c0ac4d877cebfa5ac2ae9960bc07c6233051
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: ',' %}
@@ -117,7 +117,7 @@ caption {
117
117
  blockquote:not(.tiktok-embed) {
118
118
  margin: 16px 0;
119
119
  padding: 16px 24px;
120
- background: var(--boxbg);
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(--boxbglight);
132
- border: 1px solid var(--border);
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);
@@ -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.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-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