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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8d4c1f19b7b237b65bb812f872bcba8b256266be6301eeb0215d73e276228c7
4
- data.tar.gz: eb3ff029372f551852aab48e1075f9006453c97920fd777278889e717f89f0c0
3
+ metadata.gz: 5400bd9b6eca87f02633c5c10b2a40be9e265fdb48d07d3008da03ef80d62c64
4
+ data.tar.gz: b169a5e3233302cc1657128292e91e07d56fe21c03141fb30594864c289cf7fc
5
5
  SHA512:
6
- metadata.gz: 9a3a08e70a7cdcc5ba5aaaa1b62bd3288def20235d26be4a51d1222e957d1104f82a366ed67bd500c5ceb337b9d13bc4b11bc2d742d37fd8e40604e60b4fdce0
7
- data.tar.gz: c8b917240a352318e2a3e8f2745168454ebbde87bd8b93ef4ff5e2e31fee0cd8ebf6dd7ea685421bcec24e6204515d638d2852c92004688c7f58ff4a6770bf74
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 -%}
@@ -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 | date_to_xmlschema }}">
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 | date_to_xmlschema }}">
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 | date_to_xmlschema }}">
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 | date_to_xmlschema }}">
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" itemprop="name">
28
+ <span class="author">
29
29
  {%- for author in page.author -%}
30
30
  {{ author }}
31
31
  {%- if forloop.last == false %}, {% endif -%}
@@ -124,8 +124,8 @@ pre, code, code * {
124
124
  font-family: monospace, system-ui, sans-serif;
125
125
  }
126
126
  code {
127
- background: var(--boxbglight);
128
- border: 1px solid var(--boxbglight);
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 8px;
411
+ padding: 5px 7px;
371
412
  transition: background 0.2s;
372
413
  &:hover {
373
414
  background: var(--boxbglight);
@@ -46,6 +46,7 @@ div.tab-description {
46
46
  align-items: center;
47
47
  margin: 8px 0;
48
48
  padding: 0 8px;
49
+ min-height: 40px;
49
50
  p {
50
51
  margin: 0 8px 0 4px;
51
52
  }
@@ -7,8 +7,8 @@
7
7
  --head: #0a0a0a;
8
8
  --link: #0050ea;
9
9
  --linkhover: #0020a0;
10
- --boxbg: #ccdcfa;
11
- --boxbglight: #e0ecff;
10
+ --boxbg: #d0defc;
11
+ --boxbglight: #e5f0ff;
12
12
  --border: #75a5ff;
13
13
  }
14
14
  @media (prefers-contrast: more) {
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.5
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-20 00:00:00.000000000 Z
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