linus 1.2.2 → 1.3.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: db9a4c971ae9aabca51103fdf1094ae6dc1f42c2d02180d875aaafe4360038b8
4
- data.tar.gz: e8bc1677be060abc1304d99eb4f79a370ddac45bde93e61bb278ccfd117574fb
3
+ metadata.gz: 795481d689cac75a1da74af3d3acfd1c1a78a9610298da2cd033707c8f6658d0
4
+ data.tar.gz: 2bb4aa302b5c6f227dbc262edd98cc36e2ff5c36e2aff87b747f4c4e3d900b1b
5
5
  SHA512:
6
- metadata.gz: 2b3beba3b935b3e67e1a8b2c3112d750f02f0dab22cd49690a88f13428a5a1bb49792806ddbefa35bbaab8530f7d7e9a232e8f6dfceea6954163d5fefced66f9
7
- data.tar.gz: 21252a2aa7911187d594c779dfb45bb319448fcdcec50411ee49f66792e694f49787862de3feaad016adbe8221b126c70212747da04e8ab2d003b2d355d7cac5
6
+ metadata.gz: e73abc7dfdeeed1b4c32d6f9839a7928aa5bb5be57b049edb88571fa24260e6b832da23dc3fb7218692497746fdd7e06beaeb9588d2d0284f2e7897445221f3d
7
+ data.tar.gz: 947d8f5403b5d2607b501c177337e1e1b5c47d83f3bd5f0fb4a6fa2513f676ac19d4738e45f58fe14a80c9c9dc66ca8408d609afd3463e968d4510fb5e306b2d
@@ -26,7 +26,7 @@
26
26
  {%- else -%}
27
27
  <cite class="post-source-title u-in-reply-to h-cite">
28
28
  <a class="post-source u-url p-name" href="{{- include.post.source -}}">
29
- {{- include.post.source | remove: "https://" | remove: "http://" | prepend: "&hookrightarrow; " -}}
29
+ {{- include.post.source | remove: "https://" | remove: "http://" | split: '/' | first | prepend: "&hookrightarrow; " -}}
30
30
  </a>
31
31
  </cite>
32
32
  {%- endif -%}
@@ -1,16 +1,22 @@
1
1
  {%- if include.url -%}
2
2
 
3
3
  {%- assign preview = include.url | metadata -%}
4
- <blockquote class="link-preview h-cite u-in-reply-to">
4
+ <blockquote class="link-preview h-cite u-in-reply-to highlight">
5
5
  <cite class="preview-title p-name">
6
6
  <a class="preview-link u-url" href="{{ include.url }}" rel="nofollow">
7
- {{- preview['og:title'] | default: preview.title | default: include.url }} &mapsto;
7
+ {{- preview['og:title'] | default: preview.title | default: include.url }}
8
+ </a>
9
+
10
+ {% assign preview_domain = include.url | remove: "http://" | remove: "https://" | split: "/" | first | remove: "/" %}
11
+
12
+ <a class="preview-website u-url" href="{{- preview_domain -}}" rel="nofollow">
13
+ &mapsto; {{ preview["og:site_name"] | default: preview_domain }}
8
14
  </a>
9
15
  </cite>
10
16
  <div class="preview-details">
11
- {%- if preview['article:author'] -%}
17
+ {%- if preview['article:description'] or preview.description -%}
12
18
  <span class="preview-author p-author h-card">
13
- {{ preview['article:author'] }}
19
+ {{ preview['article:description'] | default: preview.description }}
14
20
  </span>
15
21
  {%- endif -%}
16
22
 
@@ -19,12 +25,6 @@
19
25
  {{ preview['article:published_time'] | date: site.date_formats.day }}
20
26
  </time>
21
27
  {%- endif -%}
22
-
23
- {% assign preview_domain = include.url | remove: "http://" | remove: "https://" | split: "/" | first | remove: "/" %}
24
-
25
- <a class="preview-website u-url" href="{{- preview_domain -}}" rel="nofollow">
26
- {{ preview["og:site_name"] | default: preview_domain }}
27
- </a>
28
28
  </div>
29
29
  </blockquote>
30
30
  {%- endif -%}
@@ -17,7 +17,7 @@ layout: default
17
17
  </article>
18
18
 
19
19
 
20
- <div class="blog-list h-feed">
20
+ <div class="blog-list h-feed archive">
21
21
  {%- include blog/categories.html -%}
22
22
 
23
23
  {% for post in site.posts -%}
data/assets/css/base.css CHANGED
@@ -56,7 +56,8 @@ dd + dt {
56
56
 
57
57
  a {
58
58
  color: var(--color-link);
59
- text-decoration-color: transparent;
59
+ text-decoration: underline;
60
+ text-decoration-color: color-mix(in srgb, currentcolor, transparent 50%);
60
61
  transition-property: color, text-decoration-color, text-decoration-style;
61
62
  transition-duration: var(--transition-duration);
62
63
  transition-timing-function: ease;
@@ -65,9 +66,7 @@ a {
65
66
  a:hover,
66
67
  a:focus {
67
68
  color: var(--color-link-hover);
68
- text-decoration: underline;
69
- text-underline-offset: 0.2rem;
70
- text-decoration-color: color-mix(in srgb, currentcolor, transparent 75%);
69
+ text-decoration-color: currentColor;
71
70
  }
72
71
 
73
72
  a:active {
@@ -260,7 +259,8 @@ table {
260
259
  /* Horizontal rule */
261
260
  hr {
262
261
  border: none;
263
- height: var(--spacing);
262
+ height: 2px;
263
+ background: var(--color-border);
264
264
  width: 100%;
265
265
  }
266
266
 
@@ -19,28 +19,28 @@
19
19
  --content-width: 420px;
20
20
  --headings-width: 480px;
21
21
 
22
- --color-background: #F5EDD8;
23
- --color-text: #3B2A1A;
24
- --color-link: #2D5438;
25
- --color-link-hover: #1E3826;
26
- --color-support: #D9634E;
22
+ --color-background: #FFFCF0;
23
+ --color-text: #1C1B1A;
24
+ --color-link: #DC3C22;
25
+ --color-link-hover: #002FA7;
26
+ --color-support: #6F6E69;
27
27
  --color-shadows: color-mix(in srgb, var(--color-text), transparent 85%);
28
- --color-shadows-hover: color-mix(in srgb, var(--color-text), transparent 75%);
28
+ --color-shadows-hover: color-mix(in srgb, var(--color-text), transparent 50%);
29
29
  --color-border: color-mix(in srgb, currentcolor, transparent 90%);
30
30
 
31
- --shadow:
32
- 0px 0px 0px 1px var(--color-shadows),
33
- 0px 1px 2px -1px var(--color-shadows),
34
- 0px 2px 4px 0px var(--color-shadows);
31
+ --shadow: 5px 5px 0 var(--color-shadows);
32
+ --shadow-hover: 5px 5px 0 var(--color-shadows-hover);
33
+ --shadow-active: 2px 2px 0 var(--color-shadows-hover);
34
+
35
35
  }
36
36
 
37
37
  @media (prefers-color-scheme: dark) {
38
38
  :root {
39
- --color-background: #3B2A1A;
40
- --color-text: #F5EDD8;
41
- --color-link: #E8A054;
42
- --color-link-hover: #F5C880;
43
- --color-support: #D9634E;
39
+ --color-background: #1C1B1A;
40
+ --color-text: #E6E4D9;
41
+ --color-link: #FFC857;
42
+ --color-link-hover: #FFFFFF;
43
+ --color-support: #E8C87A;
44
44
  }
45
45
  }
46
46
 
@@ -165,6 +165,7 @@ body {
165
165
  align-items: center;
166
166
  gap: calc(var(--spacing) / 2);
167
167
  line-height: 100%;
168
+ text-decoration: none;
168
169
  }
169
170
 
170
171
  .site-logo {
@@ -218,15 +219,18 @@ body {
218
219
  text-decoration: none !important;
219
220
  transform: scale(1);
220
221
  transform-origin: center center;
221
- transition: transform var(--transition-duration) ease;
222
+ transition-property: transform, box-shadow;
223
+ transition-duration: var(--transition-duration);
224
+ transition-timing-function: ease;
222
225
 
223
226
  &:hover,
224
227
  &:focus {
225
- transform: scale(1.025)
228
+ box-shadow: 5px 5px 0 var(--color-shadows-hover);
226
229
  }
227
230
 
228
231
  &:active {
229
232
  transform: scale(0.98);
233
+ box-shadow: var(--shadow-active);
230
234
  }
231
235
  }
232
236
 
@@ -246,6 +250,10 @@ body {
246
250
  font-family: var(--font-headings);
247
251
  }
248
252
 
253
+ .archive .post {
254
+ margin-bottom: var(--spacing);
255
+ }
256
+
249
257
  .blog-pagination {
250
258
  display: flex;
251
259
  flex-flow: row nowrap;
@@ -272,6 +280,7 @@ body {
272
280
  margin-right: calc(var(--spacing) / 4);
273
281
  font-family: var(--font-headings);
274
282
  color: color-mix(in srgb, var(--color-link), transparent 50%);
283
+ text-decoration: none;
275
284
  font-size: 2rem;
276
285
  }
277
286
 
@@ -285,6 +294,10 @@ body {
285
294
  margin-block: 0;
286
295
  font-family: var(--font-headings);
287
296
  font-size: 2rem;
297
+
298
+ a {
299
+ text-decoration: none;
300
+ }
288
301
  }
289
302
 
290
303
  .post-header .category {
@@ -308,10 +321,6 @@ body {
308
321
  max-width: var(--headings-width);
309
322
  }
310
323
 
311
- .post-content a {
312
- text-decoration-color: var(--color-border);
313
- }
314
-
315
324
  /* Post Footer */
316
325
  .post-footer {
317
326
  max-width: var(--content-width);
@@ -374,6 +383,10 @@ body {
374
383
  flex-flow: row wrap;
375
384
  gap: 1ch;
376
385
  }
386
+
387
+ a {
388
+ text-decoration: none;
389
+ }
377
390
  }
378
391
 
379
392
  /*
data/assets/icon.png CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Freitas
@@ -71,14 +71,14 @@ dependencies:
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '2.8'
74
+ version: '2.9'
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '2.8'
81
+ version: '2.9'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: jekyll-paginate
84
84
  requirement: !ruby/object:Gem::Requirement