sutty-minima 2.7.0rc2 → 2.7.0rc6

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: 46a21a1be8db8f547fd631a5a6be487b4fac39e4a09aacde8841d2f3db6e1c62
4
- data.tar.gz: a1141029a942203f0da4c3318b30f886df53ce15fdbcda15f85912fcbe9ea2a8
3
+ metadata.gz: 179fc0dfdd748e971a49bb4da2ad7b2790c7b69c5604b37c9e1cd71f2bc83fab
4
+ data.tar.gz: e6ff42b05bcb7e60c511e183f3e5367033b78f2a0a729f7a1cc8d3f509446773
5
5
  SHA512:
6
- metadata.gz: ce6a201ea864dc6e7da79689de7e36a5647246de936f7ed9f9ce6688773a09604a58a881b67c8b9d9bdd0262070fa35134e229b2dd44c3eba763b82f4529bf6f
7
- data.tar.gz: 4fb82bdfe0940ac2be943e9a0eeddaa92751e5a386a9da093f947985435a86207ae7d79306c5bf9a9302d1ec74a023b08b2e5fea3d91d8c4386dfed6eb9e0517
6
+ metadata.gz: dd763e85015df56d1b05a4c67616b74ea8ef75e8c0f82a475a6920febbea3cb3e02b3203197dad060c134d922a96f73763fbe484372b0064a072b4f7bc0fd884
7
+ data.tar.gz: 83e1e18158e0a624b30ab70e924863491626c25b4656c2fa0267e129867800447848b3a70b8ea5c26859c664d843c5f482e37c8900b7529f014a9a3ae69ea63e
@@ -8,7 +8,7 @@ title:
8
8
  help:
9
9
  es: "¡Un título que invite a leer el artículo!"
10
10
  en: "A title that makes people want to read the post!"
11
- summary:
11
+ content_warning:
12
12
  type: "string"
13
13
  label:
14
14
  es: "Alerta de contenido"
@@ -73,17 +73,6 @@ activity:
73
73
  default:
74
74
  es: true
75
75
  en: true
76
- sensitive:
77
- type: "boolean"
78
- label:
79
- es: "Tema sensible"
80
- en: "Sensitive topic"
81
- help:
82
- es: "Activa esta opción si el artículo necesita una alerta de contenido."
83
- en: "Enable this option if the post requires a content warning."
84
- default:
85
- es: false
86
- en: false
87
76
  in_reply_to:
88
77
  type: "url"
89
78
  label:
data/_includes/head.html CHANGED
@@ -16,7 +16,14 @@
16
16
  {%- include custom-head.html -%}
17
17
 
18
18
  {%- if page.activity -%}
19
- <link href="{{ page.activity.url | absolute_url }}" rel="alternate" type="application/activity+json" />
19
+ <link
20
+ href="{{ page.activity.url | absolute_url | uri_escape }}"
21
+ rel="alternate"
22
+ type="application/activity+json" />
23
+ <link
24
+ href="{{ page.activity.url | absolute_url | uri_escape }}"
25
+ rel="alternate"
26
+ type='application/ld+json; profile="https://www.w3.org/ns/activitystreams"' />
20
27
  {%- endif -%}
21
28
 
22
29
  {%- if site.activity_pub_profile -%}
@@ -1,12 +1,22 @@
1
+ {%- assign pages = site.posts | where: "layout", "page" -%}
2
+ {%- assign about = site.posts | find: 'layout', 'about' -%}
3
+
1
4
  <header class="site-header">
2
5
 
3
6
  <div class="wrapper">
4
- {%- assign default_paths = site.pages | map: "path" -%}
5
- {%- assign page_paths = site.header_pages | default: default_paths -%}
6
- {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
7
- <a class="site-title" rel="author" href="?#">{{ site.title | escape }}</a>
8
7
 
9
- {%- if titles_size > 0 -%}
8
+ {% if about.logo.path %}
9
+ <a href="?#">
10
+ <img
11
+ class="h-54"
12
+ src="{{ about.logo.path | thumbnail: nil, 54 | uri_escape }}"
13
+ alt="{{ about.logo.description | escape }}" />
14
+ </a>
15
+ {% else %}
16
+ <a class="site-title" rel="author" href="?#">{{ site.title | escape }}</a>
17
+ {% endif %}
18
+
19
+ {%- if pages.size > 0 -%}
10
20
  <nav class="site-nav">
11
21
  <input type="checkbox" id="nav-trigger" class="nav-trigger" />
12
22
  <label for="nav-trigger">
@@ -18,11 +28,8 @@
18
28
  </label>
19
29
 
20
30
  <div class="trigger">
21
- {%- for path in page_paths -%}
22
- {%- assign my_page = site.pages | where: "path", path | first -%}
23
- {%- if my_page.title -%}
24
- <a class="page-link" href="{{ my_page.url }}">{{ my_page.title | escape }}</a>
25
- {%- endif -%}
31
+ {%- for page in pages -%}
32
+ <a class="page-link" href="{{ page.url | uri_escape }}">{{ page.title | escape }}</a>
26
33
  {%- endfor -%}
27
34
  </div>
28
35
  </nav>
@@ -1,9 +1,14 @@
1
+ {%- assign about = site.posts | find: 'layout', 'about' -%}
2
+
1
3
  <!DOCTYPE html>
2
4
  <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
5
 
4
6
  {%- include head.html -%}
5
7
 
6
- <body>
8
+ <body
9
+ {% if about.image.path %}
10
+ style="background-image: url({{ about.image.path | uri_escape }}); background-repeat: no-repeat; background-size: contain;"
11
+ {% endif %}>
7
12
 
8
13
  {%- include header.html -%}
9
14
 
@@ -2,8 +2,6 @@
2
2
  * Site header
3
3
  */
4
4
  .site-header {
5
- border-top: 5px solid $border-color-03;
6
- border-bottom: 1px solid $border-color-01;
7
5
  min-height: $spacing-unit * 1.865;
8
6
  line-height: $base-line-height * $base-font-size * 2.25;
9
7
 
@@ -340,3 +338,45 @@
340
338
  width: calc(50% - (#{$spacing-unit} / 2));
341
339
  }
342
340
  }
341
+
342
+ .post-content {
343
+ .img-fluid {
344
+ max-width: 100%;
345
+ height: auto;
346
+ }
347
+
348
+ p { min-height: $base-font-size * $base-line-height; }
349
+
350
+ iframe { border: 0; }
351
+
352
+ audio { width: 100%; }
353
+
354
+ img,
355
+ video,
356
+ iframe {
357
+ margin: 2rem 0;
358
+ }
359
+
360
+ figure {
361
+ text-align: center;
362
+ margin: 0;
363
+ }
364
+
365
+ & > * {
366
+ margin-bottom: 1rem;
367
+
368
+ &:last-child {
369
+ margin-bottom: 0;
370
+ }
371
+ }
372
+
373
+ li p {
374
+ margin-bottom: 1rem;
375
+ }
376
+
377
+ a {
378
+ text-decoration: underline !important;
379
+ word-break: break-word !important;
380
+ word-wrap: break-word !important;
381
+ }
382
+ }
@@ -1,2 +1,6 @@
1
1
  // Placeholder to allow defining custom styles that override everything else.
2
2
  // (Use `_sass/minima/custom-variables.scss` to override variable defaults)
3
+
4
+ .h-54 {
5
+ height: 54px;
6
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-minima
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0rc2
4
+ version: 2.7.0rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-19 00:00:00.000000000 Z
12
+ date: 2023-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll