benjeto-jekyll-theme 0.1.7 → 0.2.0

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: 77c4cf9a9ced53e2589bd5d2d829ce129b2d108778cc4313f3fd6b852a6ef06e
4
- data.tar.gz: e1957eb102a9bda74a2cbf3040e0149f3aa0aa8456ff4a2edf3003c6260d1899
3
+ metadata.gz: 5a9ed02d1bd33721f7c910780161220bf6cef9625c043c1f22dd459637067f82
4
+ data.tar.gz: 51600f835363b0d43d1b2ab99cb837179781af46c5109162b850043494791a82
5
5
  SHA512:
6
- metadata.gz: fe9856722240baf442035b6e1546b58f9bf821c61e5f52b8c4e5d04951c02187a9b6955cb23ea8f3727985dd8b482b3f31450491f9f2a912991753b311dc4fca
7
- data.tar.gz: de63b3cbfaf47b23b893358677603759ccbe1b0d7afc21689670541bfa60ecf188cd1d34306b39dc1657f1661c83ccba5954e1c827e1bc97606572896b767b4a
6
+ metadata.gz: 5f93df93718acdba45617d26d97121609f86049938f284da1aaafa69f14de10a60c4c124c2b1dd5ccd397f31cffaf470474fcd6f1a00096ae650f646390f2e83
7
+ data.tar.gz: 634b1b97912f566161fa8888e7a405a13485b27a03bf733ff3094c90f8e7a341e678d47f34bdde81d6d82e668c116ba8443207c5b27aead475df77626c3cb32d
@@ -1,8 +1,13 @@
1
1
  {%- assign texts = site.data.texts %}
2
+ {%- assign settings = site.data.settings %}
2
3
  {%- if include.category -%}
3
4
  <span class="category">
4
5
  {%- for category in include.category -%}
6
+ {%- if settings.categories[category] and include.link == true -%}
7
+ <a class="category" href="{{ settings.categories[category].url | relative_url }}">{{ settings.categories[category].name | default: texts.categories[category] | default: category }}</a>
8
+ {%- else -%}
5
9
  {{ texts.categories[category] | default: category }}
10
+ {%- endif -%}
6
11
  {%- if forloop.last == false %}, {% endif -%}
7
12
  {%- endfor -%}
8
13
  </span>
data/_includes/head.html CHANGED
@@ -74,7 +74,7 @@
74
74
  <link rel="icon" href="{{ settings.head.favicon | relative_url | default: profile.icon | relative_url }}">
75
75
  {% endif -%}
76
76
 
77
- {% if page.noindex == true or settings.head.noindex == true or site.plugins contains "jekyll-polyglot" and page.lang != site.active_lang and page.layout != "home" -%}
77
+ {% if page.noindex == true or page.hidden == true or settings.head.noindex == true or site.plugins contains "jekyll-polyglot" and page.lang != site.active_lang and page.layout != "home" -%}
78
78
  <meta name="robots" content="noindex">
79
79
  {% endif -%}
80
80
 
data/_includes/tags.html CHANGED
@@ -1,8 +1,13 @@
1
1
  {%- assign texts = site.data.texts %}
2
+ {%- assign settings = site.data.settings %}
2
3
  {%- if include.tags -%}
3
4
  <div class="tags">
4
5
  {%- for entry in include.tags -%}
6
+ {%- if settings.tags[entry] and include.link == true -%}
7
+ <a class="tag" href="{{ settings.tags[entry].url | relative_url }}">{{ settings.tags[entry].name | default: texts.tags[entry] | default: entry }}</a>
8
+ {%- else -%}
5
9
  <span class="tag">{{ texts.tags[entry] | default: entry }}</span>
10
+ {%- endif -%}
6
11
  {%- endfor -%}
7
12
  </div>
8
13
  {%- endif -%}
data/_layouts/home.html CHANGED
@@ -69,23 +69,27 @@ layout: base
69
69
  {%- endif %}
70
70
  {%- endfor %}
71
71
  {%- if tab_found == false %}
72
- <li class="current" aria-selected><a href="{{ page.url }}">{{ page.title }}</a></li>
72
+ <li class="current" aria-selected><a href="{{ page.tab.url | default: page.url | relative_url }}">
73
+ {{- page.tab.title | default: page.title }}</a></li>
73
74
  {%- endif %}
74
75
  </ul>
75
76
  </nav>
76
77
  {%- if tab_found != false %}
77
- {%- if tab_found.description or tab_found.feed %}
78
+ {%- assign tab_info = tab_found %}
79
+ {%- else %}
80
+ {%- assign tab_info = page.tab %}
81
+ {%- endif %}
82
+ {%- if tab_info.description or tab_info.feed %}
78
83
  <div class="tab-description">
79
- {%- if tab_found.description %}
80
- <p>{{ tab_found.description }}</p>
84
+ {%- if tab_info.description or page.description %}
85
+ <p>{{ tab_info.description | default: page.description }}</p>
81
86
  {%- endif %}
82
- {%- if tab_found.feed %}
83
- <a class="menu-btn subscribe" href="{{ tab_found.feed | relative_url }}" title="{{ texts.subscribe_menu }}">{{ texts.subscribe }}</a>
87
+ {%- if tab_info.feed %}
88
+ <a class="menu-btn subscribe" href="{{ tab_info.feed | relative_url }}" title="{{ texts.subscribe_menu }}">{{ texts.subscribe }}</a>
84
89
  {%- endif %}
85
90
  </div>
86
91
  {%- endif %}
87
92
  {%- endif %}
88
- {%- endif %}
89
93
 
90
94
  {%- if page.custom_home != true %}
91
95
  {%- if posts.size > 0 %}
data/_layouts/post.html CHANGED
@@ -9,8 +9,8 @@ layout: base
9
9
  <h1>{{ page.title }}</h1>
10
10
  {%- endif -%}
11
11
  <div class="meta">
12
- {%- include category.html category=page.category %}
13
- {%- include tags.html tags=page.tag %}
12
+ {%- include category.html category=page.category link=true %}
13
+ {%- include tags.html tags=page.tag link=true %}
14
14
  {%- if page.date or page.update %}
15
15
  <div class="time">
16
16
  {%- assign date_format = page.date_format | default: texts.date_format | default: "%Y-%m-%d" -%}
@@ -141,8 +141,8 @@ pre code {
141
141
  border-width: 1.5px;
142
142
  }
143
143
  .pagebox pre code {
144
- background: var(--boxbglight);
145
- border-color: var(--boxbglight);
144
+ background: var(--bg);
145
+ border-color: var(--bg);
146
146
  }
147
147
 
148
148
  details {
@@ -249,7 +249,7 @@ button.shareBtn {
249
249
  }
250
250
 
251
251
 
252
- span.tag {
252
+ .tag {
253
253
  display: inline-block;
254
254
  color: var(--gray);
255
255
  font-size: 0.9em;
@@ -258,8 +258,11 @@ span.tag {
258
258
  border: 1px solid var(--border);
259
259
  border-radius: 16px;
260
260
  }
261
+ a.tag {
262
+ color: var(--link);
263
+ }
261
264
 
262
- span.category {
265
+ .category {
263
266
  display: inline-block;
264
267
  font-weight: 500;
265
268
  margin: 0;
@@ -300,10 +303,13 @@ header.post {
300
303
  div.tags {
301
304
  display: inline-block;
302
305
  margin: 0 4px;
303
- span.tag {
306
+ .tag {
304
307
  margin: 0 4px;
305
308
  }
306
309
  }
310
+ .category a {
311
+ margin-bottom: 0;
312
+ }
307
313
  div.time {
308
314
  display: flex;
309
315
  flex-wrap: wrap;
@@ -482,7 +488,7 @@ div.post-custom {
482
488
  }
483
489
  div.tags {
484
490
  display: inline-block;
485
- span.tag {
491
+ .tag {
486
492
  margin-inline-end: 6px;
487
493
  }
488
494
  }
@@ -8,7 +8,7 @@ img.app-icon {
8
8
  height: 100px;
9
9
  vertical-align: top;
10
10
  margin-inline-end: 16px;
11
- border-radius: 8px;
11
+ border-radius: 16px;
12
12
  flex-grow:0;
13
13
  }
14
14
  div.app-info {
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.7
4
+ version: 0.2.0
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-14 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll