editorial-autogestiva-jekyll-theme 0.2.4 → 0.2.5

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: 5cad78f83808d10966797df8bf789a8f5bea1e44842d528356a93a587f13a0a1
4
- data.tar.gz: aaab2149a650fee8351d3e032446dcaa93fa6a93e7276f6a2249472917f6d2ab
3
+ metadata.gz: 8f53efdcc0087a49916be53d104781f7e7703c8b4f2250c9ed6ab973bd3ef5f7
4
+ data.tar.gz: a935bcee18f44ac82fda3ae726da62dc1f411db249d3e3df47dccf59c2e75e20
5
5
  SHA512:
6
- metadata.gz: 1086e50aab8822389145f75aee215cdccf5facfd4604ccf66bf7274685f3dca6595015dee0de9233cc05932545caab6a32e332d2eb8d9e64505946a8ffdf0f92
7
- data.tar.gz: 4dda34dba621bd1cff8104f0c66141dfc63b624f98c8507b7c012f400dcc781d0634bbda69afd23875caa52caad82aa1a3ac696ae98c6f3b2222f44d7babcfcb
6
+ metadata.gz: 8d2698915282143b417e074abb0cb66f82950190f974c811fb927c57f27eae897b9f575fb61955e6693f5faa830f559efde844dbce03f751a207e414cf15e7df
7
+ data.tar.gz: 8afe32ed4f79fee17d912ea994bd0fe67fc246a5658a414a9d48b449b43d630f908f444e6a5fb7bbde2b2c4ec6d845e59f94eeead24d5a2bb71c96b7661749ac
@@ -0,0 +1,54 @@
1
+ <article id="editorial" class="col h-card" itemscope itemtype="https://schema.org/Organization">
2
+ <div class="media">
3
+ <img
4
+ itemprop="logo"
5
+ class="u-photo"
6
+ src="{{ include.editorial.logo.path | thumbnail: 100 }}"
7
+ alt="{{ include.editorial.logo.description }}" />
8
+
9
+ <div class="media-body">
10
+ <h1 class="p-name" itemprop="name">{{ include.editorial.title }}</h1>
11
+ <p class="lead">{{ include.editorial.description }}</p>
12
+ </div>
13
+
14
+ </div>
15
+
16
+ <div itemprop="location" itemscope itemtype="https://schema.org/PostalAddress">
17
+ {%- if include.editorial.address -%}
18
+ <p class="p-street-address" itemprop="streetAddress">{{ include.editorial.address }}</p>
19
+ {%- endif -%}
20
+ {%- if include.editorial.locality -%}
21
+ <p class="p-locality" itemprop="addressLocality">{{ include.editorial.locality }}</p>
22
+ {%- endif -%}
23
+ {%- if include.editorial.country -%}
24
+ <p class="p-country-name" itemprop="addressCountry">{{ include.editorial.country }}</p>
25
+ {%- endif -%}
26
+ </div>
27
+
28
+ <ul>
29
+ {%- for social in include.editorial.social_networks -%}
30
+ <li><a rel="me" href="{{ social }}">
31
+ {% comment %}
32
+
33
+ Obtenemos la URL de la red social, eliminamos la www,
34
+ obtenemos el tercer elemento separando por / y el primero
35
+ separando por .
36
+
37
+ https://www.twitter.com/SuttyWeb
38
+ https://twitter.com/SuttyWeb
39
+ twitter.com
40
+ twitter
41
+ Twitter
42
+ {% endcomment %}
43
+ {% assign s = social | remove: 'www.' | split: '/' %}
44
+ {{ s[2] | split: '.' | first | capitalize }}
45
+ </a></li>
46
+ {%- endfor -%}
47
+ </ul>
48
+
49
+ {%- if include.content -%}
50
+ <div class="e-content" itemprop="articleBody">
51
+ {{ include.editorial.content }}
52
+ </div>
53
+ {%- endif -%}
54
+ </article>
@@ -1,7 +1,8 @@
1
1
  <footer>
2
2
  <div class="row align-items-end">
3
3
  {%- if include.footer -%}
4
- {% include_cached editorial.html %}
4
+ {% assign editorial = site.posts | where: 'layout', 'editorial' | first %}
5
+ {% include_cached editorial.html editorial=editorial %}
5
6
  {%- endif -%}
6
7
 
7
8
  <div class="col text-right">
@@ -15,6 +15,8 @@
15
15
  to mark the active item in code rather than with JS.
16
16
  {% endcomment %}
17
17
 
18
+ {% assign url = item.url | liquify %}
19
+
18
20
  <li class="nav-item">
19
21
  <a class="nav-link{% if page.url == url %} active{% endif %}" href="{{ url }}">
20
22
  {{ item.text }}
@@ -31,8 +31,8 @@
31
31
  </div>
32
32
  </div>
33
33
 
34
- {%- if page contains 'footer' -%}
35
- {%- assign footer = page.footer -%}
34
+ {%- if page.layout == 'editorial' -%}
35
+ {%- assign footer = false -%}
36
36
  {%- else -%}
37
37
  {%- assign footer = true -%}
38
38
  {%- endif -%}
@@ -1,56 +1,6 @@
1
1
  ---
2
2
  layout: default
3
+ footer: false
3
4
  ---
4
5
 
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>
16
- </div>
17
-
18
- </div>
19
-
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>
23
- {%- endif -%}
24
- {%- if page.locality -%}
25
- <p class="p-locality" itemprop="addressLocality">{{ page.locality }}</p>
26
- {%- endif -%}
27
- {%- if page.country -%}
28
- <p class="p-country-name" itemprop="addressCountry">{{ page.country }}</p>
29
- {%- endif -%}
30
- </div>
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>
6
+ {% include editorial.html editorial=page content=true %}
data/_layouts/home.html CHANGED
@@ -15,14 +15,6 @@ layout: default
15
15
 
16
16
  <h2>{{ book.title }}</h2>
17
17
  <p>{{ book.author | join: ', ' }}</p>
18
-
19
- {%- if book.payment_url -%}
20
- <a
21
- href="{{ book.payment_url }}"
22
- class="btn btn-success btn-block">
23
- {{ site.i18n.book.payment_url }}
24
- </a>
25
- {%- endif %}
26
18
  </div>
27
19
  </a>
28
20
  {%- endfor %}
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.4
4
+ version: 0.2.5
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-09 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -180,6 +180,7 @@ files:
180
180
  - _data/layouts/editorial.yml
181
181
  - _data/layouts/post.yml
182
182
  - _includes/contact.html
183
+ - _includes/editorial.html
183
184
  - _includes/footer.html
184
185
  - _includes/navbar.html
185
186
  - _layouts/book.html