editorial-autogestiva-jekyll-theme 0.2.3 → 0.2.4

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: a58a7b252535c1e3ed8ac724e40a257bb72bc18a17b46cc313d606b7c0eb8cda
4
- data.tar.gz: b805146a659ef86507e9885a3b0bbe4d4e56447019aab96457617ad00ffa4116
3
+ metadata.gz: 5cad78f83808d10966797df8bf789a8f5bea1e44842d528356a93a587f13a0a1
4
+ data.tar.gz: aaab2149a650fee8351d3e032446dcaa93fa6a93e7276f6a2249472917f6d2ab
5
5
  SHA512:
6
- metadata.gz: e129c73368a753234e99e0ce8eeecad5d85849ca39db1abff9ca65921b2b3b149dca8f00e56cd7a776edd56cf54e4ddf93e4709e3beeedf5f11922f3ee55db8b
7
- data.tar.gz: 2b0d26f32a8114bbea10b15bff47105aa8bcd00fc4ebcc0aba05df9ac5de1cb27a3dfd2ade0d39a47e7c1701bac3ee7ac34af3c136200a56392fcf1f4608c164
6
+ metadata.gz: 1086e50aab8822389145f75aee215cdccf5facfd4604ccf66bf7274685f3dca6595015dee0de9233cc05932545caab6a32e332d2eb8d9e64505946a8ffdf0f92
7
+ data.tar.gz: 4dda34dba621bd1cff8104f0c66141dfc63b624f98c8507b7c012f400dcc781d0634bbda69afd23875caa52caad82aa1a3ac696ae98c6f3b2222f44d7babcfcb
data/_data/es.yml CHANGED
@@ -7,7 +7,7 @@ menu:
7
7
  - text: Catálogo
8
8
  url: ''
9
9
  - text: Acerca
10
- url: 'acerca/'
10
+ url: '{{ editorial.url }}'
11
11
  book:
12
12
  pages: "Páginas"
13
13
  size: "Tamaño"
@@ -1,3 +1,5 @@
1
+ {% assign editorial = site.posts | where: 'layout', 'editorial' | first %}
2
+
1
3
  <nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}">
2
4
  <a class="navbar-brand" href="">
3
5
  {{ site.title }}
@@ -14,10 +16,10 @@
14
16
  {% endcomment %}
15
17
 
16
18
  <li class="nav-item">
17
- <a class="nav-link{% if page.url == item.url %} active{% endif %}" href="{{ item.url }}">
19
+ <a class="nav-link{% if page.url == url %} active{% endif %}" href="{{ url }}">
18
20
  {{ item.text }}
19
21
 
20
- {%- if page.url == item.url -%}
22
+ {%- if page.url == url -%}
21
23
  <span class="sr-only">
22
24
  {{ site.i18n.menu.active | default: '(current)' }}
23
25
  </span>
@@ -2,99 +2,55 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <article class="h-card" itemscope itemtype="http://schema.org/Organization">
6
- <header>
7
- <div class="media">
8
- <img
9
- itemprop="logo"
10
- class="u-photo"
11
- src="{{ editorial.logo.path | thumbnail: 100 }}"
12
- alt="{{ editorial.logo.description }}" />
13
-
14
- <div class="media-body">
15
- <h1 class="p-name" itemprop="name">{{ editorial.title }}</h1>
16
- <p class="lead">{{ editorial.description }}</p>
17
- </div>
18
- </div>
19
-
20
- <div itemprop="location" itemscope itemtype="https://schema.org/PostalAddress">
21
- {%- if editorial.address -%}
22
- <p class="p-street-address" itemprop="streetAddress">{{ editorial.address }}</p>
23
- {%- endif -%}
24
- {%- if editorial.locality -%}
25
- <p class="p-locality" itemprop="addressLocality">{{ editorial.locality }}</p>
26
- {%- endif -%}
27
- {%- if editorial.country -%}
28
- <p class="p-country-name" itemprop="addressCountry">{{ editorial.country }}</p>
29
- {%- endif -%}
5
+ <article id="editorial" class="col h-card" itemscope itemtype="https://schema.org/Organization">
6
+ <div class="media">
7
+ <img
8
+ itemprop="logo"
9
+ class="u-photo"
10
+ src="{{ page.logo.path | thumbnail: 100 }}"
11
+ alt="{{ page.logo.description }}" />
12
+
13
+ <div class="media-body">
14
+ <h1 class="p-name" itemprop="name">{{ page.title }}</h1>
15
+ <p class="lead">{{ page.description }}</p>
30
16
  </div>
31
17
 
32
- <ul>
33
- {%- for social in editorial.social_networks -%}
34
- <li><a rel="me" href="{{ social }}">
35
- {% comment %}
36
-
37
- obtenemos la url de la red social, eliminamos la www,
38
- obtenemos el tercer elemento separando por / y el primero
39
- separando por .
40
-
41
- https://www.twitter.com/suttyweb
42
- https://twitter.com/suttyweb
43
- twitter.com
44
- twitter
45
- twitter
46
- {% endcomment %}
47
- {% assign s = social | remove: 'www.' | split: '/' %}
48
- {{ s[2] | split: '.' | first | capitalize }}
49
- </a></li>
50
- {%- endfor -%}
51
- </ul>
52
-
53
- <p>
54
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
55
- {%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
56
- {{ page.date | date: date_format }}
57
- </time>
58
- {%- for author in page.author -%}
59
-
60
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
61
- <span class="p-author h-card" itemprop="name">
62
- {{ author | escape }}
63
- </span>
64
- </span>
65
- {%- endfor -%}
66
- </p>
67
- </header>
68
-
69
- <div class="e-content" itemprop="articleBody">
70
- {{ content }}
71
18
  </div>
72
19
 
73
- <footer>
74
- <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
75
- {{ site.url }}/{{ page.url }}
76
- </a>
77
-
78
- {%- if page.uuid -%}
79
- <span hidden itemprop="identifier">{{ page.uuid }}</span>
20
+ <div itemprop="location" itemscope itemtype="https://schema.org/PostalAddress">
21
+ {%- if page.address -%}
22
+ <p class="p-street-address" itemprop="streetAddress">{{ page.address }}</p>
80
23
  {%- endif -%}
81
-
82
- {%- if page.license.url -%}
83
- <p itemprop="license" itemtype="http://schema.org/CreativeWork">
84
- <a rel="license" itemprop="url" href="{{ page.license.url }}">
85
- <span itemprop="articleBody">
86
- {{ page.license.description }}
87
- </span>
88
- </a>
89
- </p>
24
+ {%- if page.locality -%}
25
+ <p class="p-locality" itemprop="addressLocality">{{ page.locality }}</p>
90
26
  {%- endif -%}
91
-
92
- {%- if page.tags %}
93
- <span itemprop="keywords" hidden>{{ page.tags | join: ', ' }}</span>
94
- {%- for tag in page.tags -%}
95
- <span hidden class="h-category">{{ tag }}</span>
96
- {%- endfor -%}
27
+ {%- if page.country -%}
28
+ <p class="p-country-name" itemprop="addressCountry">{{ page.country }}</p>
97
29
  {%- endif -%}
98
- </footer>
99
- </article>
30
+ </div>
100
31
 
32
+ <ul>
33
+ {%- for social in page.social_networks -%}
34
+ <li><a rel="me" href="{{ social }}">
35
+ {% comment %}
36
+
37
+ Obtenemos la URL de la red social, eliminamos la www,
38
+ obtenemos el tercer elemento separando por / y el primero
39
+ separando por .
40
+
41
+ https://www.twitter.com/SuttyWeb
42
+ https://twitter.com/SuttyWeb
43
+ twitter.com
44
+ twitter
45
+ Twitter
46
+ {% endcomment %}
47
+ {% assign s = social | remove: 'www.' | split: '/' %}
48
+ {{ s[2] | split: '.' | first | capitalize }}
49
+ </a></li>
50
+ {%- endfor -%}
51
+ </ul>
52
+
53
+ <div class="e-content" itemprop="articleBody">
54
+ {{ page.content }}
55
+ </div>
56
+ </article>
data/_layouts/home.html CHANGED
@@ -7,10 +7,11 @@ layout: default
7
7
  {%- for book in books -%}
8
8
  <a href="{{ book.url }}">
9
9
  <div class="col book">
10
- <img
11
- src="{{ book.image.path | thumbnail: 212, 300 }}"
12
- alt="{{ book.image.description | default: book.title }}"
13
- />
10
+ <img
11
+ src="{{ book.image.path | thumbnail: 212, 300 }}"
12
+ alt="{{ book.image.description | default: book.title }}"
13
+ loading="lazy"
14
+ />
14
15
 
15
16
  <h2>{{ book.title }}</h2>
16
17
  <p>{{ book.author | join: ', ' }}</p>
data/_sass/home.scss CHANGED
@@ -6,6 +6,10 @@
6
6
  margin-right: 1rem;
7
7
  margin-left: 1rem;
8
8
 
9
+ img {
10
+ max-width: 212px;
11
+ }
12
+
9
13
  h2 {
10
14
  margin-top: 1rem;
11
15
  font-size: 1rem;
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-04 00:00:00.000000000 Z
11
+ date: 2020-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: jekyll-liquify-alt
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.1'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: bundler
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +180,6 @@ files:
166
180
  - _data/layouts/editorial.yml
167
181
  - _data/layouts/post.yml
168
182
  - _includes/contact.html
169
- - _includes/editorial.html
170
183
  - _includes/footer.html
171
184
  - _includes/navbar.html
172
185
  - _layouts/book.html
@@ -1,62 +0,0 @@
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>