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 +4 -4
- data/_includes/category.html +5 -0
- data/_includes/head.html +1 -1
- data/_includes/tags.html +5 -0
- data/_layouts/home.html +11 -7
- data/_layouts/post.html +2 -2
- data/_sass/benjeto/base.scss +12 -6
- data/_sass/benjeto/css/app-box.scss +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a9ed02d1bd33721f7c910780161220bf6cef9625c043c1f22dd459637067f82
|
|
4
|
+
data.tar.gz: 51600f835363b0d43d1b2ab99cb837179781af46c5109162b850043494791a82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f93df93718acdba45617d26d97121609f86049938f284da1aaafa69f14de10a60c4c124c2b1dd5ccd397f31cffaf470474fcd6f1a00096ae650f646390f2e83
|
|
7
|
+
data.tar.gz: 634b1b97912f566161fa8888e7a405a13485b27a03bf733ff3094c90f8e7a341e678d47f34bdde81d6d82e668c116ba8443207c5b27aead475df77626c3cb32d
|
data/_includes/category.html
CHANGED
|
@@ -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
|
|
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
|
-
{%-
|
|
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
|
|
80
|
-
<p>{{
|
|
84
|
+
{%- if tab_info.description or page.description %}
|
|
85
|
+
<p>{{ tab_info.description | default: page.description }}</p>
|
|
81
86
|
{%- endif %}
|
|
82
|
-
{%- if
|
|
83
|
-
<a class="menu-btn subscribe" href="{{
|
|
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" -%}
|
data/_sass/benjeto/base.scss
CHANGED
|
@@ -141,8 +141,8 @@ pre code {
|
|
|
141
141
|
border-width: 1.5px;
|
|
142
142
|
}
|
|
143
143
|
.pagebox pre code {
|
|
144
|
-
background: var(--
|
|
145
|
-
border-color: var(--
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
491
|
+
.tag {
|
|
486
492
|
margin-inline-end: 6px;
|
|
487
493
|
}
|
|
488
494
|
}
|
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.
|
|
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-
|
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|