compost-jekyll-theme 0.2.2 → 0.3.0

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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/_data/actions.yml +9 -0
  3. data/_data/activity_pub.yml +29 -0
  4. data/_data/components.yml +10 -1
  5. data/_data/en.yml +123 -0
  6. data/_data/es.yml +124 -0
  7. data/_data/fixtures/activity_pub/activities/sutty.yml +65 -0
  8. data/_data/fixtures/activity_pub/likes.yml +124 -0
  9. data/_data/fixtures/activity_pub/replies.yml +722 -0
  10. data/_data/fixtures/activity_pub/shared.yml +217 -0
  11. data/_data/fixtures/activity_pub/users/cibor_yogui.yml +93 -0
  12. data/_data/fixtures/activity_pub/users/edumerco.yml +108 -0
  13. data/_data/fixtures/activity_pub/users/f.yml +107 -0
  14. data/_data/fixtures/activity_pub/users/sutty.yml +105 -0
  15. data/_data/manifest.json +561 -257
  16. data/_data/placeholder.yml +11 -0
  17. data/_data/theme.yml +18 -14
  18. data/_includes/activity_pub/actor.html +11 -0
  19. data/_includes/activity_pub/actor_mention.html +28 -0
  20. data/_includes/activity_pub/button.html +22 -0
  21. data/_includes/activity_pub/button_bar.html +16 -0
  22. data/_includes/activity_pub/cards.html +28 -0
  23. data/_includes/activity_pub/fediverse_interactions.html +2 -0
  24. data/_includes/activity_pub/generic_modal.html +55 -0
  25. data/_includes/activity_pub/image_modal.html +27 -0
  26. data/_includes/activity_pub/interactions.html +78 -0
  27. data/_includes/activity_pub/login_modal.html +70 -0
  28. data/_includes/activity_pub/reaction.html +45 -0
  29. data/_includes/activity_pub/reactions.html +17 -0
  30. data/_includes/activity_pub/replying_to.html +23 -0
  31. data/_includes/activity_pub/text_modal.html +16 -0
  32. data/_includes/activity_pub/toot_card.html +95 -0
  33. data/_includes/activity_pub/url.html +8 -0
  34. data/_includes/activity_pub/video_modal.html +20 -0
  35. data/_includes/bootstrap/custom_select.html +18 -0
  36. data/_includes/cover_post/generic.html +1 -1
  37. data/_includes/date.html +12 -0
  38. data/_includes/details.html +26 -0
  39. data/_includes/embed_responsive.html +3 -2
  40. data/_includes/external_link.html +15 -0
  41. data/_includes/fa.html +11 -0
  42. data/_includes/headings/with_link.html +1 -1
  43. data/_includes/theme/cards.html +7 -0
  44. data/_includes/theme/en_respuesta_a.html +1 -0
  45. data/_includes/theme/fediverse_interactions.html +1 -0
  46. data/_includes/theme/llamar_modal.html +21 -0
  47. data/_includes/theme/llamar_modal_logueo.html +1 -0
  48. data/_includes/theme/modal_ayuda.html +2 -0
  49. data/_includes/theme/modal_imagen.html +5 -0
  50. data/_includes/theme/modal_video.html +5 -0
  51. data/_includes/theme/navigation_post.html +3 -3
  52. data/_includes/theme/reactions.html +5 -0
  53. data/_includes/theme/toot_card.html +4 -0
  54. data/_includes/toggler/toggler.html +4 -3
  55. data/_layouts/back_cover.html +1 -1
  56. data/_layouts/default.html +1 -1
  57. data/_layouts/page.html +5 -0
  58. data/_layouts/post.html +20 -11
  59. data/_layouts/support.html +17 -16
  60. data/_sass/content.scss +15 -5
  61. data/_sass/details.scss +28 -0
  62. data/_sass/utilities.scss +21 -5
  63. data/assets/css/styles.scss +2 -0
  64. data/assets/fonts/forkawesome-webfont.woff2 +3 -0
  65. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4gaVI.woff2 +0 -0
  66. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4iaVIGxA.woff2 +0 -0
  67. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4jaVIGxA.woff2 +0 -0
  68. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4kaVIGxA.woff2 +0 -0
  69. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4saVIGxA.woff2 +0 -0
  70. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4taVIGxA.woff2 +0 -0
  71. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4uaVIGxA.woff2 +0 -0
  72. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4vaVIGxA.woff2 +0 -0
  73. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2 +0 -0
  74. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4iaVIGxA.woff2 +0 -0
  75. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4jaVIGxA.woff2 +0 -0
  76. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4kaVIGxA.woff2 +0 -0
  77. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4saVIGxA.woff2 +0 -0
  78. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4taVIGxA.woff2 +0 -0
  79. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4uaVIGxA.woff2 +0 -0
  80. data/assets/fonts/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4vaVIGxA.woff2 +0 -0
  81. data/assets/fonts/robotomono/v22/L0xoDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAOW9-subset.woff2 +0 -0
  82. data/assets/fonts/robotomono/v22/L0xoDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAOW9.ttf +0 -0
  83. data/assets/fonts/robotomono/v22/L0xoDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrmAB-W9-subset.woff2 +0 -0
  84. data/assets/fonts/robotomono/v22/L0xoDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrmAB-W9.ttf +0 -0
  85. data/assets/fonts/robotomono/v22/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vqPQw-subset.woff2 +0 -0
  86. data/assets/fonts/robotomono/v22/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vqPQw.ttf +0 -0
  87. data/assets/fonts/robotomono/v22/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_Of2PQw-subset.woff2 +0 -0
  88. data/assets/fonts/robotomono/v22/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_Of2PQw.ttf +0 -0
  89. data/assets/fonts/sourceserif4/SourceSerif4-Bold.ttf.woff2 +0 -0
  90. data/assets/fonts/sourceserif4/SourceSerif4-BoldIt.ttf.woff2 +0 -0
  91. data/assets/fonts/sourceserif4/SourceSerif4-It.ttf.woff2 +0 -0
  92. data/assets/fonts/sourceserif4/SourceSerif4-Regular.ttf.woff2 +0 -0
  93. data/assets/fonts/worksans/v18/QGY9z_wNahGAdqQ43Rh_ebrnlwyYfEPxPoGUgGsJow-subset.woff2 +0 -0
  94. data/assets/fonts/worksans/v18/QGY9z_wNahGAdqQ43Rh_ebrnlwyYfEPxPoGUgGsJow.ttf +0 -0
  95. data/assets/js/pack.3KYIYXYU.js +3 -0
  96. data/assets/js/pack.3KYIYXYU.js.map +3 -0
  97. metadata +68 -8
  98. data/assets/js/pack.27TCBNGN.js +0 -40
  99. data/assets/js/pack.27TCBNGN.js.map +0 -7
@@ -0,0 +1,18 @@
1
+ {% comment %}
2
+
3
+ @param class [String] Extra classes
4
+ @param extra [String] Extra attributes
5
+ @param options [Array<Hash>] Options
6
+ @param selected [Boolean] Default option
7
+ @param extra [String] Extra attributes
8
+ @param value [String] Value
9
+ @param title [String] Title
10
+ {% endcomment %}
11
+
12
+ <select class="custom-select {{ include.class }}" {{ include.extra }}>
13
+ {% for options in include.options %}
14
+ <option {{ options.selected }} {{ options.extra }} value="{{ options.value | default: options.title | escape }}">
15
+ {{- options.title -}}
16
+ </option>
17
+ {% endfor %}
18
+ </select>
@@ -22,7 +22,7 @@ La ficha de post en el índice de artículos.
22
22
  <span class="sr-only">{{ include.alt }}</span>
23
23
  </a>
24
24
 
25
- {% include embed_responsive.html src=include.src width=700 x="700" y="350" alt=include.alt embed_class="shadow" %}
25
+ {% include embed_responsive.html src=include.src width=700 x="700" y="350" alt=include.alt embed_class="shadow" img_class="w-100 h-100 object-fit-cover" %}
26
26
 
27
27
  {% include headings/h1.html text=include.title class=include.title_class %}
28
28
 
@@ -0,0 +1,12 @@
1
+ {% comment %}
2
+ La fecha de un artículo
3
+
4
+ @param :date [String] La fecha con formato
5
+ @param :extra [String] Atributos extra
6
+ {% endcomment %}
7
+
8
+ <time
9
+ datetime="{{ include.date | date_to_xmlschema }}"
10
+ {{ include.extra }}>
11
+ {{- include.date | date_local: include.format -}}
12
+ </time>
@@ -0,0 +1,26 @@
1
+ {%- comment -%}
2
+
3
+ Details: elementos con dropdown
4
+
5
+ @param :component_class [String] Las clases del componente
6
+ @param :summary_class [String] Las clases del summary
7
+ @param :element_title [String] El título del elemento (summary)
8
+ @param :title_class [String] Las clases del título
9
+ @param :font_size [String] El tamaño de los íconos de abrir y cerrar
10
+ @param :element_text [String] El texto del elemento
11
+ @param :text_class [String] Las clases del texto
12
+ {%- endcomment -%}
13
+
14
+ {%- assign class_close = "hide-when-open " | append: include.font_size -%}
15
+ {%- assign class_open = "show-when-open " | append: include.font_size -%}
16
+
17
+ <details class="{{ include.component_class }}">
18
+ <summary class="d-flex justify-content-between {{ include.summary_class }}">
19
+ <div class="{{ include.title_class }}">{{ include.element_title }}</div>
20
+ {%- include fa.html icon="angle-down" class=class_close description=site.i18n.details.open -%}
21
+ {%- include fa.html icon="angle-up" class=class_open description=site.i18n.details.close -%}
22
+ </summary>
23
+
24
+ <div class="{{ include.text_class }}">{{ include.element_text }}</div>
25
+ <hr/>
26
+ </details>
@@ -9,11 +9,12 @@ Embed responsive
9
9
  @param :width [Integer]
10
10
  @param :height [Integer]
11
11
  @param :embed_class [String]
12
+ @param :img_class [String]
12
13
  {%- endcomment -%}
13
14
 
14
- <div class="embed-responsive embed-responsive-{{ include.x }}by{{ include.y }} {{ include.embed_class }}">
15
+ <div class="embed-responsive embed-responsive-{{ include.x }}by{{ include.y }} {{ include.embed_class }}" {{ include.extra }}>
15
16
  {% if include.src %}
16
- {%- include picture.html class="embed-responsive-item" img_class="w-100 h-100 object-fit-cover" src=include.src alt=include.alt width=include.width -%}
17
+ {%- include picture.html class="embed-responsive-item" img_class=include.img_class src=include.src alt=include.alt width=include.width -%}
17
18
  {% else %}
18
19
  <div class="embed-responsive-item background-primary"></div>
19
20
  {% endif %}
@@ -0,0 +1,15 @@
1
+ {%- comment -%}
2
+
3
+ Link externo.
4
+
5
+ @param :href [String] La URL
6
+ @param :class [String] Las clases del link
7
+ {%- endcomment -%}
8
+
9
+ <a
10
+ class="text-decoration-none {{ include.class }}"
11
+ href="{{ include.href | uri_escape }}"
12
+ {{ include.href | start_with: "https://" | value_if: 'rel="noopener" target="_blank"' }}
13
+ {{ include.href | start_with: "http://" | value_if: 'rel="noopener" target="_blank"' }}>
14
+ {{ include.text }}
15
+ </a>
data/_includes/fa.html ADDED
@@ -0,0 +1,11 @@
1
+ {%- comment -%}
2
+
3
+ Un ícono
4
+
5
+ @param :icon [String] El ícono
6
+ @param :class [String] Las clases
7
+ @param :description [String] La descripción
8
+ {%- endcomment -%}
9
+
10
+ <i title="{{ include.description | escape_once }}" aria-hidden="true" class="fa fa-{{ include.icon }} {{ include.class }}">{{ include.content }}</i>
11
+ <span class="sr-only">{{ include.description }}</span>
@@ -9,7 +9,7 @@ La base para un encabezado
9
9
 
10
10
  {%- assign slug = include.text | slugify -%}
11
11
  <h{{ include.level }} id="{{ slug }}">
12
- <a class="{{ include.class }}" href="#{{ slug }}">
12
+ <a class="{{ include.class }}" href="#{{ slug }}" data-turbo="false">
13
13
  {{- include.text -}}
14
14
  </a>
15
15
  </h{{ include.level }}>
@@ -0,0 +1,7 @@
1
+ <div class="w-md-50">
2
+ {% include activity_pub/cards.html
3
+ profile=site.data.fixtures.activity_pub.users.sutty
4
+ activity=site.data.fixtures.activity_pub.activities.sutty
5
+ replies=site.data.fixtures.activity_pub.replies
6
+ %}
7
+ </div>
@@ -0,0 +1 @@
1
+ {% include activity_pub/replying_to.html activity=site.data.fixtures.activity_pub.activities.sutty %}
@@ -0,0 +1 @@
1
+ {% include_cached bootstrap/custom_select.html options=site.i18n.fediverse_interactions %}
@@ -0,0 +1,21 @@
1
+ {% capture header %}
2
+ <h1> Hola modal </h1>
3
+ {% endcapture %}
4
+
5
+ {% capture body %}
6
+ <h1> Hola soy un body </h1>
7
+ {% endcapture %}
8
+
9
+ {% capture footer %}
10
+ <h1> Hola soy un footer </h1>
11
+ {% endcapture %}
12
+
13
+ <div data-controller="modal">
14
+ <button data-action="modal#show">Abrir</button>
15
+
16
+ {% include activity_pub/generic_modal.html body=body %}
17
+
18
+ </div>
19
+
20
+
21
+
@@ -0,0 +1 @@
1
+ {% include activity_pub/button_bar.html uri="https://dweb.sutty.nl/" %}
@@ -0,0 +1,2 @@
1
+ {% assign text = site.i18n.help | markdownify | replace: '<a ', "<a target='_blank' rel='noopener' " %}
2
+ {% include activity_pub/text_modal.html text=text fa="question-circle-o" %}
@@ -0,0 +1,5 @@
1
+ {% for image in site.data.placeholder.images %}
2
+
3
+ {% include activity_pub/image_modal.html image=image %}
4
+
5
+ {% endfor %}
@@ -0,0 +1,5 @@
1
+ {% for video in site.data.placeholder.videos %}
2
+
3
+ {% include activity_pub/video_modal.html video=video %}
4
+
5
+ {% endfor %}
@@ -1,17 +1,17 @@
1
1
  <div class="mb-3">
2
- {% include headings/h2.html text="Todos los botones visibles" %}
2
+ {% include headings/with_link.html level=2 text="Todos los botones visibles" %}
3
3
 
4
4
  {% include navigation_post.html src_previous="public/arrow_previous.png" src_home="public/home.png" alt_previous=site.i18n.previous_page src_next="public/arrow_next.png" href_previous="#biografía-de-autore-en-los-artículos" href_home="?#" href_next="#imagen-con-link-de-sección-supporters" alt_next=site.i18n.next_page %}
5
5
  </div>
6
6
 
7
7
  <div class="mb-3">
8
- {% include headings/h2.html text="Cuando se llega al principio del indice de contenido" %}
8
+ {% include headings/with_link.html level=2 text="Cuando se llega al principio del indice de contenido" %}
9
9
 
10
10
  {% include navigation_post.html src_previous="public/arrow_previous.png" alt_previous=site.i18n.previous_page src_home="public/home.png" src_next="public/arrow_next.png" href_home="?#" href_next="#imagen-con-link-de-sección-supporters" alt_next=site.i18n.next_page %}
11
11
  </div>
12
12
 
13
13
  <div class="mb-3">
14
- {% include headings/h2.html text="Cuando se llega al final del indice de contenido" %}
14
+ {% include headings/with_link.html level=2 text="Cuando se llega al final del indice de contenido" %}
15
15
 
16
16
  {% include navigation_post.html src_previous="public/arrow_previous.png" alt_previous=site.i18n.previous_page src_home="public/home.png" href_previous="#biografía-de-autore-en-los-artículos" src_next="public/arrow_next.png" href_home="?#" alt_next=site.i18n.next_page %}
17
17
  </div>
@@ -0,0 +1,5 @@
1
+ {% assign reactions = site.data.fixtures.activity_pub.likes | concat: site.data.fixtures.activity_pub.shared | sort: "published" %}
2
+
3
+ <div class="w-md-50">
4
+ {% include activity_pub/reactions.html reactions=reactions %}
5
+ </div>
@@ -0,0 +1,4 @@
1
+ {% include activity_pub/toot_card.html
2
+ profile=site.data.fixtures.activity_pub.users.sutty
3
+ activity=site.data.fixtures.activity_pub.activities.sutty
4
+ %}
@@ -8,14 +8,15 @@
8
8
  @param :toggled_content [String] El contenido del elemento toggled
9
9
  {% endcomment %}
10
10
  <input
11
- type="checkbox"
11
+ type="{{ include.type | default: 'checkbox' }}"
12
12
  class="toggler sr-only"
13
13
  data-action="body-scroll#toggle"
14
14
  autocomplete="off"
15
15
  id="{{ include.id }}"
16
- name="{{ include.id }}"
16
+ value="{{ include.id }}"
17
+ name="{{ include.name | default: include.id }}"
17
18
  aria-labelledby="{{ include.id }}-label" />
18
19
 
19
- <div class="toggled position-absolute {{ include.toggled_class }}">
20
+ <div class="toggled {{ include.toggled_class }}">
20
21
  {{ include.toggled_content }}
21
22
  </div>
@@ -10,7 +10,7 @@ layout: "default_with_menu"
10
10
  {%- assign next = page | next: posts -%}
11
11
 
12
12
  <article id="{{ page.slug }}" class="container mx-auto max-w-780px my-4 px-20">
13
- {% include embed_responsive.html src=page.image.path alt=page.image.description x=2 y=1 width=780 embed_class="shadow" %}
13
+ {% include embed_responsive.html src=page.image.path alt=page.image.description x=2 y=1 width=780 embed_class="shadow" img_class="w-100 h-100 object-fit-cover" %}
14
14
 
15
15
  <div class="">
16
16
  <div class="border-bottom border-gray border-width-2">
@@ -41,7 +41,7 @@
41
41
  <meta name="msapplication-TileColor" content="{{ theme.bg_color }}">
42
42
  <meta name="theme-color" content="{{ theme.primary }}">
43
43
  {% seo %}
44
- {%- feed_meta -%}
44
+
45
45
 
46
46
  {%- if page.activity -%}
47
47
  <link href="{{ page.activity.url | absolute_url }}" rel="alternate" type="application/activity+json" />
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: "default_with_menu"
3
+ ---
4
+
5
+ {{ content }}
data/_layouts/post.html CHANGED
@@ -1,11 +1,10 @@
1
1
  ---
2
2
  layout: "default_with_menu"
3
3
  ---
4
-
5
- {%- assign about = site.posts | find: "layout", "about" -%}
6
- {%- assign back_covers = site.posts | where: "layout", "back_cover" -%}
7
- {%- assign posts = site.posts | where: "layout", "post" | concat: back_covers -%}
8
- {%- assign authors = site.posts | where: "layout", "author" -%}
4
+ {%- assign about = site.posts | find: 'layout', 'about' -%}
5
+ {%- assign back_covers = site.posts | where: 'layout', 'back_cover' -%}
6
+ {%- assign posts = site.posts | where: 'layout', 'post' | concat: back_covers -%}
7
+ {%- assign authors = site.posts | where: 'layout', 'author' -%}
9
8
  {%- assign prev = page | prev: posts -%}
10
9
  {%- assign next = page | next: posts -%}
11
10
 
@@ -15,6 +14,10 @@ layout: "default_with_menu"
15
14
  {% endif %}
16
15
 
17
16
  <div class="mt-5">
17
+ {% if page.activity.inReplyTo %}
18
+ {% include_cached activity_pub/replying_to.html activity=page.activity.inReplyTo %}
19
+ {% endif %}
20
+
18
21
  {% include headings/h1.html class="text-uppercase black hover-black letter-spacing-4 font-weight-bold mb-12" text=page.title %}
19
22
 
20
23
  {% if page.subtitle %}
@@ -24,28 +27,30 @@ layout: "default_with_menu"
24
27
  {% unless page.authors == empty %}
25
28
  <p class="lead text-uppercase letter-spacing-5">
26
29
  {% for author in page.authors %}
27
- {{ author.title }}{% unless forloop.last %} {{ site.i18n.and }} {% endunless %}
30
+ {{ author.title -}}
31
+ {%- unless forloop.last %} {{ site.i18n.and }} {% endunless %}
28
32
  {% endfor %}
29
33
  </p>
30
34
  {% endunless %}
31
35
 
32
36
  <div
33
- class="source-serif lead-md pt-20 content"
34
- data-controller="footnotes"
35
- data-action="resize@window->footnotes#resize"
36
37
  data-footnotes-container-width-value="{{ site.data.theme.footnotes_container_width }}"
37
38
  data-footnotes-sidenote-width-value="{{ site.data.theme.footnotes_sidenote_width }}"
38
39
  data-footnotes-padding-left-value="{{ site.data.theme.footnotes_padding_left }}"
39
40
  data-footnotes-offset-left-value="{{ site.data.theme.footnotes_offset_left }}"
40
41
  data-footnotes-footnote-class="{{ site.data.theme.footnotes_footnote_class | join: " " }}"
41
42
  data-footnotes-footnote-toggled-class="{{ site.data.theme.footnotes_footnote_toggled_class | join: " " }}"
42
- data-footnotes-sidenote-class="{{ site.data.theme.footnotes_sidenote_class | join: " " }}">
43
+ data-footnotes-sidenote-class="{{ site.data.theme.footnotes_sidenote_class | join: " " }}"
44
+ class="source-serif lead-md pt-20 content"
45
+ data-controller="footnotes"
46
+ data-action="resize@window->footnotes#resize"
47
+ >
43
48
  {{ content }}
44
49
  </div>
45
50
  </div>
46
51
 
47
52
  <footer class="d-flex flex-column align-items-center mt-60">
48
- {% unless page.authors == empty or page.show_biography == false %}
53
+ {% unless page.authors == empty or page.show_biography == false %}
49
54
  {% for author in page.authors %}
50
55
  {% include biography.html text=author.content %}
51
56
  {% endfor %}
@@ -55,6 +60,10 @@ layout: "default_with_menu"
55
60
  {% include license_block.html title=page.license content=about.license %}
56
61
  {% endif %}
57
62
 
63
+ {% if page.activity %}
64
+ {% include activity_pub/interactions.html activity=page.activity profile=site.actor %}
65
+ {% endif %}
66
+
58
67
  {% include 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 %}
59
68
  </footer>
60
69
  </article>
@@ -12,28 +12,29 @@ layout: "default_with_menu"
12
12
  data-controller="support-us"
13
13
  data-support-us-monetization-url-value="{{ page.monetization_url }}"
14
14
  id="{{ page.slug }}" class="container mx-auto max-w-780px py-4 mt-lg-5 px-20">
15
- {% include headings/h1.html class="text-uppercase black hover-black letter-spacing-4 font-weight-bold mb-4" text=page.title %}
15
+
16
+ {% include headings/h1.html class="text-uppercase black hover-black letter-spacing-4 font-weight-bold mb-4" text=page.title %}
16
17
 
17
18
  <p class="lead-md content">{{ page.description }}</p>
18
19
 
19
20
  <div class="row row-cols-2 justify-content-center my-80 no-gutters">
20
- {% for button in buttons %}
21
- <div class="col d-flex p-1">
22
- {% if button.layout == "button" %}
23
- {% include buttons/with_link.html href=button.link text=button.title %}
24
- {% elsif button.layout == "button_copy" %}
25
- {% include buttons/with_copy.html copy=button.text text=button.title %}
26
- {% endif %}
27
- </div>
28
- {% endfor %}
21
+ {% for button in buttons %}
22
+ <div class="col d-flex p-1">
23
+ {% if button.layout == "button" %}
24
+ {% include buttons/with_link.html href=button.link text=button.title %}
25
+ {% elsif button.layout == "button_copy" %}
26
+ {% include buttons/with_copy.html copy=button.text text=button.title %}
27
+ {% endif %}
28
+ </div>
29
+ {% endfor %}
29
30
  </div>
30
31
 
31
- <div class="lead-md content">
32
- {{-
33
- page.section_1
34
- | replace: "BALANCE", '<code data-support-us-target="balance"></code>'
35
- | replace: "DATE", '<span data-support-us-target="date"></span>' -}}
36
- </div>
32
+ <div class="lead-md content">
33
+ {{-
34
+ page.section_1
35
+ | replace: "BALANCE", '<code data-support-us-target="balance"></code>'
36
+ | replace: "DATE", '<span data-support-us-target="date"></span>' -}}
37
+ </div>
37
38
 
38
39
  <div class="my-4">
39
40
  {% for goal in goals %}
data/_sass/content.scss CHANGED
@@ -70,16 +70,16 @@
70
70
  }
71
71
  }
72
72
 
73
- a {
74
- word-break: break-word !important;
75
- word-wrap: break-word !important;
76
- }
77
-
78
73
  blockquote {
79
74
  border-left: 4px solid rgba(0, 0, 0, 0.2);
80
75
  margin-left: 0.75em;
81
76
  padding-left: 0.5em;
82
77
  }
78
+
79
+ a {
80
+ word-break: break-word !important;
81
+ word-wrap: break-word !important;
82
+ }
83
83
  }
84
84
 
85
85
  footer .content a {
@@ -91,3 +91,13 @@ small,
91
91
  @include font-size($small-font-size);
92
92
  font-weight: unset;
93
93
  }
94
+
95
+ .mw-100vw {
96
+ max-width: 100vw;
97
+ }
98
+
99
+ @media (min-width: 768px) {
100
+ .responsive-header {
101
+ min-height: $h1-font-size * $headings-line-height;
102
+ }
103
+ }
@@ -0,0 +1,28 @@
1
+ details {
2
+ summary {
3
+ .show-when-open {
4
+ display: none;
5
+ }
6
+
7
+ .hide-when-open {
8
+ display: block;
9
+ }
10
+ }
11
+
12
+ &[open] {
13
+ summary {
14
+ .show-when-open {
15
+ display: block;
16
+ }
17
+
18
+ .hide-when-open {
19
+ display: none;
20
+ }
21
+ }
22
+ }
23
+
24
+ & > summary {
25
+ list-style: none;
26
+ &::-webkit-details-marker { display: none; }
27
+ }
28
+ }
data/_sass/utilities.scss CHANGED
@@ -46,6 +46,17 @@
46
46
  }
47
47
  }
48
48
 
49
+ /// Cambiar el fondo al pasar por encima o hacer foco
50
+ ///
51
+ /// @example html
52
+ /// <div class="background-black background-hover-red"></div>
53
+ .background-hover#{$infix}-#{$color} {
54
+ &:hover,
55
+ &:focus-within {
56
+ background-color: var(--#{$color});
57
+ }
58
+ }
59
+
49
60
  @each $attr in $svg-attributes {
50
61
  /// Poder cambiar el relleno o la línea de un SVG
51
62
  ///
@@ -170,6 +181,11 @@
170
181
  .lh#{$infix}-#{$spacer} {
171
182
  line-height: $length !important;
172
183
  }
184
+
185
+ /// <div class="rounded-3"></div>
186
+ .rounded#{$infix}-#{$spacer} {
187
+ border-radius: $length !important;
188
+ }
173
189
  }
174
190
 
175
191
  /// Anchos y altos en base a `$sizes` definido por Bootstrap. Para
@@ -243,17 +259,17 @@
243
259
  .zindex-popover { z-index: 1060; }
244
260
  .zindex-tooltip { z-index: 1070; }
245
261
 
262
+ b,
263
+ strong {
264
+ font-weight: $font-weight-bold;
265
+ }
266
+
246
267
  code {
247
268
  background-color: $code-background;
248
269
  border-radius: $code-radius;
249
270
  font-family: $code-font-family;
250
271
  }
251
272
 
252
- b,
253
- strong {
254
- font-weight: $font-weight-bold;
255
- }
256
-
257
273
  .rotate {
258
274
  width: 60px;
259
275
  transform: rotate(90deg);
@@ -14,6 +14,7 @@ $background-menu-close: '../../{{ about.background_image_close.path | default: "
14
14
  {{ site.data.theme | yaml_to_scss }}
15
15
 
16
16
  @import "bootstrap/scss/bootstrap";
17
+ @import "fork-awesome/scss/fork-awesome";
17
18
  @import "utilities";
18
19
  @import "open_sans";
19
20
  @import "open_sans_wght_700";
@@ -22,3 +23,4 @@ $background-menu-close: '../../{{ about.background_image_close.path | default: "
22
23
  @import "roboto_mono_ital_wght_0_400_0_700_1_400_1_700";
23
24
  @import "content";
24
25
  @import "toggler";
26
+ @import "details";
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f91811e523692628f27cc96c18c1468a22f9322032ab9068559101363167a12
3
+ size 3232
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0478868100645b14e51a522e1e688bf71d144a947e595d95ada633c7d7ad430
3
+ size 853718
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4400dc7eace00b355666bb97becfcbbd4fda219d87c57c9f47af606294bb729b
3
+ size 2478951