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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79afcabc59cc1578e48a1fac4529fe9327b40504821962e244220e162a78910f
4
- data.tar.gz: bb8f3d9d09872f7e75931130b1d4316eb6862337dad505d9f874223604de53c6
3
+ metadata.gz: 77c4cf9a9ced53e2589bd5d2d829ce129b2d108778cc4313f3fd6b852a6ef06e
4
+ data.tar.gz: e1957eb102a9bda74a2cbf3040e0149f3aa0aa8456ff4a2edf3003c6260d1899
5
5
  SHA512:
6
- metadata.gz: 1431f4b5656e90544251583c6b1b2d6c09edba80e0580815af309561678371be2dbc994a0a4257cc977acf3f5d372f761107e486fae20df1c8d3c71d514338fd
7
- data.tar.gz: 843f3afe5bb3b6988855004cd3d725aa244ae5e9b4675b01ab8a8bfa91b802dd27115561ba06ecdc0f68c5d05f9d99141a87eb448bf19f330996d14550e75fae
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.pages.dev).
11
+ [Sample website is here](https://benjeto.tsg0o0.com).
12
12
 
13
13
  ## Installation
14
14
 
@@ -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 -%}
@@ -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
- {%- if page.lang-exclusive.size > 1 or page.lang-exclusive == nil %}
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 site.languages %}
6
- {%- if page.lang-exclusive contains lang or page.lang-exclusive == nil %}
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', '' }}
@@ -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 %}
@@ -3,7 +3,7 @@ layout: base
3
3
  ---
4
4
  <header class="post">
5
5
  {%- include miniprof.html type="nav" -%}
6
- {%- if pagetitle != "" -%}
6
+ {%- if page.title != "" and page.hide_title != true -%}
7
7
  <h1>{{ page.title }}</h1>
8
8
  {%- endif -%}
9
9
  </header>
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">
@@ -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.2;
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(--boxbglight);
135
- border-color: var(--boxbglight);
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
  }
@@ -17,7 +17,7 @@ div.app-info {
17
17
  min-width:166px;
18
18
  line-height: 1.2;
19
19
  margin-bottom: 4px;
20
- h2, h3, b {
20
+ h1, h2, h3, b {
21
21
  display: block;
22
22
  line-height: 1.2;
23
23
  font-size: 1.5em;
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.6
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-13 00:00:00.000000000 Z
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-v2
42
+ name: jekyll-paginate
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0
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: 3.0.0
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