compost-jekyll-theme 0.1.8 → 0.1.10
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 +4 -4
- data/_data/layouts/about.yml +2 -2
- data/_data/layouts/front_cover.yml +2 -2
- data/_data/layouts/post.yml +2 -2
- data/_data/theme.yml +1 -0
- data/_includes/btn_header.html +2 -1
- data/_includes/card_horizontal.html +5 -3
- data/_includes/embed_responsive.html +5 -1
- data/_includes/header.html +4 -4
- data/_includes/image_with_link.html +2 -1
- data/_includes/picture.html +8 -3
- data/_layouts/post.html +3 -1
- data/_sass/utilities.scss +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b02b27490a1d191ab1ce3fe08aaa4d46ffeb44b854f7e3bfbcbf6e479e8f085
|
|
4
|
+
data.tar.gz: d8169277b497d22b647cedadb4c1cef4d272599680ae318cb9e7513cd273a22b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d39fbd2ea57d31a0a74a7a2dd9d05dc61dfb033115c5ff7a715fad8d32a3926b7aa9407c3953b20a92cf897ad8e2aa14d1cf28899665eac3c98212e4d327042
|
|
7
|
+
data.tar.gz: 9640394a56d64d4bbc0cff038df4a9963e9c3a2fe13dd068f1108054291fa937b3551dc341b6b45f1ba501d3a695d2c0a3a603794c07da41327892f9bbdb56ea
|
data/_data/layouts/about.yml
CHANGED
|
@@ -32,8 +32,8 @@ image_menu_close:
|
|
|
32
32
|
es: "Logo de cabecera con el menú cerrado"
|
|
33
33
|
en: "Header logo with menu closed"
|
|
34
34
|
help:
|
|
35
|
-
es: ""
|
|
36
|
-
en: ""
|
|
35
|
+
es: "Máximo 220px de ancho y 90px de alto"
|
|
36
|
+
en: "Max. 220px width by 90px height"
|
|
37
37
|
description:
|
|
38
38
|
label:
|
|
39
39
|
es: "Descripción del logo"
|
|
@@ -48,8 +48,8 @@ image:
|
|
|
48
48
|
es: "Imagen principal"
|
|
49
49
|
en: "Main image"
|
|
50
50
|
help:
|
|
51
|
-
es: "
|
|
52
|
-
en: "
|
|
51
|
+
es: "Imagen principal de la portada. Si no una, el contenido será de una sola columna."
|
|
52
|
+
en: "Main image on the home page. If you don't add one, the layout will be a single column."
|
|
53
53
|
description:
|
|
54
54
|
label:
|
|
55
55
|
es: "Descripción de la imagen principal"
|
data/_data/layouts/post.yml
CHANGED
|
@@ -51,8 +51,8 @@ image:
|
|
|
51
51
|
es: "Imagen principal"
|
|
52
52
|
en: "Main image"
|
|
53
53
|
help:
|
|
54
|
-
es: "Se utiliza para ilustrar el artículo y como previsualización en las redes sociales."
|
|
55
|
-
en: "Used to illustrate the article and as preview in social networks."
|
|
54
|
+
es: "Se utiliza para ilustrar el artículo y como previsualización en las redes sociales. Si no agregas una, será mostrada como un bloque de color en la lista de artículos."
|
|
55
|
+
en: "Used to illustrate the article and as preview in social networks. If you don't add one, it will be shown as a block of color on the post list."
|
|
56
56
|
description:
|
|
57
57
|
label:
|
|
58
58
|
es: "Descripción de la imagen principal"
|
data/_data/theme.yml
CHANGED
data/_includes/btn_header.html
CHANGED
|
@@ -5,10 +5,11 @@ Imagen de la cabecera
|
|
|
5
5
|
@param :src [String]
|
|
6
6
|
@param :href [String] El link
|
|
7
7
|
@param :width [Integer] Ancho de la imagen
|
|
8
|
+
@param :height [Integer] Alto de la imagen
|
|
8
9
|
@param :alt [String] El alt de la imagen
|
|
9
10
|
@param :component_class [String] Clases para el componente
|
|
10
11
|
{%- endcomment -%}
|
|
11
12
|
|
|
12
13
|
<div>
|
|
13
|
-
{% include image_with_link.html src=include.src alt=include.alt href=include.href width=include.width component_class=include.component_class img_class=include.img_class %}
|
|
14
|
+
{% include image_with_link.html src=include.src alt=include.alt href=include.href width=include.width height=include.height component_class=include.component_class img_class=include.img_class %}
|
|
14
15
|
</div>
|
|
@@ -9,9 +9,11 @@ Card horizontal
|
|
|
9
9
|
@param :content [string] Contenido
|
|
10
10
|
{%- endcomment -%}
|
|
11
11
|
<div class="row justify-content-center container-lg mx-auto">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
{% unless include.src %}
|
|
13
|
+
<div class="col-12 col-md-5 px-4">
|
|
14
|
+
{% include picture.html src=include.src width=500 img_class="w-100 object-fit-cover" %}
|
|
15
|
+
</div>
|
|
16
|
+
{% endunless %}
|
|
15
17
|
|
|
16
18
|
<div class="col-12 col-md pl-xl-5 pt-5 pt-md-0">
|
|
17
19
|
<div class="">
|
|
@@ -12,5 +12,9 @@ Embed responsive
|
|
|
12
12
|
{%- endcomment -%}
|
|
13
13
|
|
|
14
14
|
<div class="embed-responsive embed-responsive-{{ include.x }}by{{ include.y }} {{ include.embed_class }}">
|
|
15
|
-
{
|
|
15
|
+
{% 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
|
+
{% else %}
|
|
18
|
+
<div class="embed-responsive-item background-primary"></div>
|
|
19
|
+
{% endif %}
|
|
16
20
|
</div>
|
data/_includes/header.html
CHANGED
|
@@ -13,12 +13,12 @@ Items de cabecera (excepto el ícono de hamburguesa)
|
|
|
13
13
|
src=include.logo_src
|
|
14
14
|
href="?#"
|
|
15
15
|
alt=include.logo_alt
|
|
16
|
-
|
|
17
|
-
img_class="w-221px w-md-
|
|
16
|
+
height=90
|
|
17
|
+
img_class="w-221px w-md-auto max-h-90px" %}
|
|
18
18
|
|
|
19
19
|
{% include btn_header.html
|
|
20
20
|
src=include.btn_src
|
|
21
21
|
href=include.btn_href
|
|
22
22
|
alt=include.btn_alt
|
|
23
|
-
|
|
24
|
-
img_class="
|
|
23
|
+
height=90
|
|
24
|
+
img_class="max-h-90px" %}
|
|
@@ -5,6 +5,7 @@ componente de imagen que tiene un link [url]
|
|
|
5
5
|
@param :src [String]
|
|
6
6
|
@param :href [String] El link
|
|
7
7
|
@param :width [Integer] Ancho de la imagen
|
|
8
|
+
@param :height [Integer] Alto de la imagen
|
|
8
9
|
@param :alt [String] El alt de la imagen
|
|
9
10
|
@param :a_class [String] Clases para a
|
|
10
11
|
@param :component_class [String] Clases para el componente
|
|
@@ -18,5 +19,5 @@ componente de imagen que tiene un link [url]
|
|
|
18
19
|
{{ include.href | start_with: "http://" | value_if: 'rel="noopener" target="_blank"' }}>
|
|
19
20
|
<span class="sr-only">{{ include.alt }}</span>
|
|
20
21
|
</a>
|
|
21
|
-
{% include picture.html src=include.src width=include.width alt=include.alt img_class=include.img_class %}
|
|
22
|
+
{% include picture.html src=include.src width=include.width height=include.height alt=include.alt img_class=include.img_class %}
|
|
22
23
|
</div>
|
data/_includes/picture.html
CHANGED
|
@@ -5,6 +5,7 @@ Image component
|
|
|
5
5
|
@param :src [String]
|
|
6
6
|
@param :alt [String]
|
|
7
7
|
@param :width [Integer]
|
|
8
|
+
@param :height [Integer]
|
|
8
9
|
@param :class [String]
|
|
9
10
|
@param :img_class [String]
|
|
10
11
|
{%- endcomment -%}
|
|
@@ -13,13 +14,17 @@ Image component
|
|
|
13
14
|
<source
|
|
14
15
|
srcset="
|
|
15
16
|
{%- for pixel_density in site.data.theme.pixel_densities %}
|
|
16
|
-
{
|
|
17
|
-
|
|
17
|
+
{% if include.width %}
|
|
18
|
+
{%- assign w = include.width | times: pixel_density -%}
|
|
19
|
+
{% elsif include.height %}
|
|
20
|
+
{%- assign h = include.height | times: pixel_density -%}
|
|
21
|
+
{% endif %}
|
|
22
|
+
{{- include.src | thumbnail: w, h | uri_escape }} {{ pixel_density }}x,
|
|
18
23
|
{% endfor -%}
|
|
19
24
|
" />
|
|
20
25
|
|
|
21
26
|
<img
|
|
22
27
|
class="{{ include.img_class }}"
|
|
23
|
-
src="{{ include.src | thumbnail: include.width | uri_escape }}"
|
|
28
|
+
src="{{ include.src | thumbnail: include.width, include.height | uri_escape }}"
|
|
24
29
|
alt="{{ include.alt | escape_once }}" />
|
|
25
30
|
</picture>
|
data/_layouts/post.html
CHANGED
|
@@ -10,7 +10,9 @@ 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
|
-
{%
|
|
13
|
+
{% unless page.image.path %}
|
|
14
|
+
{% include picture.html src=page.image.path alt=page.image.description width=780 img_class="w-100 shadow" %}
|
|
15
|
+
{% endunless %}
|
|
14
16
|
|
|
15
17
|
<div class="mt-5">
|
|
16
18
|
{% include headings/h1.html class="text-uppercase black hover-black letter-spacing-4 font-weight-bold mb-12" text=page.title %}
|
data/_sass/utilities.scss
CHANGED
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
.border-width#{$infix}-#{$border-width} { border-width: $length !important; }
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
@each $color, $rgb in $theme-colors {
|
|
23
|
+
.background#{$infix}-#{$color} {
|
|
24
|
+
background-color: var(--#{$color});
|
|
25
|
+
|
|
26
|
+
&:focus {
|
|
27
|
+
background-color: var(--#{$color});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
@each $color, $rgb in $colors {
|
|
23
33
|
.background#{$infix}-#{$color} {
|
|
24
34
|
background-color: var(--#{$color});
|