editorial-autogestiva-jekyll-theme 0.2.2 → 0.2.3

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: 39f5a68e48791bfef3da3a7ae8127cf2b816e81e626bfa0da13df01c1e99a3aa
4
- data.tar.gz: 1a4c7f16fb92665e683632c996bbbfcf574f3d6ef1c39000632d569b6337574f
3
+ metadata.gz: a58a7b252535c1e3ed8ac724e40a257bb72bc18a17b46cc313d606b7c0eb8cda
4
+ data.tar.gz: b805146a659ef86507e9885a3b0bbe4d4e56447019aab96457617ad00ffa4116
5
5
  SHA512:
6
- metadata.gz: 599f869cd6f49e197c2d8d0d5a93caf4279affe79bda9ccfbeb33e07a71e552224548a68d7dd3cbe5db14e42aebe5324fd4c9d7c292a732aa8797640cc5f3b7c
7
- data.tar.gz: f97c994efaae6994c573d5b8d494f192b80e845b421990aa1e0a7cbbbc72cbc43c1194526b16e74a3441ef129cc9ef9370aa8232a9f5350f45e6c6d698423537
6
+ metadata.gz: e129c73368a753234e99e0ce8eeecad5d85849ca39db1abff9ca65921b2b3b149dca8f00e56cd7a776edd56cf54e4ddf93e4709e3beeedf5f11922f3ee55db8b
7
+ data.tar.gz: 2b0d26f32a8114bbea10b15bff47105aa8bcd00fc4ebcc0aba05df9ac5de1cb27a3dfd2ade0d39a47e7c1701bac3ee7ac34af3c136200a56392fcf1f4608c164
@@ -16,6 +16,7 @@ book:
16
16
  out_of_stock: "Agotado temporalmente"
17
17
  payment_methods: "Métodos de pago"
18
18
  delivery_methods: "Métodos de entrega"
19
+ payment_url: "Comprar"
19
20
  direct_download:
20
21
  schema: DirectDownload
21
22
  text: Descarga
@@ -80,6 +80,14 @@ payment_methods:
80
80
  bank_transfer_in_advance:
81
81
  es: 'Transferencia bancaria'
82
82
  en: 'Bank transfer'
83
+ payment_url:
84
+ type: 'url'
85
+ label:
86
+ es: 'Dirección de pago electrónico'
87
+ en: 'Online payment link'
88
+ help:
89
+ es: 'El vínculo al método de pago en línea, por ejemplo la dirección generada por Mercado Pago'
90
+ en: 'The link to the online payment method, generated by a payment intermediary like Paypal'
83
91
  size:
84
92
  type: 'string'
85
93
  label:
@@ -0,0 +1,62 @@
1
+ {% comment %}
2
+ XXX: Usamos el primer artículo de tipo Editorial. Hacemos esto
3
+ porque la edición de estos datos desde Sutty solo se puede hacer
4
+ como artículos.
5
+ {% endcomment %}
6
+ {% assign editorial = site.posts | where: 'layout', 'editorial' | first %}
7
+
8
+ <article id="editorial" class="col h-card" itemscope itemtype="https://schema.org/Organization">
9
+ <div class="media">
10
+ <img
11
+ itemprop="logo"
12
+ class="u-photo"
13
+ src="{{ editorial.logo.path | thumbnail: 100 }}"
14
+ alt="{{ editorial.logo.description }}" />
15
+
16
+ <div class="media-body">
17
+ <h1 class="p-name" itemprop="name">{{ editorial.title }}</h1>
18
+ <p class="lead">{{ editorial.description }}</p>
19
+ </div>
20
+
21
+ </div>
22
+
23
+ <div itemprop="location" itemscope itemtype="https://schema.org/PostalAddress">
24
+ {%- if editorial.address -%}
25
+ <p class="p-street-address" itemprop="streetAddress">{{ editorial.address }}</p>
26
+ {%- endif -%}
27
+ {%- if editorial.locality -%}
28
+ <p class="p-locality" itemprop="addressLocality">{{ editorial.locality }}</p>
29
+ {%- endif -%}
30
+ {%- if editorial.country -%}
31
+ <p class="p-country-name" itemprop="addressCountry">{{ editorial.country }}</p>
32
+ {%- endif -%}
33
+ </div>
34
+
35
+ <ul>
36
+ {%- for social in editorial.social_networks -%}
37
+ <li><a rel="me" href="{{ social }}">
38
+ {% comment %}
39
+
40
+ Obtenemos la URL de la red social, eliminamos la www,
41
+ obtenemos el tercer elemento separando por / y el primero
42
+ separando por .
43
+
44
+ https://www.twitter.com/SuttyWeb
45
+ https://twitter.com/SuttyWeb
46
+ twitter.com
47
+ twitter
48
+ Twitter
49
+ {% endcomment %}
50
+ {% assign s = social | remove: 'www.' | split: '/' %}
51
+ {{ s[2] | split: '.' | first | capitalize }}
52
+ </a></li>
53
+ {%- endfor -%}
54
+ </ul>
55
+
56
+ {%- if include.content -%}
57
+ <div class="e-content" itemprop="articleBody">
58
+ {{ editorial.content }}
59
+ </div>
60
+ {%- endif -%}
61
+
62
+ </article>
@@ -1,61 +1,8 @@
1
1
  <footer>
2
2
  <div class="row align-items-end">
3
- {% comment %}
4
- XXX: Usamos el primer artículo de tipo Editorial. Hacemos esto
5
- porque la edición de estos datos desde Sutty solo se puede hacer
6
- como artículos.
7
- {% endcomment %}
8
- {% assign editorial = site.posts | where: 'layout', 'editorial' | first %}
9
-
10
- <div class="col h-card" itemscope itemtype="https://schema.org/Organization">
11
- <div class="media">
12
- <img
13
- itemprop="logo"
14
- class="u-photo"
15
- src="{{ editorial.logo.path | thumbnail: 100 }}"
16
- alt="{{ editorial.logo.description }}" />
17
-
18
- <div class="media-body">
19
- <h1 class="p-name" itemprop="name">{{ editorial.title }}</h1>
20
- <p class="lead">{{ editorial.description }}</p>
21
- </div>
22
-
23
- </div>
24
-
25
- <div itemprop="location" itemscope itemtype="https://schema.org/PostalAddress">
26
- {%- if editorial.address -%}
27
- <p class="p-street-address" itemprop="streetAddress">{{ editorial.address }}</p>
28
- {%- endif -%}
29
- {%- if editorial.locality -%}
30
- <p class="p-locality" itemprop="addressLocality">{{ editorial.locality }}</p>
31
- {%- endif -%}
32
- {%- if editorial.country -%}
33
- <p class="p-country-name" itemprop="addressCountry">{{ editorial.country }}</p>
34
- {%- endif -%}
35
- </div>
36
-
37
- <ul>
38
- {%- for social in editorial.social_networks -%}
39
- <li><a rel="me" href="{{ social }}">
40
- {% comment %}
41
-
42
- Obtenemos la URL de la red social, eliminamos la www,
43
- obtenemos el tercer elemento separando por / y el primero
44
- separando por .
45
-
46
- https://www.twitter.com/SuttyWeb
47
- https://twitter.com/SuttyWeb
48
- twitter.com
49
- twitter
50
- Twitter
51
- {% endcomment %}
52
- {% assign s = social | remove: 'www.' | split: '/' %}
53
- {{ s[2] | split: '.' | first | capitalize }}
54
- </a></li>
55
- {%- endfor -%}
56
- </ul>
57
-
58
- </div>
3
+ {%- if include.footer -%}
4
+ {% include_cached editorial.html %}
5
+ {%- endif -%}
59
6
 
60
7
  <div class="col text-right">
61
8
  <ul class="">
@@ -10,7 +10,6 @@ layout: default
10
10
  <p class="lead p-summary" itemprop="description">{{ page.description | escape }}</p>
11
11
  {%- endif -%}
12
12
 
13
-
14
13
  <p>
15
14
  <time
16
15
  class="dt-published"
@@ -47,6 +46,15 @@ layout: default
47
46
  alt="{{ page.image.description }}" />
48
47
  </picture>
49
48
  {%- endif -%}
49
+
50
+ {%- if page.payment_url -%}
51
+ <hr/>
52
+ <a
53
+ href="{{ page.payment_url }}"
54
+ class="btn btn-success btn-block btn-lg">
55
+ {{ site.i18n.book.payment_url }}
56
+ </a>
57
+ {%- endif %}
50
58
  </div>
51
59
 
52
60
  <div class="col">
@@ -31,7 +31,13 @@
31
31
  </div>
32
32
  </div>
33
33
 
34
- {% include_cached footer.html %}
34
+ {%- if page contains 'footer' -%}
35
+ {%- assign footer = page.footer -%}
36
+ {%- else -%}
37
+ {%- assign footer = true -%}
38
+ {%- endif -%}
39
+
40
+ {% include_cached footer.html footer=footer %}
35
41
  </main>
36
42
  </body>
37
43
  </html>
@@ -14,6 +14,14 @@ layout: default
14
14
 
15
15
  <h2>{{ book.title }}</h2>
16
16
  <p>{{ book.author | join: ', ' }}</p>
17
+
18
+ {%- if book.payment_url -%}
19
+ <a
20
+ href="{{ book.payment_url }}"
21
+ class="btn btn-success btn-block">
22
+ {{ site.i18n.book.payment_url }}
23
+ </a>
24
+ {%- endif %}
17
25
  </div>
18
26
  </a>
19
27
  {%- endfor %}
@@ -0,0 +1,19 @@
1
+ main {
2
+ #editorial {
3
+ .media {
4
+ img {
5
+ margin-right: 1rem;
6
+ margin-bottom: 1rem;
7
+ }
8
+ }
9
+
10
+ ul {
11
+ list-style: none;
12
+ padding: 0;
13
+ }
14
+
15
+ p {
16
+ margin-bottom: 0;
17
+ }
18
+ }
19
+ }
@@ -1,25 +1,14 @@
1
1
  main {
2
2
  & > footer {
3
+ border-top: $gray-300 1px solid;
4
+ font-size: .8rem;
3
5
  margin-top: 2rem;
4
6
  padding-top: 1rem;
5
7
  padding-bottom: 1rem;
6
- border-top: $gray-300 1px solid;
7
- font-size: .8rem;
8
-
9
- .media {
10
- img {
11
- margin-right: 1rem;
12
- margin-bottom: 1rem;
13
- }
14
- }
15
8
 
16
9
  ul {
17
10
  list-style: none;
18
11
  padding: 0;
19
12
  }
20
-
21
- p {
22
- margin-bottom: 0;
23
- }
24
13
  }
25
14
  }
@@ -1,5 +1,6 @@
1
1
  .books {
2
2
  .book {
3
+ max-width: calc(212px + 15px + 15px);
3
4
  margin-top: 2rem;
4
5
  margin-bottom: 2rem;
5
6
  margin-right: 1rem;
@@ -8,7 +9,6 @@
8
9
  h2 {
9
10
  margin-top: 1rem;
10
11
  font-size: 1rem;
11
- max-width: 212px;
12
12
  }
13
13
 
14
14
  p {
@@ -13,4 +13,5 @@
13
13
  @import "typography";
14
14
  @import "navbar";
15
15
  @import "home";
16
+ @import "editorial";
16
17
  @import "footer";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editorial-autogestiva-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2020-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -166,6 +166,7 @@ files:
166
166
  - _data/layouts/editorial.yml
167
167
  - _data/layouts/post.yml
168
168
  - _includes/contact.html
169
+ - _includes/editorial.html
169
170
  - _includes/footer.html
170
171
  - _includes/navbar.html
171
172
  - _layouts/book.html
@@ -173,6 +174,7 @@ files:
173
174
  - _layouts/editorial.html
174
175
  - _layouts/home.html
175
176
  - _layouts/post.html
177
+ - _sass/editorial.scss
176
178
  - _sass/footer.scss
177
179
  - _sass/home.scss
178
180
  - _sass/navbar.scss