compost-jekyll-theme 0.1.7 → 0.1.9

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: 0004d870b9447b1d0972a373ba215812aa23462abce0584da530382ff9e0accc
4
- data.tar.gz: dc8e9c84dcde0f16216ea0f1ac7773828ea842935ab61f702a63309a95c9260b
3
+ metadata.gz: 5cc1c75611cb6dfbc273e844490cf6910d4f85fb4e8fc32ff40366abf0805b4f
4
+ data.tar.gz: 57d8e66a83cd7160a65aeb0abebad982142c59f49ddda1c7a23536095640235d
5
5
  SHA512:
6
- metadata.gz: f0c85fd805c97bfbe0f872577e6ccccce3eeeee30e160d572fedb5f9d026e2dab3efee1e76bdf5e16ca384bc7c2103bb999067358979c1fc8630bc42983fd59f
7
- data.tar.gz: e77f54b79964fac10c3cf8fc78b5d317ee9e9008773284f406129a049ef3c434ea9712f6676750a2565874265d0f208dfd6d811124e1f81dd23688cd8fe1b748
6
+ metadata.gz: a847d4f6e6336027838322cbd9a0e27056150867a83a47d1a2ad2ca71cc13fed3fd8f6841d5c943832fa71f38c083a43cdad8c187356f0a27ef4e58a2b6ce948
7
+ data.tar.gz: 266acdc7e2f2a1fefa031570205ed907fd2c23c572eae891c8f9405a8d510cfb70a90f9566d7fad5b177fbf7581491304089ee94730e9ba7f836af71cba22a79
@@ -48,8 +48,8 @@ image:
48
48
  es: "Imagen principal"
49
49
  en: "Main image"
50
50
  help:
51
- es: "Se utiliza para ilustrar el artículo y como previsualización en las redes sociales."
52
- en: "Used to illustrate the article and as preview in social networks."
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"
@@ -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
@@ -131,7 +131,8 @@ transform_scales:
131
131
  n8: "0.8"
132
132
  1: "1"
133
133
  background_images:
134
- menu: "$background-menu"
134
+ menu-open: "$background-menu-open"
135
+ menu-close: "$background-menu-close"
135
136
  site: "$background-site"
136
137
  footer: "$background-footer"
137
138
  layout_class:
@@ -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
- <div class="col-12 col-md-5 px-4">
13
- {% include picture.html src=include.src width=500 img_class="w-100 object-fit-cover" %}
14
- </div>
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
- {%- 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 -%}
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>
@@ -28,7 +28,7 @@ Cabecera y menú con toggler
28
28
  {% include toggler/toggler_label.html id=menu_id class="m-0" content=menu_svg %}
29
29
 
30
30
  {% capture toggled_content %}
31
- <div class="background-menu-open background-size-100 w-100 p-2 pb-12 border-bottom-dashed border-black">
31
+ <div class="background-image-menu-open background-size-100 w-100 p-2 pb-12 border-bottom-dashed border-black">
32
32
  <div class="d-flex justify-content-between align-items-center container mx-auto">
33
33
  {%- capture menu_svg -%}
34
34
  {% include menu_open.html class="w-36px w-md-54px" container_class="fill-black" %}
@@ -16,7 +16,7 @@ layout: "default"
16
16
  btn_close_src="public/mushroom_close.gif"
17
17
  btn_href=support.url
18
18
  btn_alt=site.i18n.support_alt
19
- background_class="pt-2 px-3 pb-100 background-menu-close background-position-center-bottom w-100 background-size-auto-100" %}
19
+ background_class="pt-2 px-3 pb-100 background-image-menu-close background-position-center-bottom w-100 background-size-auto-100" %}
20
20
 
21
21
  {{ content }}
22
22
 
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
- {% include picture.html src=page.image.path alt=page.image.description width=780 img_class="w-100 shadow" %}
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});
@@ -7,7 +7,7 @@
7
7
 
8
8
  $background-site: '../../{{ theme.body_image.path | default: "public/background-dithered.jpg" | uri_escape }}';
9
9
  $background-footer: '../../{{ footer.background_image.path | default: "public/footer.png" | uri_escape }}';
10
- $background-menu-open: '../../{{ about.background_image_open.path | default: "public/background_header.png" | uri_escape }}';
10
+ $background-menu-open: '../../{{ about.background_image_open.path | default: "public/background-dithered.jpg" | uri_escape }}';
11
11
  $background-menu-close: '../../{{ about.background_image_close.path | default: "public/background_header.png" | uri_escape }}';
12
12
 
13
13
  {{ theme | yaml_to_scss: site.data.layouts.theme }}
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.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty