benjeto-jekyll-theme 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/_includes/head.html +8 -6
- data/_layouts/base.html +9 -1
- data/_sass/benjeto/css/section-box.scss +1 -1
- data/assets/js/share.js +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f88054a767861aba9d5d1f044582cdb3e96838105b634161620d586fe7d1948
|
4
|
+
data.tar.gz: 2f4075c7cd9583ffd622d613887288ebb62b990dcecc00b1ba59a9e3a3b331d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 727a82adef2381bd930c3d4435f9d6aeeaa8c241916e42f4c3292e54353f078ccaefaef6c587bf625bb840487acfd4af7b1752379623e9be5d06641224bea7a3
|
7
|
+
data.tar.gz: 951741409c4145dd3ef86f8730dd39fc5e79b03cf1d8432119bf9d65af3fc7fa4118cec08cf6a2ec2c2b8f657f56f3c66f687700fe2e73b650ce059acb19428b
|
data/README.md
CHANGED
data/_includes/head.html
CHANGED
@@ -6,6 +6,8 @@
|
|
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 -%}
|
10
|
+
{%- capture title -%}{{ site.title }} | {{ page.title }}{% endcapture %}
|
9
11
|
{%- elsif page.layout == "home" and page.pagination.category -%}
|
10
12
|
{%- capture title -%}{{ site.title }} | {{ page.title | default: texts.categories[page.pagination.category] }}{% endcapture %}
|
11
13
|
{%- elsif page.layout == "home" and page.pagination.tag -%}
|
@@ -14,7 +16,7 @@
|
|
14
16
|
{%- assign title = site.title -%}
|
15
17
|
{%- endif -%}
|
16
18
|
{%- assign icon = page.icon | default: page.image | default: settings.head.siteicon | default: profile.icon -%}
|
17
|
-
{%- assign description = page.description | default: site.description | default: page.excerpt -%}
|
19
|
+
{%- assign description = page.description | default: settings.head.description | default: site.description | default: page.excerpt -%}
|
18
20
|
<head>
|
19
21
|
<meta charset="utf-8">
|
20
22
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
@@ -92,12 +94,12 @@
|
|
92
94
|
{% if site.default_lang != "nil" -%}
|
93
95
|
<link rel="alternate" hreflang="{{ site.default_lang }}" href="{{ site.url }}{{ page.permalink }}">
|
94
96
|
{% endif -%}
|
95
|
-
{% for lang in site.languages
|
96
|
-
{% if lang == site.default_lang
|
97
|
-
{% continue
|
98
|
-
{% endif
|
97
|
+
{% for lang in site.languages -%}
|
98
|
+
{% if lang == site.default_lang -%}
|
99
|
+
{% continue -%}
|
100
|
+
{% endif -%}
|
99
101
|
<link rel="alternate" hreflang="{{ lang }}" href="{{ site.url }}/{{ lang }}{{ page.permalink }}">
|
100
|
-
{% endfor
|
102
|
+
{% endfor -%}
|
101
103
|
{% endif -%}
|
102
104
|
|
103
105
|
{% include custom_head.html %}
|
data/_layouts/base.html
CHANGED
@@ -6,7 +6,15 @@
|
|
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
|
-
|
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 -%}
|
10
18
|
{%- else -%}
|
11
19
|
|
12
20
|
{% assign rtl_languages = "ar,arc,dv,fa,he,ks,nqo,ps,syr,ur,yi" | split: ',' %}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
div.section-box {
|
2
|
+
display: inline-block;
|
2
3
|
margin: 16px 0;
|
3
4
|
border: 1px solid var(--border);
|
4
5
|
border-radius: 8px;
|
@@ -19,7 +20,6 @@ div.section-box {
|
|
19
20
|
padding: 0;
|
20
21
|
margin: 0;
|
21
22
|
li {
|
22
|
-
flex-grow: 1;
|
23
23
|
padding: 0;
|
24
24
|
padding-inline-end: 12px;
|
25
25
|
border: none;
|
data/assets/js/share.js
CHANGED
@@ -9,7 +9,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
9
9
|
"{{ lang }}" : "{{ site.data[lang].texts.share }}",
|
10
10
|
{%- endif %}
|
11
11
|
{%- endfor %}
|
12
|
-
{{ site.default_lang }}: "{{ site.data.texts.share }}"
|
12
|
+
"{{ site.default_lang }}" : "{{ site.data.texts.share }}"
|
13
13
|
};
|
14
14
|
var copiedText = {
|
15
15
|
{%- for lang in site.languages %}
|
@@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
17
17
|
"{{ lang }}" : "{{ site.data[lang].texts.copied }}",
|
18
18
|
{%- endif %}
|
19
19
|
{%- endfor %}
|
20
|
-
{{ site.default_lang }}: "{{ site.data.texts.copied }}"
|
20
|
+
"{{ site.default_lang }}" : "{{ site.data.texts.copied }}"
|
21
21
|
};
|
22
22
|
{%- endif %}
|
23
23
|
const shareButtons = document.querySelectorAll('.shareBtn');
|