compost-jekyll-theme 0.3.4 → 0.3.5

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: 6628e894f09177ac1b9ae586498d5132a80e6c16b81a502148af29afdc65c66e
4
- data.tar.gz: 6b78f35b71e0dda0b7fc7159f6df01c4953c96666db782b3684b6344c6b1525f
3
+ metadata.gz: 9a41515272ee5ed385b4f6a340c16b9e74ea2057d17dce7a1af9da793a2f7c60
4
+ data.tar.gz: b78d7d977e8ec7ee58dbfec053a6ac7d5440f05163ae515a851a6e37791a62b6
5
5
  SHA512:
6
- metadata.gz: 7d6a5f5c503cb8a69c6579c6014a4c2d0d7fef68c8ea8b8c2b45b0433dfc661dd8da9b94cc5a9b84ba3a7751d94cc96a91eff5b43305ba4883d1ffc9fa43d23b
7
- data.tar.gz: 81a21bb682161d7fcf4bd53e779d6c734806d18179a2a5ebee2f1db7ef22155f2afdee2cb5c23ca37a7164663da934af59004f14a882b5a22199acc52177cd39
6
+ metadata.gz: ad39b06553014230bac28353a2320bb9ad8573cd423dc884c425ac75ebeba6167782ca43022e5d32bd9957bfba67db737fedbf87420684ea68f4adc23b26aa98
7
+ data.tar.gz: 9dd0a6625beb871418b123255e836a0a97e5861a851bdfe4827a9fb12e9f0cf9f1313ee570656dcfde1966ef700732ef49a65a8ac5fe184de112ecc77aaf6a33
@@ -0,0 +1,8 @@
1
+ ---
2
+ notifications:
3
+ qubit-guarantee.jsonld:
4
+ action: create
5
+ id: https://compost.testing.sutty.nl/qubit-guarantee.jsonld
6
+ actor_url: https://compost.testing.sutty.nl/about.jsonld
7
+ actor: "@compost@compost.testing.sutty.nl"
8
+ public_key_url: https://compost.testing.sutty.nl/about.jsonld#main-key
data/_data/en.yml CHANGED
@@ -160,3 +160,5 @@ globe: "Public"
160
160
  activities:
161
161
  Announce: "Boost"
162
162
  Like: "Fave"
163
+ divider: "Divider"
164
+ projects: "Projects:"
data/_data/es.yml CHANGED
@@ -161,3 +161,5 @@ globe: "Público"
161
161
  activities:
162
162
  Announce: "Impulso"
163
163
  Like: "Favorito"
164
+ divider: "Separador"
165
+ projects: "Proyectos:"
@@ -227,7 +227,7 @@ body_image:
227
227
  path:
228
228
  label:
229
229
  es: "Imagen de fondo del sitio"
230
- en: "Site´s background image"
230
+ en: "Site's background image"
231
231
  help:
232
232
  es: ""
233
233
  en: ""
@@ -238,6 +238,25 @@ body_image:
238
238
  help:
239
239
  es: ""
240
240
  en: ""
241
+ divider_image:
242
+ type: "image"
243
+ path:
244
+ label:
245
+ es: "Imagen del separador"
246
+ en: "Divider image"
247
+ help:
248
+ es: "Separa el contenido del inicio de la lista de artículos"
249
+ en: "Separates home content from article list"
250
+ support_image:
251
+ type: "image"
252
+ path:
253
+ label:
254
+ es: "Imagen del botón de donaciones"
255
+ en: "Donations button image"
256
+ description:
257
+ label:
258
+ es: "Descripción de la imagen"
259
+ en: "Image description"
241
260
  locales:
242
261
  type: "locales"
243
262
  label:
@@ -5,7 +5,7 @@
5
5
  {% endcomment %}
6
6
 
7
7
  {% if include.actor.available %}
8
- <span>{{ include.actor.name | strip_html }}</span>
8
+ <span class="break-wrap">{{ include.actor.name | strip_html }}</span>
9
9
  {% else %}
10
- <span>{{ include.actor }}</span>
10
+ <span class="break-wrap">{{ include.actor }}</span>
11
11
  {% endif %}
@@ -13,7 +13,7 @@
13
13
  {% endcapture %}
14
14
 
15
15
  {% capture mention %}
16
- <span class="h-card" translate="no">
16
+ <span class="h-card break-wrap" translate="no">
17
17
  {% if include.without_link %}
18
18
  <span class="mention">{{- mention -}}</span>
19
19
  {% else %}
@@ -4,9 +4,9 @@
4
4
  @param :image [Image] la imagen que queremos en el modal, contiene url y alt text
5
5
  {%- endcomment -%}
6
6
 
7
+ {% assign extra = 'data-action="click->modal#show"' %}
7
8
  {% assign alt = include.image.name | strip_html | escape %}
8
9
  {% assign src = include.image.url | strip_html | uri_escape %}
9
- {% assign extra = 'data-action="click->modal#show"' %}
10
10
 
11
11
  {% capture body %}
12
12
  <img class="background-white mw-100" title="{{ alt }}" alt="{{ alt }}" src="{{ src }}">
@@ -14,52 +14,51 @@
14
14
  {% endcapture %}
15
15
 
16
16
  {% capture header %}
17
- <div class="d-flex align-items-center h1 justify-content-center w-100">
18
- <span class="d-flex responsive-header font-weight-bold text-center">
19
- <i class="fa fa-{{fa}} text-primary mr-2"></i>
20
- <span>
21
- {{ site.i18n.login_modal[action.title].text | replace: "$usuarie", name }}
22
- </span>
23
- <div>
24
- <span class="px-3 py-2 m-0 h1" type="button" data-action="click->modal#hide">&times</span>
25
- <span class="sr-only">{{ site.i18n.close }}</span>
26
- </div>
27
- </span>
28
- </div>
17
+
18
+ <div class="d-flex align-items-center h1 justify-content-center w-100">
19
+ <span class="d-flex responsive-header font-weight-bold text-center">
20
+ <i class="fa fa-{{fa}} text-primary mr-2"></i>
21
+ <span class="break-wrap">{{ site.i18n.login_modal[action.title].text | replace: "$usuarie", name }}</span>
22
+ <div>
23
+ <span class="px-3 py-2 m-0 h1" type="button" data-action="click->modal#hide">&times</span>
24
+ <span class="sr-only">{{ site.i18n.close }}</span>
25
+ </div>
26
+ </span>
27
+ </div>
29
28
  {% endcapture %}
30
29
 
31
30
  {% capture body %}
32
- <p class="mb-2">{{site.i18n.login_modal.top_text | markdownify | replace: "$action", site.i18n.login_modal[action.title].title }}</p>
33
- <div class="mt-3 mb-2 h5">{{site.i18n.login_modal.question | markdownify}}</div>
34
- <div class="mb-3">
35
- <form
36
- class="needs-validation"
37
- data-controller="authorize-interaction"
38
- data-action="authorize-interaction#submit:prevent"
39
- data-authorize-interaction-uri-value="{{ include.uri | strip_html | absolute_url | uri_escape }}"
40
- >
41
- <div class="form-row align-items-center border-lg border-lg-primary py-1">
42
- <div class="col-12 col-lg mb-1 mb-lg-0">
43
- <label class="sr-only">{{site.i18n.login_modal.placeholder}}</label>
44
- <input
45
- class="form-control border border-primary border-lg-0"
46
- placeholder="{{site.i18n.login_modal.placeholder}}"
47
- autocomplete="impp"
48
- required
49
- data-authorize-interaction-target="instance"
50
- data-action="authorize-interaction#revalid"
51
- type="search"/>
52
- <div class="invalid-feedback">
53
- {{- site.i18n.login_modal.authorize_interaction_unsupported -}}
31
+ <p class="mb-2">{{site.i18n.login_modal.top_text | markdownify | replace: "$action", site.i18n.login_modal[action.title].title }}</p>
32
+ <div class="mt-3 mb-2 h5">{{site.i18n.login_modal.question | markdownify}}</div>
33
+ <div class="mb-3">
34
+ <form
35
+ class="needs-validation"
36
+ data-controller="authorize-interaction"
37
+ data-action="authorize-interaction#submit:prevent"
38
+ data-authorize-interaction-uri-value="{{ include.uri | strip_html | absolute_url | uri_escape }}"
39
+ >
40
+ <div class="form-row align-items-center border-lg border-lg-primary py-1">
41
+ <div class="col-12 col-lg mb-1 mb-lg-0">
42
+ <label class="sr-only">{{site.i18n.login_modal.placeholder}}</label>
43
+ <input
44
+ class="form-control border border-primary border-lg-0"
45
+ placeholder="{{site.i18n.login_modal.placeholder}}"
46
+ autocomplete="impp"
47
+ required
48
+ data-authorize-interaction-target="instance"
49
+ data-action="authorize-interaction#revalid"
50
+ type="search">
51
+ <div class="invalid-feedback">
52
+ {{- site.i18n.login_modal.authorize_interaction_unsupported -}}
53
+ </div>
54
54
  </div>
55
- </div>
56
55
 
57
- <div class="col-12 col-lg-auto">
58
- <button class="btn btn-primary btn-block py-btn-padding-y lh-btn-line-height f-16 font-weight-bold" type="submit">{{ site.i18n.take_me_home }}</button>
56
+ <div class="col-12 col-lg-auto">
57
+ <button class="btn btn-primary btn-block py-btn-padding-y lh-btn-line-height f-16 font-weight-bold" type="submit">{{ site.i18n.take_me_home }}</button>
58
+ </div>
59
59
  </div>
60
- </div>
61
- </form>
62
- </div>
60
+ </form>
61
+ </div>
63
62
  <small class="d-block mb-2">{{site.i18n.login_modal.small_text}}</small>
64
63
  <span>{{site.i18n.login_modal.bottom_text | markdownify}}</span>
65
64
  {% endcapture %}
@@ -11,7 +11,9 @@ Author block
11
11
  {% unless links == empty %}
12
12
  <div class="">
13
13
  <div class="py-3">
14
- {% include headings/h3.html text=include.title class="black source-serif font-weight-bold" %}
14
+ <a href="{{include.title.url}}" class="hover-black">
15
+ {% include headings/h3.html text=include.title.alias class="black source-serif font-weight-bold" %}
16
+ </a>
15
17
  </div>
16
18
 
17
19
  {% unless links == empty %}
@@ -4,6 +4,7 @@ Link externo.
4
4
 
5
5
  @param :href [String] La URL
6
6
  @param :class [String] Las clases del link
7
+ @param :text [String] El texto que llevará el link
7
8
  {%- endcomment -%}
8
9
 
9
10
  <a
@@ -0,0 +1,47 @@
1
+ ---
2
+ layout: "default_with_menu"
3
+ ---
4
+ {%- assign theme = site.posts | find: 'layout', 'theme' -%}
5
+
6
+ <div class="pt-md-80 px-3">
7
+ <div class="container-lg mx-auto">
8
+ <div class="d-flex flex-column align-items-center">
9
+ <h1 class="font-weight-bold mb-4">{{ page.title }}</h1>
10
+ <div class="{% unless theme.divider_image.path %} mb-5 {% endunless %} lead-md">
11
+ <div class="content">
12
+ {{ page.content }}
13
+ </div>
14
+ </div>
15
+
16
+ {% unless page.projects == empty %}
17
+ <h2 class="font-weight-bold mb-3">{{ site.i18n.projects }}</h2>
18
+ {% for project in page.projects %}
19
+ {% assign href = project %}
20
+ {% include external_link.html href=href class='' text=href %}
21
+ {% endfor %}
22
+ {% endunless %}
23
+ </div>
24
+
25
+ {% if theme.divider_image.path %}
26
+ {% include divider.html src=theme.divider_image.path alt=site.i18n.divider %}
27
+ {% else %}
28
+ <hr class="my-5">
29
+ {% endif %}
30
+
31
+ <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 container-lg mx-auto">
32
+ {% for post in page.posts %}
33
+ <div class="col pb-5 px-2">
34
+ {%
35
+ include cover_post/home.html
36
+ authors=post.authors
37
+ src=post.image.path
38
+ alt=post.title
39
+ title=post.title
40
+ description=post.description
41
+ href=post.url
42
+ %}
43
+ </div>
44
+ {% endfor %}
45
+ </div>
46
+ </div>
47
+ </div>
@@ -23,7 +23,7 @@ layout: "default_with_menu"
23
23
 
24
24
  {% unless authors == empty %}
25
25
  {% for author in authors %}
26
- {% include author_block.html title=author.alias links=author.projects %}
26
+ {% include author_block.html title=author links=author.projects %}
27
27
  {% endfor %}
28
28
  {% endunless %}
29
29
 
data/_layouts/home.html CHANGED
@@ -2,6 +2,7 @@
2
2
  layout: "default_with_menu"
3
3
  ---
4
4
 
5
+ {%- assign theme = site.posts | find: "layout", "theme" -%}
5
6
  {%- assign front_cover = site.posts | find: "layout", "front_cover" -%}
6
7
  {%- assign posts = site.posts | where: "layout", "post" -%}
7
8
  {%- assign back_cover = site.posts | find: "layout", "back_cover" -%}
@@ -14,8 +15,9 @@ layout: "default_with_menu"
14
15
  subtitle=front_cover.subtitle
15
16
  content=front_cover.content
16
17
  %}
17
-
18
- {% include divider.html src="public/nettles-small-clear.gif" alt="divider" %}
18
+ {% if theme.divider_image.path %}
19
+ {% include divider.html src=theme.divider_image.path alt=site.i18n.divider %}
20
+ {% endif %}
19
21
 
20
22
  <article class="row row-cols-1 row-cols-md-2 row-cols-lg-3 container-lg mx-auto">
21
23
  {% for post in posts %}
data/_layouts/post.html CHANGED
@@ -27,7 +27,7 @@ layout: "default_with_menu"
27
27
  {% unless page.authors == empty %}
28
28
  <p class="lead text-uppercase letter-spacing-5">
29
29
  {% for author in page.authors %}
30
- {{ author.title -}}
30
+ <a href="{{author.url}}">{{ author.title -}}</a>
31
31
  {%- unless forloop.last %} {{ site.i18n.and }} {% endunless %}
32
32
  {% endfor %}
33
33
  </p>
data/_sass/utilities.scss CHANGED
@@ -276,3 +276,8 @@ code {
276
276
  flex: 0 1 auto;
277
277
  margin: 60px;
278
278
  }
279
+
280
+ .break-wrap {
281
+ word-break: break-word !important;
282
+ word-wrap: break-word !important;
283
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compost-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-07 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -304,6 +304,7 @@ files:
304
304
  - LICENSE.txt
305
305
  - README.md
306
306
  - _data/actions.yml
307
+ - _data/activity_pub.yml
307
308
  - _data/components.yml
308
309
  - _data/en.yml
309
310
  - _data/es.yml
@@ -430,6 +431,7 @@ files:
430
431
  - _includes/toggler/toggler_label.html
431
432
  - _includes/toggler/toggler_related.html
432
433
  - _layouts/about.html
434
+ - _layouts/author.html
433
435
  - _layouts/back_cover.html
434
436
  - _layouts/code_of_conduct.html
435
437
  - _layouts/default.html
@@ -516,7 +518,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
516
518
  - !ruby/object:Gem::Version
517
519
  version: '0'
518
520
  requirements: []
519
- rubygems_version: 3.3.26
521
+ rubygems_version: 3.3.27
520
522
  signing_key:
521
523
  specification_version: 4
522
524
  summary: Jekyll port for COMPOST Magazine Issue 02