sutty-minima 2.7.0rc3 → 2.7.0rc6

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: ac9e25c177fd230468c52b462fb5949dd5bcc7f449985299c12bf6fbcf158639
4
- data.tar.gz: 93ae4106f8a87ff0b396e1bd10c0335f031f8335f8c6c17fd379ed3b3693d33e
3
+ metadata.gz: 179fc0dfdd748e971a49bb4da2ad7b2790c7b69c5604b37c9e1cd71f2bc83fab
4
+ data.tar.gz: e6ff42b05bcb7e60c511e183f3e5367033b78f2a0a729f7a1cc8d3f509446773
5
5
  SHA512:
6
- metadata.gz: 0bf4df433b8614916ec43766fdf5d5bd03d1995e72806558d57021cd91febd78e54519e6cafc63b89ebff697bc4b1765f43aadbca480ae16a4fbdbe5212357d7
7
- data.tar.gz: be29c93593250f5d5c8a541896ea5b98ac1877264df4a97afa8ca40af246141b1831dfa9e4a84c9b96955703a6331ab9ceb8898b55e9313a285fb78753a63bc3
6
+ metadata.gz: dd763e85015df56d1b05a4c67616b74ea8ef75e8c0f82a475a6920febbea3cb3e02b3203197dad060c134d922a96f73763fbe484372b0064a072b4f7bc0fd884
7
+ data.tar.gz: 83e1e18158e0a624b30ab70e924863491626c25b4656c2fa0267e129867800447848b3a70b8ea5c26859c664d843c5f482e37c8900b7529f014a9a3ae69ea63e
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.0rc3
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-11-16 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