compost-jekyll-theme 0.1.9 → 0.1.11

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: 5cc1c75611cb6dfbc273e844490cf6910d4f85fb4e8fc32ff40366abf0805b4f
4
- data.tar.gz: 57d8e66a83cd7160a65aeb0abebad982142c59f49ddda1c7a23536095640235d
3
+ metadata.gz: c65d042d4e8458a5adf07e3fe8536061fc1be5303915520a3a853cf124358ea8
4
+ data.tar.gz: bafe82a386dd2615fd0fe9bfc5628b5d23d57d3d783b4e975c7557505ade9b6e
5
5
  SHA512:
6
- metadata.gz: a847d4f6e6336027838322cbd9a0e27056150867a83a47d1a2ad2ca71cc13fed3fd8f6841d5c943832fa71f38c083a43cdad8c187356f0a27ef4e58a2b6ce948
7
- data.tar.gz: 266acdc7e2f2a1fefa031570205ed907fd2c23c572eae891c8f9405a8d510cfb70a90f9566d7fad5b177fbf7581491304089ee94730e9ba7f836af71cba22a79
6
+ metadata.gz: fd92b9118fedef6c434b0694f5c413332bd4f22965a032dd4867bfbed9da32cb3a1c7a87796dd38dd07ecde1dde098ecd72abac89820c815be8514c52382fe6f
7
+ data.tar.gz: 3a2ab33b397643f91ba004a25860e282b9647f2f974a8a69d50bd11f101160648c4a508c3c83d87b3093d4382d3920b82f7205bac260901f594b91910ed795b0
@@ -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 90px de alto"
36
+ en: "Max. 90px height"
37
37
  description:
38
38
  label:
39
39
  es: "Descripción del logo"
data/_data/theme.yml CHANGED
@@ -71,6 +71,7 @@ sizes:
71
71
  36px: "2.25rem"
72
72
  49px: "3.0625rem"
73
73
  74px: "4.625rem"
74
+ 90px: "90px"
74
75
  220px: "220px"
75
76
  221px: "13.8125rem"
76
77
  333px: "20.8125rem"
@@ -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>
@@ -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
- width=333
17
- img_class="w-221px w-md-333px" %}
16
+ height=90
17
+ img_class="max-w-100 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
- width=67
24
- img_class="w-44px w-md-67px" %}
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>
@@ -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
- {%- assign w = include.width | times: pixel_density -%}
17
- {{- include.src | thumbnail: w | uri_escape }} {{ pixel_density }}x,
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>
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.1.9
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty