compost-jekyll-theme 0.4.16 → 0.4.18

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: f282c4777877d57b08c7552081d09b53b8667a8cc9086ee8630427850ce2b69e
4
- data.tar.gz: ae55e4569cef9d3da6cf963df8703ed77180111410f146d2214bb05d6539b123
3
+ metadata.gz: 7de49e0b7c80e278da5c37e42be637851d9d9d85c946f55e436f1b1ec66db17e
4
+ data.tar.gz: c85ed7d51c92f303fe5451348f5cd9f075a0eaa8ceed3c9d6a999958455fa176
5
5
  SHA512:
6
- metadata.gz: 8567e381f66c32376bc258bd5ecdf4e8994ba0e5b87bbc3f6766061350837869712053296ca492ab1f6973fe27016f16205925460b7ccc894a28ee497ceb8f50
7
- data.tar.gz: 681f9f5050f7042d98ba6ff8cbdcb2f797f9649abddea0640d8cf52bfeb9fb5d3aa0f80c3c87359c125582a9627b9afd63061a49a6d44f2045bb3b67b66d8fd1
6
+ metadata.gz: 64dbb0233ce85d34a5ac95f5015d5f366c80d1fc6d75da7656b4836f4343a28039807ed5d4997334a8bccac125004f49ebfbc0c8cb1c9aad457c5a6d4265314f
7
+ data.tar.gz: 64a1a0c5c092646a4b47d2a3e4b5fe7b73643890c016ed34a066b010313babf62ac8abb9b843e94f7f04de598cae8b08908293b9901a7cd78dfb28c7e61bdc46
checksums.yaml.gz.sig CHANGED
Binary file
data/_data/en.yml CHANGED
@@ -72,6 +72,7 @@ layouts:
72
72
  goal: "Goal"
73
73
  license: "License"
74
74
  menu: "Menu item"
75
+ menu_internal: "Link in Menu"
75
76
  post: "Post"
76
77
  privacy_policy: "Privacy policy"
77
78
  supporter: "Supporter"
@@ -132,14 +133,14 @@ login_modal:
132
133
  <mark class="primary background-transparent">Note: you will need to reselect the <strong>$action</strong> option from your account.</mark>
133
134
  question: "**Where is your account hosted?**"
134
135
  small_text: |
135
- Tip: That's the website where you signed up. If you don't remember, look for the welcome e-mail in your inbox.
136
+ Tip: That's the website where you signed up. If you don't remember, look for the welcome e-mail in your inbox.
136
137
  You can also enter your full username! (e.g. @sutty@todon.nl)
137
138
  bottom_text: |
138
139
  Want to reply from another Fediverse-integrated Sutty website?
139
140
  You can do so from the panel.
140
141
  Keep in mind that for now it isn't possible to favorite, retoot or bookmark from here.
141
142
 
142
- Don't have a Fediverse account yet?
143
+ Don't have a Fediverse account yet?
143
144
  [You can choose how to create one.](https://joinfediverse.wiki/How_do_I_get_an_account%3F)
144
145
  placeholder: "Domain of your home server, e.g. rebel.ar"
145
146
  help: |
data/_data/es.yml CHANGED
@@ -72,6 +72,7 @@ layouts:
72
72
  goal: "Objetivo"
73
73
  license: "Licencia"
74
74
  menu: "Ítem del menú"
75
+ menu_internal: "Vínculo en el menú"
75
76
  post: "Artículo"
76
77
  privacy_policy: "Política de privacidad"
77
78
  supporter: "Patrocinadorx"
@@ -126,21 +127,21 @@ login_modal:
126
127
  title: "guardar"
127
128
  text: "Guardar la publicación de $usuarie"
128
129
  top_text: |
129
- Para interactuar en el Fediverso, siempre es necesario hacerlo desde una cuenta en cualquiera de sus instancias.
130
+ Para interactuar en el Fediverso, siempre es necesario hacerlo desde una cuenta en cualquiera de sus instancias.
130
131
  ¿Tienes una cuenta?
131
132
 
132
133
  <mark class="primary background-transparent">Nota: deberás volver a marcar <strong>$action</strong> desde tu instancia.</mark>
133
134
  question: "**¿Dónde tienes tu cuenta?**"
134
135
  small_text: |
135
- Pista: ese es el sitio donde te registraste. Si no lo recuerdas,
136
- busca el correo electrónico de bienvenida en tu bandeja de entrada.
136
+ Pista: ese es el sitio donde te registraste. Si no lo recuerdas,
137
+ busca el correo electrónico de bienvenida en tu bandeja de entrada.
137
138
  También puedes introducir tu nombre de usuario completo (por ejemplo @sutty@todon.nl)
138
139
  bottom_text: |
139
- ¿Quieres responder desde otro sitio de Sutty que tenga habilitada la integración con el Fediverso?
140
- Para escribir una respuesta, puedes hacerlo desde el panel.
140
+ ¿Quieres responder desde otro sitio de Sutty que tenga habilitada la integración con el Fediverso?
141
+ Para escribir una respuesta, puedes hacerlo desde el panel.
141
142
  Ten en cuenta que por ahora no es posible marcar como favorito, retootear o guardar.
142
143
 
143
- ¿Aún no tienes cuenta en el Fediverso?
144
+ ¿Aún no tienes cuenta en el Fediverso?
144
145
  [Puedes elegir cómo crearla.](https://joinfediverse.wiki/What_is_the_Fediverse%3F/es#%C2%BFC%C3%B3mo_puedo_crear_una_cuenta?)
145
146
  placeholder: "Dominio de tu servidor, por ejemplo rebel.ar"
146
147
  help: |
@@ -0,0 +1,43 @@
1
+ ---
2
+ title:
3
+ type: "string"
4
+ required: true
5
+ label:
6
+ en: "Item name"
7
+ es: "Nombre del ítem"
8
+ help:
9
+ en: "As shown on the menu"
10
+ es: "Tal como aparece en el menú"
11
+ link:
12
+ type: "string"
13
+ required: true
14
+ label:
15
+ en: "URL"
16
+ es: "Vínculo"
17
+ help:
18
+ en: ""
19
+ es: ""
20
+ locales:
21
+ type: "locales"
22
+ label:
23
+ es: "Traducciones"
24
+ en: "Translations"
25
+ help:
26
+ es: "Vínculo al mismo artículo en otros idiomas"
27
+ en: "Link to same post in other languages"
28
+ draft:
29
+ type: "boolean"
30
+ label:
31
+ es: "Borrador"
32
+ en: "Draft"
33
+ help:
34
+ es: 'Al activar "Borrador" este contenido se mantendrá disponible en el panel, pero no se publica en el sitio como los demás contenidos al tocar "Publicar todos los cambios"'
35
+ en: 'By activating "Draft", this content will remain available on the dashboard, but will not be published on the site when you tap "Publish all changes" (other content which does not have this option selected will).'
36
+ order:
37
+ type: "order"
38
+ label:
39
+ es: "Orden"
40
+ en: "Order"
41
+ help:
42
+ es: "La posición del artículo en la lista de artículos"
43
+ en: "Position in list of posts"
@@ -8,6 +8,15 @@ title:
8
8
  help:
9
9
  en: "The name you want to give to this customization"
10
10
  es: "El nombre que quieras darle a esta personalización"
11
+ posts_limit:
12
+ type: "number"
13
+ required: true
14
+ label:
15
+ es: "Cantidad de artículos en la portada"
16
+ en: "Posts limit on home page"
17
+ default:
18
+ es: 100
19
+ en: 100
11
20
  font_family_sans_serif:
12
21
  type: "predefined_value"
13
22
  label:
@@ -382,6 +391,54 @@ divider_image:
382
391
  help:
383
392
  es: "Separa el contenido del inicio de la lista de artículos. Ancho 150px."
384
393
  en: "Separates home content from article list. 150px wide."
394
+ prev_image:
395
+ type: "image"
396
+ path:
397
+ label:
398
+ es: "Imagen para ir al artículo anterior"
399
+ en: "Previous post image"
400
+ help:
401
+ es: "Flecha o indicador en el pie de cada artículo. Ancho 50px"
402
+ en: "Arrow or indicator at the footer of each post. 50px wide."
403
+ default:
404
+ es:
405
+ path: "public/z0cacqczqtqmnz3vct76gi4goh1y/arrow_previous.png"
406
+ description: "Ir al artículo anterior"
407
+ en:
408
+ path: "public/z0cacqczqtqmnz3vct76gi4goh1y/arrow_previous.png"
409
+ description: "Go to previous post"
410
+ home_image:
411
+ type: "image"
412
+ path:
413
+ label:
414
+ es: "Imagen para volver a la portada"
415
+ en: "Go back home image"
416
+ help:
417
+ es: "Indicador en el pie de cada artículo. Ancho 80px"
418
+ en: "Indicator at the footer of each post. 80px wide."
419
+ default:
420
+ es:
421
+ path: "public/wuq45id5cmkx4wgl465gjmunlobf/home.png"
422
+ description: "Ir a la portada"
423
+ en:
424
+ path: "public/wuq45id5cmkx4wgl465gjmunlobf/home.png"
425
+ description: "Go to home page"
426
+ next_image:
427
+ type: "image"
428
+ path:
429
+ label:
430
+ es: "Imagen para ir al artículo siguiente"
431
+ en: "Next post image"
432
+ help:
433
+ es: "Flecha o indicador en el pie de cada artículo. Ancho 50px"
434
+ en: "Arrow or indicator at the footer of each post. 50px wide."
435
+ default:
436
+ es:
437
+ path: "public/mu35j3nre538wxabdl3ryetc0csv/arrow_next.png"
438
+ description: "Ir al artículo siguiente"
439
+ en:
440
+ path: "public/mu35j3nre538wxabdl3ryetc0csv/arrow_next.png"
441
+ description: "Go to next post"
385
442
  locales:
386
443
  type: "locales"
387
444
  label:
data/_data/schema.yml CHANGED
@@ -3,6 +3,7 @@ organization:
3
3
  theme:
4
4
  - "about"
5
5
  - "menu"
6
+ - "menu_internal"
6
7
  front_cover: []
7
8
  post:
8
9
  - "author"
@@ -14,6 +14,7 @@
14
14
 
15
15
  {%- assign menu_id = menu | prepend: 'r-' -%}
16
16
  {%- assign items = site.posts | where: 'layout', 'menu' -%}
17
+ {%- assign items = site.posts | where: 'layout', 'menu_internal' | concat: items | order -%}
17
18
  {%- assign posts = site.posts | where: 'layout', 'post' -%}
18
19
  {%- assign back_cover = site.posts | find: 'layout', 'back_cover' -%}
19
20
  {%- assign footer = site.posts | find: 'layout', 'footer' -%}
@@ -49,7 +50,11 @@
49
50
  <div class="container-lg mx-auto">
50
51
  <div class="ml-14 mt-3">
51
52
  {% for item in items %}
52
- {% include_cached menu_item.html text=item.title href=item.post.url %}
53
+ {% if item.post.url %}
54
+ {% include_cached menu_item.html text=item.title href=item.post.url %}
55
+ {% else %}
56
+ {% include_cached menu_item.html text=item.title href=item.link %}
57
+ {% endif %}
53
58
  {% endfor %}
54
59
  </div>
55
60
 
@@ -21,13 +21,13 @@
21
21
  aria-hidden="true"
22
22
  {% endunless %}
23
23
  >
24
- {% include_cached image_with_link.html src=include.src_previous alt=include.alt_previous width=51 href=include.href_previous img_class="px-2" component_class=previous_class %}
24
+ {% include_cached image_with_link.html src=include.src_previous alt=include.alt_previous width=50 href=include.href_previous img_class="px-2" component_class=previous_class %}
25
25
  </div>
26
26
 
27
27
  <div
28
28
  class="transform-scale-n8 transform-scale-hover-1"
29
29
  >
30
- {% include_cached image_with_link.html src=include.src_home alt=site.i18n.home width=79 href=include.href_home img_class="px-2" %}
30
+ {% include_cached image_with_link.html src=include.src_home alt=site.i18n.home width=80 href=include.href_home img_class="px-2" %}
31
31
  </div>
32
32
 
33
33
  <div
@@ -36,6 +36,6 @@
36
36
  aria-hidden="true"
37
37
  {% endunless %}
38
38
  >
39
- {% include_cached image_with_link.html src=include.src_next alt=include.alt_next width=51 href=include.href_next img_class="px-2" component_class=next_class %}
39
+ {% include_cached image_with_link.html src=include.src_next alt=include.alt_next width=50 href=include.href_next img_class="px-2" component_class=next_class %}
40
40
  </div>
41
41
  </div>
@@ -2,6 +2,7 @@
2
2
  layout: "default_with_menu"
3
3
  ---
4
4
  {%- assign authors = site.posts | where: 'layout', 'author' -%}
5
+ {%- assign theme = site.posts | find: 'layout', 'theme' -%}
5
6
  {%- assign back_covers = site.posts | where: 'layout', 'back_cover' -%}
6
7
  {%- assign posts = site.posts | where: 'layout', 'post' | concat: back_covers -%}
7
8
  {%- assign supporters = site.posts | where: 'layout', 'supporter' -%}
@@ -62,6 +63,6 @@ layout: "default_with_menu"
62
63
  </div>
63
64
 
64
65
  <footer class="d-flex flex-column align-items-center pt-5">
65
- {% include_cached navigation_post.html src_previous="public/arrow_previous.png" src_home="public/home.png" src_next="public/arrow_next.png" href_previous=prev.url href_home="?#" href_next=next.url %}
66
+ {% include_cached navigation_post.html src_previous=theme.prev_image.path src_home=theme.home_image.path src_next=theme.next_image.path href_previous=prev.url href_home="?#" href_next=next.url %}
66
67
  </footer>
67
68
  </article>
data/_layouts/home.html CHANGED
@@ -2,9 +2,10 @@
2
2
  layout: "default_with_menu"
3
3
  ---
4
4
  {%- assign theme = site.posts | find: 'layout', 'theme' -%}
5
+ {%- assign posts_limit = theme.posts_limit | default: 100 -%}
5
6
  {%- assign front_cover = site.posts | find: 'layout', 'front_cover' -%}
6
- {%- assign posts = site.posts | where: 'layout', 'post' -%}
7
- {%- assign back_cover = site.posts | find: 'layout', 'back_cover' -%}
7
+ {%- assign back_covers = site.posts | where: 'layout', 'back_cover' -%}
8
+ {%- assign posts = site.posts | where: 'layout', 'post' | concat: back_covers -%}
8
9
 
9
10
  <div class="pt-md-80 px-3">
10
11
  {%
@@ -19,7 +20,7 @@ layout: "default_with_menu"
19
20
  {% include_cached divider.html src=theme.divider_image.path alt=site.i18n.divider %}
20
21
 
21
22
  <article class="row row-cols-1 row-cols-md-2 row-cols-lg-3 container-lg mx-auto">
22
- {% for post in posts %}
23
+ {% for post in posts limit: posts_limit %}
23
24
  <div class="col pb-5 px-2">
24
25
  {%
25
26
  include_cached cover_post/home.html
@@ -32,11 +33,5 @@ layout: "default_with_menu"
32
33
  %}
33
34
  </div>
34
35
  {% endfor %}
35
-
36
- {%- if back_cover -%}
37
- <div class="col pb-5 px-2">
38
- {% include_cached cover_post/home.html title=back_cover.title src=back_cover.image.path alt=back_cover.image.description href=back_cover.url description=back_cover.description %}
39
- </div>
40
- {%- endif -%}
41
36
  </article>
42
37
  </div>
data/_layouts/post.html CHANGED
@@ -2,6 +2,7 @@
2
2
  layout: "default_with_menu"
3
3
  ---
4
4
  {%- assign about = site.posts | find: 'layout', 'about' -%}
5
+ {%- assign theme = site.posts | find: 'layout', 'theme' -%}
5
6
  {%- assign back_covers = site.posts | where: 'layout', 'back_cover' -%}
6
7
  {%- assign posts = site.posts | where: 'layout', 'post' | concat: back_covers -%}
7
8
  {%- assign authors = site.posts | where: 'layout', 'author' -%}
@@ -74,6 +75,6 @@ layout: "default_with_menu"
74
75
  {% include_cached activity_pub/interactions.html activity=page.activity profile=site.actor %}
75
76
  {% endif %}
76
77
 
77
- {% include_cached navigation_post.html src_previous="public/arrow_previous.png" src_home="public/home.png" src_next="public/arrow_next.png" href_previous=prev.url href_home="?#" href_next=next.url %}
78
+ {% include_cached navigation_post.html src_previous=theme.prev_image.path src_home=theme.home_image.path src_next=theme.next_image.path href_previous=prev.url href_home="?#" href_next=next.url %}
78
79
  </footer>
79
80
  </article>
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compost-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.16
4
+ version: 0.4.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty
@@ -35,7 +35,7 @@ cert_chain:
35
35
  AloSNM24NWhA2fme6cgZOLKXvAKgf6pQsNtAnU1Pliou5GvJ62d8l+pdKGxJ4yTn
36
36
  fVGcO+Lu49Bx33evJ2ixPmQ2OXc=
37
37
  -----END CERTIFICATE-----
38
- date: 2026-10-21 00:00:00.000000000 Z
38
+ date: 2026-11-05 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: jekyll
@@ -354,6 +354,7 @@ files:
354
354
  - _data/layouts/goal.yml
355
355
  - _data/layouts/license.yml
356
356
  - _data/layouts/menu.yml
357
+ - _data/layouts/menu_internal.yml
357
358
  - _data/layouts/post.yml
358
359
  - _data/layouts/privacy_policy.yml
359
360
  - _data/layouts/support.yml
metadata.gz.sig CHANGED
Binary file