benjeto-jekyll-theme 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/button.html +10 -0
- data/_includes/exlink.html +1 -1
- data/_includes/head.html +2 -2
- data/_layouts/home.html +13 -5
- data/_layouts/post.html +5 -5
- data/_sass/benjeto/base.scss +44 -3
- data/_sass/benjeto/css/home-tab.scss +1 -0
- data/_sass/benjeto/light.scss +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5400bd9b6eca87f02633c5c10b2a40be9e265fdb48d07d3008da03ef80d62c64
|
4
|
+
data.tar.gz: b169a5e3233302cc1657128292e91e07d56fe21c03141fb30594864c289cf7fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5313ad641fa9d5792cbd35e304d35af154e960c12654a090b82f88b6f8920e213f51d16e1c3b3ecec44b86eb3ba515e93feff4bb7db8b48abb63ac03d7cc3dea
|
7
|
+
data.tar.gz: 52aab4813f8b00c7a83b32df87914ecfeecffbfac399ae7a2ffc6719246aeb373d5299ebb59711f80d88afe70e4a6f3b9f3a34006cba9f17ff9c0aaa9947593a
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{%- if include.type == "button" -%}
|
2
|
+
<button class="cstm-btn btn-{{ include.style }}"
|
3
|
+
{%- if include.id %} id="{{ include.id }}"{% endif %}>{{ include.text }}</button>
|
4
|
+
{%- else -%}
|
5
|
+
<a href="{{ include.url }}"
|
6
|
+
class="cstm-btn{% if include.style %} btn-{{ include.style }}{% endif %}"
|
7
|
+
{%- if include.type == "download" %} download{% endif %}
|
8
|
+
{%- if include.type == "external" %} target="_blank"{% endif -%}
|
9
|
+
>{{ include.text }}</a>
|
10
|
+
{%- endif -%}
|
data/_includes/exlink.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<li itemprop="url">
|
2
2
|
{%- assign entry = include.item -%}
|
3
|
-
<a href="{{ entry.url }}" target="_blank" rel="nofollow" title="{{ entry.name }}">
|
3
|
+
<a href="{{ entry.url }}" target="_blank" rel="nofollow" title="{{ entry.name }}" itemprop="sameAs">
|
4
4
|
{{- entry.name -}}
|
5
5
|
</a></li>
|
data/_includes/head.html
CHANGED
@@ -54,10 +54,10 @@
|
|
54
54
|
{% endif -%}
|
55
55
|
{% if page.layout == "post" -%}
|
56
56
|
{% if page.date -%}
|
57
|
-
<meta property="article:published_time" content="{{ page.date |
|
57
|
+
<meta property="article:published_time" content="{{ page.date | date_to_iso8601 }}">
|
58
58
|
{% endif -%}
|
59
59
|
{% if page.update -%}
|
60
|
-
<meta property="article:modified_time" content="{{ page.update |
|
60
|
+
<meta property="article:modified_time" content="{{ page.update | date_to_iso8601 }}">
|
61
61
|
{% endif -%}
|
62
62
|
{% endif -%}
|
63
63
|
{% endif -%}
|
data/_layouts/home.html
CHANGED
@@ -8,11 +8,11 @@ layout: base
|
|
8
8
|
<div class="header"><img src="{{ profile.header | relative_url }}" alt aria-hidden></div>
|
9
9
|
{%- endif %}
|
10
10
|
|
11
|
-
<main>
|
12
|
-
<header class="home">
|
11
|
+
<main itemtype="https://schema.org/ProfilePage" itemscope>
|
12
|
+
<header class="home" itemprop="mainEntity" itemtype="https://schema.org/Person" itemscope>
|
13
13
|
<div class="header-top">
|
14
14
|
<div class="nameline">
|
15
|
-
<h1>{{ profile.name | default: site.title }}</h1>
|
15
|
+
<h1 itemprop="name">{{ profile.name | default: site.title }}</h1>
|
16
16
|
{%- if profile.pronouns %}
|
17
17
|
<span class="pronouns" itemprop="pronouns">{{ profile.pronouns }}</span>
|
18
18
|
{%- endif %}
|
@@ -20,7 +20,7 @@ layout: base
|
|
20
20
|
<div class="headline">
|
21
21
|
<a class="proficon{% if settings.round_icon == true %} round{% endif %}{% if profile.header == nil %} no-header{% endif %}" href="{{ "/" | relative_url }}" aria-hidden="true">
|
22
22
|
{%- if profile.icon %}
|
23
|
-
<img src="{{ profile.icon | relative_url }}" alt="">
|
23
|
+
<img src="{{ profile.icon | relative_url }}" alt="" itemprop="image">
|
24
24
|
{%- else %}
|
25
25
|
<div class="dummy"></div>
|
26
26
|
{%- endif %}
|
@@ -29,7 +29,7 @@ layout: base
|
|
29
29
|
</div>
|
30
30
|
</div>
|
31
31
|
{%- if profile.bio %}
|
32
|
-
<p class="bio">{{ profile.bio }}</p>
|
32
|
+
<p class="bio" itemprop="description">{{ profile.bio }}</p>
|
33
33
|
{%- endif %}
|
34
34
|
<ul class="exlink">
|
35
35
|
{%- if profile.links -%}
|
@@ -132,6 +132,14 @@ layout: base
|
|
132
132
|
{%- endif -%}
|
133
133
|
|
134
134
|
{%- else -%}
|
135
|
+
<div class="tab-description">
|
136
|
+
{%- if page.tab.description %}
|
137
|
+
<p>{{ page.tab.description }}</p>
|
138
|
+
{%- endif %}
|
139
|
+
{%- if page.tab.feed %}
|
140
|
+
<a class="menu-btn subscribe" href="{{ page.tab.feed | relative_url }}" title="{{ texts.subscribe_menu }}">{{ texts.subscribe }}</a>
|
141
|
+
{%- endif %}
|
142
|
+
</div>
|
135
143
|
<div class="custom-home">
|
136
144
|
{{ content }}
|
137
145
|
</div>
|
data/_layouts/post.html
CHANGED
@@ -3,10 +3,10 @@ layout: base
|
|
3
3
|
---
|
4
4
|
{%- assign texts = site.data.texts -%}
|
5
5
|
{%- assign settings = site.data.settings -%}
|
6
|
-
<header class="post">
|
6
|
+
<header class="post" itemscope itemtype="https://schema.org/NewsArticle">
|
7
7
|
{%- include miniprof.html type="nav" -%}
|
8
8
|
{%- if page.title != "" and page.hide_title != true -%}
|
9
|
-
<h1>{{ page.title }}</h1>
|
9
|
+
<h1 itemprop="headline">{{ page.title }}</h1>
|
10
10
|
{%- endif -%}
|
11
11
|
<div class="meta">
|
12
12
|
{%- include category.html category=page.category link=true %}
|
@@ -14,18 +14,18 @@ layout: base
|
|
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" -%}
|
17
|
-
<time datetime="{{ page.date |
|
17
|
+
<time itemprop="datePublished" datetime="{{ page.date | date_to_iso8601 }}">
|
18
18
|
{{ page.date | date: texts.date_format -}}
|
19
19
|
</time>
|
20
20
|
{%- if page.update %}
|
21
|
-
<time datetime="{{ page.update |
|
21
|
+
<time itemprop="dateModified" datetime="{{ page.update | date_to_iso8601 }}">
|
22
22
|
{{- texts.update }} {{ page.update | date: texts.date_format -}}
|
23
23
|
</time>
|
24
24
|
{%- endif %}
|
25
25
|
</div>
|
26
26
|
{%- endif %}
|
27
27
|
{%- if page.author %}
|
28
|
-
<span class="author"
|
28
|
+
<span class="author">
|
29
29
|
{%- for author in page.author -%}
|
30
30
|
{{ author }}
|
31
31
|
{%- if forloop.last == false %}, {% endif -%}
|
data/_sass/benjeto/base.scss
CHANGED
@@ -124,8 +124,8 @@ pre, code, code * {
|
|
124
124
|
font-family: monospace, system-ui, sans-serif;
|
125
125
|
}
|
126
126
|
code {
|
127
|
-
background: var(--
|
128
|
-
border: 1px solid var(--
|
127
|
+
background: var(--boxbg);
|
128
|
+
border: 1px solid var(--boxbg);
|
129
129
|
border-radius: 4px;
|
130
130
|
padding: 1px 4px;
|
131
131
|
margin: 0 2px;
|
@@ -182,6 +182,46 @@ video {
|
|
182
182
|
vertical-align: bottom;
|
183
183
|
}
|
184
184
|
|
185
|
+
.cstm-btn {
|
186
|
+
display: inline-block;
|
187
|
+
border-radius: 6px;
|
188
|
+
padding: 8px 16px;
|
189
|
+
margin: 8px 4px;
|
190
|
+
font-size: 1em;
|
191
|
+
font-weight: 600;
|
192
|
+
cursor: pointer;
|
193
|
+
border: 1px solid var(--border);
|
194
|
+
color: var(--link);
|
195
|
+
background: none;
|
196
|
+
transition: background 0.2s, color 0.2s;
|
197
|
+
&.btn-filled {
|
198
|
+
background: var(--link);
|
199
|
+
color: var(--bg);
|
200
|
+
border: none;
|
201
|
+
padding: 9px 17px;
|
202
|
+
cursor: pointer;
|
203
|
+
&:hover {
|
204
|
+
background: var(--linkhover);
|
205
|
+
color: var(--bg);
|
206
|
+
}
|
207
|
+
}
|
208
|
+
&.btn-light {
|
209
|
+
background: var(--boxbg);
|
210
|
+
color: var(--text);
|
211
|
+
border: none;
|
212
|
+
padding: 9px 17px;
|
213
|
+
&:hover {
|
214
|
+
background: var(--boxbglight);
|
215
|
+
color: var(--link);
|
216
|
+
}
|
217
|
+
}
|
218
|
+
&:hover {
|
219
|
+
background: var(--boxbglight);
|
220
|
+
color: var(--linkhover);
|
221
|
+
text-decoration: none;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
185
225
|
.menu-btn {
|
186
226
|
font-weight: bold;
|
187
227
|
font-size: 1em;
|
@@ -228,6 +268,7 @@ button.shareBtn {
|
|
228
268
|
height: 34px;
|
229
269
|
padding: 0 6px;
|
230
270
|
text-align: end;
|
271
|
+
cursor: pointer;
|
231
272
|
transition: background 0.2s;
|
232
273
|
&:hover, &.disabled {
|
233
274
|
background: var(--boxbg);
|
@@ -367,7 +408,7 @@ header.home {
|
|
367
408
|
color: var(--linkhover);
|
368
409
|
background: var(--boxbg);
|
369
410
|
border-radius: 4px;
|
370
|
-
padding: 5px
|
411
|
+
padding: 5px 7px;
|
371
412
|
transition: background 0.2s;
|
372
413
|
&:hover {
|
373
414
|
background: var(--boxbglight);
|
data/_sass/benjeto/light.scss
CHANGED
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.2.
|
4
|
+
version: 0.2.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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- _data/texts.yml
|
78
78
|
- _includes/appbox.html
|
79
79
|
- _includes/audio.html
|
80
|
+
- _includes/button.html
|
80
81
|
- _includes/category.html
|
81
82
|
- _includes/custom_head.html
|
82
83
|
- _includes/exlink.html
|