benjeto-jekyll-theme 0.1.0 → 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: 3f88054a767861aba9d5d1f044582cdb3e96838105b634161620d586fe7d1948
4
- data.tar.gz: 2f4075c7cd9583ffd622d613887288ebb62b990dcecc00b1ba59a9e3a3b331d2
3
+ metadata.gz: f8ac7b9d6677cd6cc6c63951acf3cd0e38ecbd349002e2186a296ef81ba66623
4
+ data.tar.gz: 36d13d8a31b9147faa4bb8dbd3d08dcf717e9ead970d5ec6d09a5dcc2427f07e
5
5
  SHA512:
6
- metadata.gz: 727a82adef2381bd930c3d4435f9d6aeeaa8c241916e42f4c3292e54353f078ccaefaef6c587bf625bb840487acfd4af7b1752379623e9be5d06641224bea7a3
7
- data.tar.gz: 951741409c4145dd3ef86f8730dd39fc5e79b03cf1d8432119bf9d65af3fc7fa4118cec08cf6a2ec2c2b8f657f56f3c66f687700fe2e73b650ce059acb19428b
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
 
@@ -1,5 +1,7 @@
1
1
  <div class="app-box">
2
+ {%- if include.icon %}
2
3
  <img src="{{ include.icon | relative_url }}" class="app-icon" aria-hidden="true" alt="">
4
+ {%- endif %}
3
5
  <div class="app-info">
4
6
  <b>{{ include.title }}</b>
5
7
  {{ include.description }}
data/_includes/head.html CHANGED
@@ -6,7 +6,7 @@
6
6
  {%- capture title -%}{{ page.title }} - {{ site.title }}{% endcapture %}
7
7
  {%- elsif page.layout == "post" and page.title == "" -%}
8
8
  {%- capture title -%}{{ page.excerpt | strip_html }} - {{ site.title }}{% endcapture %}
9
- {%- elsif page.layout == "home" and page.custom_home == true and page.title -%}
9
+ {%- elsif page.layout == "home" and page.custom_home == true and page.title != "" -%}
10
10
  {%- capture title -%}{{ site.title }} | {{ page.title }}{% endcapture %}
11
11
  {%- elsif page.layout == "home" and page.pagination.category -%}
12
12
  {%- capture title -%}{{ site.title }} | {{ page.title | default: texts.categories[page.pagination.category] }}{% endcapture %}
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.0
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