sutty-minima 2.7.0rc6 → 2.7.0rc9

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: 179fc0dfdd748e971a49bb4da2ad7b2790c7b69c5604b37c9e1cd71f2bc83fab
4
- data.tar.gz: e6ff42b05bcb7e60c511e183f3e5367033b78f2a0a729f7a1cc8d3f509446773
3
+ metadata.gz: c701594f6ebcbd103b6605d27878980a668474f76362b980b319757b85547fc4
4
+ data.tar.gz: 9f1b9d35f15f0f8743f086849bc0449f561f82b116d4f98a714b51b8b48049e9
5
5
  SHA512:
6
- metadata.gz: dd763e85015df56d1b05a4c67616b74ea8ef75e8c0f82a475a6920febbea3cb3e02b3203197dad060c134d922a96f73763fbe484372b0064a072b4f7bc0fd884
7
- data.tar.gz: 83e1e18158e0a624b30ab70e924863491626c25b4656c2fa0267e129867800447848b3a70b8ea5c26859c664d843c5f482e37c8900b7529f014a9a3ae69ea63e
6
+ metadata.gz: 7e726a5ba141a861999a7ad63b5ef1cd7742b96f3fb68129cc54fb6e2543414740083d53306dd4157b5fa9558a98b63fff247529dea7b57f1afcfb19de5e296e
7
+ data.tar.gz: 0745a2819eaaa7a3a0f52f32e3e620f6bed56bb2f884546e966f5d6113114eec7a31c0ca94a5ed469624cdf960e424d7372ac604cfccc26855e7f05807818aa3
data/_data/en.yml CHANGED
@@ -62,3 +62,4 @@ layouts:
62
62
  post: "Post"
63
63
  privacy_policy: "Privacy policy"
64
64
  theme: "Customize"
65
+ cw: "Content warning:"
data/_data/es.yml CHANGED
@@ -62,3 +62,4 @@ layouts:
62
62
  post: "Artículo"
63
63
  privacy_policy: "Política de privacidad"
64
64
  theme: "Personalizar"
65
+ cw: "Alerta de contenido:"
@@ -7,25 +7,29 @@ title:
7
7
  en: "Post title"
8
8
  help:
9
9
  es: "¡Un título que invite a leer el artículo!"
10
- en: "A title that invites people to read the post!"
11
- description:
12
- type: "text"
13
- required: true
10
+ en: "A title that makes people want to read the post!"
11
+ content_warning:
12
+ type: "string"
14
13
  label:
15
- es: "Alerta de contenido o descripción del artículo"
16
- en: "Content warning or post description"
14
+ es: "Alerta de contenido"
15
+ en: "Content warning"
17
16
  help:
18
17
  es: |
19
- Resumen del contenido del artículo, que también usarán redes
20
- sociales y buscadores. Si el artículo trata de violencias y otros
21
- temas sensibles, te invitamos a usar este campo como alerta de
22
- contenido, para que las personas puedan determinar cuándo quieren
23
- abrirlo.
18
+ Si el artículo trata de violencias y otros temas sensibles, te
19
+ invitamos a usar este campo como alerta de contenido, para que las
20
+ personas puedan determinar cuándo quieren abrirlo.
24
21
  en: |
25
- Summary of the post contents, also used by social media and search
26
- engines. If the post is about violence and other sensitive
27
- topics, we invite you to use it as a content warning, so others
28
- can decide when they want to read it.
22
+ If the post is about violence and other sensitive topics, we
23
+ invite you to use it as a content warning, so others can decide
24
+ when they want to read it.
25
+ description:
26
+ type: "text"
27
+ label:
28
+ es: "Descripción del artículo"
29
+ en: "Post description"
30
+ help:
31
+ es: "Descripción del contenido del artículo, que también usarán redes sociales y buscadores."
32
+ en: "Description of post content, also used by social media and search engines."
29
33
  author:
30
34
  type: "array"
31
35
  label:
@@ -48,8 +52,8 @@ image:
48
52
  es: "Descripción de la imagen principal"
49
53
  en: "Main image description"
50
54
  help:
51
- es: "Describe la imagen principal para usuaries no videntes y buscadores"
52
- en: "Describe the main image for blind or partially sighted users and search engines"
55
+ es: "Describí la imagen por razones de accesibilidad e indexacion en buscadores"
56
+ en: "Describe the image for accesibility purposes and for indexation in search engines"
53
57
  content:
54
58
  type: "new_content"
55
59
  label:
@@ -57,7 +61,26 @@ content:
57
61
  en: "Post content"
58
62
  help:
59
63
  es: "Escribe aquí el artículo"
60
- en: "Write down your post"
64
+ en: "Write your post here"
65
+ activity:
66
+ type: "boolean"
67
+ label:
68
+ es: "Publicar en el Fediverso"
69
+ en: "Publish to Fediverse"
70
+ help:
71
+ es: "Si tu sitio tiene habilitado Social Distributed Press, habilita para publicar en el Fediverso"
72
+ en: "If your site has Social Distributed Press enabled, tick to publish to the Fediverse"
73
+ default:
74
+ es: true
75
+ en: true
76
+ in_reply_to:
77
+ type: "url"
78
+ label:
79
+ es: "En respuesta a"
80
+ en: "In reply to"
81
+ help:
82
+ es: "Agrega aquí el vínculo a un artículo para generar una respuesta"
83
+ en: "Add the link to another article to reply to"
61
84
  locales:
62
85
  type: "locales"
63
86
  label:
@@ -7,8 +7,9 @@
7
7
 
8
8
  <body
9
9
  {% if about.image.path %}
10
- style="background-image: url({{ about.image.path | uri_escape }}); background-repeat: no-repeat; background-size: contain;"
11
- {% endif %}>
10
+ style="background-image: url('{{ about.image.path | uri_escape }}'); background-repeat: no-repeat; background-size: cover;"
11
+ {% endif %}
12
+ >
12
13
 
13
14
  {%- include header.html -%}
14
15
 
data/_layouts/page.html CHANGED
@@ -1,14 +1,78 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <article class="post">
4
+
5
+ {% assign date_format = site.i18n.date.format | default: "%b %-d, %Y" %}
6
+ {% assign license = site.posts | find: "layout", "license" %}
7
+
8
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
9
 
6
10
  <header class="post-header">
7
- <h1 class="post-title">{{ page.title | escape }}</h1>
11
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
12
+
13
+ {% if page.description %}
14
+ <div class="p-summary" itemprop="description">
15
+ {{ page.description | allow_inclusive_language_in_markdown | markdownify }}
16
+ </div>
17
+ {% endif %}
18
+
19
+ <p class="post-meta">
20
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
21
+ {{ page.date | date: date_format }}
22
+ </time>
23
+ {%- if page.last_modified_at -%}
24
+ ~
25
+ <time class="dt-modified" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">
26
+ {{ page.last_modified_at | date: date_format }}
27
+ </time>
28
+ {%- endif -%}
29
+ {%- unless page.author == empty -%}
30
+ • {% for author in page.author %}
31
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
32
+ <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
33
+ {%- if forloop.last == false %}, {% endif -%}
34
+ {% endfor %}
35
+ {%- endunless -%}</p>
36
+
37
+ {%- if page.image.path -%}
38
+ <img itemprop="image" src="{{ page.image.path }}" alt="{{ page.image.description | default: page.title }}" />
39
+ {%- endif -%}
8
40
  </header>
9
41
 
10
- <div class="post-content">
11
- {{ content }}
12
- </div>
42
+ {% if page.content_warning == empty %}
43
+ <details>
44
+ <summary>
45
+ {{ site.i18n.cw }}
46
+ {{ page.content_warning }}
47
+ </summary>
48
+
49
+ <div class="post-content e-content" itemprop="articleBody">
50
+ {{ content }}
51
+ </div>
52
+ </details>
53
+ {% else %}
54
+ <div class="post-content e-content" itemprop="articleBody">
55
+ {{ content }}
56
+ </div>
57
+ {% endif %}
58
+
59
+ <footer>
60
+ <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
61
+ {{ site.url }}{{ page.url }}
62
+ </a>
63
+
64
+ {%- if page.uuid -%}
65
+ <span hidden itemprop="identifier">{{ page.uuid }}</span>
66
+ {%- endif -%}
13
67
 
68
+ {%- if license -%}
69
+ <p itemprop="license" itemtype="http://schema.org/CreativeWork">
70
+ <a rel="license" itemprop="url" href="{{ license.url }}">
71
+ <span itemprop="articleBody">
72
+ {{ license.description }}
73
+ </span>
74
+ </a>
75
+ </p>
76
+ {%- endif -%}
77
+ </footer>
14
78
  </article>
data/_layouts/post.html CHANGED
@@ -9,33 +9,52 @@ layout: default
9
9
 
10
10
  <header class="post-header">
11
11
  <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
12
+
13
+ {% if page.description %}
14
+ <div class="p-summary" itemprop="description">
15
+ {{ page.description | allow_inclusive_language_in_markdown | markdownify }}
16
+ </div>
17
+ {% endif %}
18
+
12
19
  <p class="post-meta">
13
20
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
14
21
  {{ page.date | date: date_format }}
15
22
  </time>
16
- {%- if page.modified_date -%}
23
+ {%- if page.last_modified_at -%}
17
24
  ~
18
- {%- assign mdate = page.modified_date | date_to_xmlschema -%}
19
- <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
20
- {{ mdate | date: date_format }}
25
+ <time class="dt-modified" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">
26
+ {{ page.last_modified_at | date: date_format }}
21
27
  </time>
22
28
  {%- endif -%}
23
- {%- if page.author -%}
29
+ {%- unless page.author == empty -%}
24
30
  • {% for author in page.author %}
25
31
  <span itemprop="author" itemscope itemtype="http://schema.org/Person">
26
32
  <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
27
33
  {%- if forloop.last == false %}, {% endif -%}
28
34
  {% endfor %}
29
- {%- endif -%}</p>
35
+ {%- endunless -%}</p>
30
36
 
31
37
  {%- if page.image.path -%}
32
38
  <img itemprop="image" src="{{ page.image.path }}" alt="{{ page.image.description | default: page.title }}" />
33
39
  {%- endif -%}
34
40
  </header>
35
41
 
36
- <div class="post-content e-content" itemprop="articleBody">
37
- {{ content }}
38
- </div>
42
+ {% if page.content_warning == empty %}
43
+ <div class="post-content e-content" itemprop="articleBody">
44
+ {{ content }}
45
+ </div>
46
+ {% else %}
47
+ <details>
48
+ <summary>
49
+ {{ site.i18n.cw }}
50
+ {{ page.content_warning }}
51
+ </summary>
52
+
53
+ <div class="post-content e-content" itemprop="articleBody">
54
+ {{ content }}
55
+ </div>
56
+ </details>
57
+ {% endif %}
39
58
 
40
59
  <footer>
41
60
  <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
@@ -380,3 +380,7 @@
380
380
  word-wrap: break-word !important;
381
381
  }
382
382
  }
383
+
384
+ details {
385
+ margin-bottom: 1rem;
386
+ }
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.0rc6
4
+ version: 2.7.0rc9
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-12-04 00:00:00.000000000 Z
12
+ date: 2023-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll