benjeto-jekyll-theme 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/_includes/appbox.html +4 -0
- data/_includes/head.html +4 -0
- data/_includes/lang-select.html +4 -3
- data/_includes/postbox-feed.html +1 -1
- data/_layouts/default.html +1 -1
- data/_layouts/post.html +1 -1
- data/_sass/benjeto/base.scss +10 -4
- data/_sass/benjeto/css/app-box.scss +1 -1
- metadata +5 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77c4cf9a9ced53e2589bd5d2d829ce129b2d108778cc4313f3fd6b852a6ef06e
|
|
4
|
+
data.tar.gz: e1957eb102a9bda74a2cbf3040e0149f3aa0aa8456ff4a2edf3003c6260d1899
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe9856722240baf442035b6e1546b58f9bf821c61e5f52b8c4e5d04951c02187a9b6955cb23ea8f3727985dd8b482b3f31450491f9f2a912991753b311dc4fca
|
|
7
|
+
data.tar.gz: de63b3cbfaf47b23b893358677603759ccbe1b0d7afc21689670541bfa60ecf188cd1d34306b39dc1657f1661c83ccba5954e1c827e1bc97606572896b767b4a
|
data/README.md
CHANGED
|
@@ -8,7 +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.
|
|
11
|
+
[Sample website is here](https://benjeto.tsg0o0.com).
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
data/_includes/appbox.html
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
<img src="{{ include.icon | relative_url }}" class="app-icon" aria-hidden="true" alt="">
|
|
4
4
|
{%- endif %}
|
|
5
5
|
<div class="app-info">
|
|
6
|
+
{%- if include.type == "title" %}
|
|
7
|
+
<h1>{{ include.title }}</h1>
|
|
8
|
+
{%- else %}
|
|
6
9
|
<b>{{ include.title }}</b>
|
|
10
|
+
{%- endif %}
|
|
7
11
|
{{ include.description }}
|
|
8
12
|
</div>
|
|
9
13
|
</div>
|
data/_includes/head.html
CHANGED
|
@@ -78,6 +78,10 @@
|
|
|
78
78
|
<meta name="robots" content="noindex">
|
|
79
79
|
{% endif -%}
|
|
80
80
|
|
|
81
|
+
{% if settings.head.canonical -%}
|
|
82
|
+
<link rel="canonical" href="{{ settings.head.canonical }}{{ page.url }}">
|
|
83
|
+
{% endif -%}
|
|
84
|
+
|
|
81
85
|
{% if page.itunes_app -%}
|
|
82
86
|
<meta name="apple-itunes-app" content="app-id={{ page.itunes_app }}">
|
|
83
87
|
{% endif -%}
|
data/_includes/lang-select.html
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{%- assign texts = site.data.texts %}
|
|
2
2
|
{% assign rtl_languages = "ar,arc,dv,fa,he,ks,nqo,ps,syr,ur,yi" | split: ',' %}
|
|
3
|
-
{
|
|
3
|
+
{% assign languages = page.lang-exclusive | default: site.languages %}
|
|
4
|
+
{%- if languages.size > 1 or page.lang-exclusive == nil %}
|
|
4
5
|
<ul class="lang-select">
|
|
5
|
-
{%- for lang in
|
|
6
|
-
{%- if
|
|
6
|
+
{%- for lang in languages %}
|
|
7
|
+
{%- if languages contains lang or languages == nil %}
|
|
7
8
|
<li><a {% static_href %}href="
|
|
8
9
|
{%- if lang == site.default_lang -%}
|
|
9
10
|
{{ page.url | relative_url | replace: 'index.html', '' }}
|
data/_includes/postbox-feed.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<article class="feed-post pagebox"{% if post.lang %} lang="{{ post.lang }}"{% endif %}>
|
|
6
6
|
<div class="post-excerpt">
|
|
7
7
|
<a href="{{ post.url | relative_url }}" class="post-link post-lighter">
|
|
8
|
-
{%- if post.title != "" %}
|
|
8
|
+
{%- if post.title != "" and post.hide_title != true %}
|
|
9
9
|
<h2>{{ post.title | escape }}</h2>
|
|
10
10
|
{%- endif %}
|
|
11
11
|
{%- if post.title == "" or settings.home.show_excerpts == true %}
|
data/_layouts/default.html
CHANGED
data/_layouts/post.html
CHANGED
|
@@ -5,7 +5,7 @@ layout: base
|
|
|
5
5
|
{%- assign settings = site.data.settings -%}
|
|
6
6
|
<header class="post">
|
|
7
7
|
{%- include miniprof.html type="nav" -%}
|
|
8
|
-
{%- if page.title != "" -%}
|
|
8
|
+
{%- if page.title != "" and page.hide_title != true -%}
|
|
9
9
|
<h1>{{ page.title }}</h1>
|
|
10
10
|
{%- endif -%}
|
|
11
11
|
<div class="meta">
|
data/_sass/benjeto/base.scss
CHANGED
|
@@ -38,7 +38,7 @@ article.post {
|
|
|
38
38
|
h1, h2, h3 {
|
|
39
39
|
margin: 20px 0 16px;
|
|
40
40
|
color: var(--head);
|
|
41
|
-
line-height: 1.
|
|
41
|
+
line-height: 1.5;
|
|
42
42
|
font-weight: 600;
|
|
43
43
|
}
|
|
44
44
|
h2 {
|
|
@@ -131,8 +131,8 @@ code {
|
|
|
131
131
|
margin: 0 2px;
|
|
132
132
|
}
|
|
133
133
|
pre code {
|
|
134
|
-
background: var(--
|
|
135
|
-
border-color: var(--
|
|
134
|
+
background: var(--page);
|
|
135
|
+
border-color: var(--page);
|
|
136
136
|
direction: ltr;
|
|
137
137
|
display: block;
|
|
138
138
|
border-radius: 6px;
|
|
@@ -140,6 +140,10 @@ pre code {
|
|
|
140
140
|
overflow-x: auto;
|
|
141
141
|
border-width: 1.5px;
|
|
142
142
|
}
|
|
143
|
+
.pagebox pre code {
|
|
144
|
+
background: var(--boxbglight);
|
|
145
|
+
border-color: var(--boxbglight);
|
|
146
|
+
}
|
|
143
147
|
|
|
144
148
|
details {
|
|
145
149
|
margin: 16px 0;
|
|
@@ -330,6 +334,7 @@ div.header {
|
|
|
330
334
|
aspect-ratio: 5 / 1;
|
|
331
335
|
margin-bottom: -8px;
|
|
332
336
|
background: var(--boxbg);
|
|
337
|
+
border-radius: 0 0 8px 8px;
|
|
333
338
|
img {
|
|
334
339
|
vertical-align: bottom;
|
|
335
340
|
width: 100%;
|
|
@@ -396,6 +401,7 @@ header.home {
|
|
|
396
401
|
h1 {
|
|
397
402
|
display: inline-block;
|
|
398
403
|
font-size: 1.8em;
|
|
404
|
+
line-height: 1.2;
|
|
399
405
|
margin: 0;
|
|
400
406
|
}
|
|
401
407
|
p.bio {
|
|
@@ -617,7 +623,7 @@ ul.lang-select {
|
|
|
617
623
|
}
|
|
618
624
|
|
|
619
625
|
@media (prefers-contrast: more) {
|
|
620
|
-
code, pre code {
|
|
626
|
+
code, pre code, .pagebox pre code {
|
|
621
627
|
background: var(--bg);
|
|
622
628
|
border-color: var(--border);
|
|
623
629
|
}
|
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.7
|
|
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-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -39,33 +39,19 @@ dependencies:
|
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0.17'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: jekyll-paginate
|
|
42
|
+
name: jekyll-paginate
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
47
|
+
version: '1.1'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: jekyll-polyglot
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 1.8.0
|
|
62
|
-
type: :runtime
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 1.8.0
|
|
54
|
+
version: '1.1'
|
|
69
55
|
- !ruby/object:Gem::Dependency
|
|
70
56
|
name: bundler
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|