adhesiones-jekyll-theme 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/es.yml +1 -1
- data/_layouts/home.html +29 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b41a480a2156a55fe9f6838799e0b746f45c6d126f33d30b434b140c8dcdeca3
|
4
|
+
data.tar.gz: 523510c58c16749d712e1ba380767ab356e9db2fd88ed0fe3c33a845eb0f6d4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37b2cfe7e468b16e295b320d171dc3a6322fb3f31b880190ba5d41defd996388ace3edb623729ae80bd90ac05e370f70ab08d424e64d5866b1e94e9b8de9aa7
|
7
|
+
data.tar.gz: 72451ebe10d5c5a1f462e7977140b1c80d0f872e97e2df8118ecc5f66a02d9f17189387f90b27884f37fc7af69f26522d6d8aa16c8655c338878767b293ef0db
|
data/_data/es.yml
CHANGED
@@ -94,7 +94,7 @@ home:
|
|
94
94
|
adhesion: Adherir como organización
|
95
95
|
adhesion_individual: Adherir como individue
|
96
96
|
submit_help: "Para prevenir el spam, por favor espera <span data-seconds>30</span> segundos antes de enviar."
|
97
|
-
adhesiones: Adhesiones
|
97
|
+
adhesiones: Adhesiones
|
98
98
|
metric: firmas
|
99
99
|
share_post:
|
100
100
|
text: Compartir adhesión
|
data/_layouts/home.html
CHANGED
@@ -91,8 +91,11 @@ layout: default
|
|
91
91
|
{%- endfor -%}
|
92
92
|
|
93
93
|
<div class="col-12">
|
94
|
-
<input
|
94
|
+
<input
|
95
|
+
data-target="contact.submit"
|
96
|
+
type="submit" value="{{ site.i18n.home.form.submit }}" class="btn btn-success btn-block" />
|
95
97
|
<small
|
98
|
+
data-target="contact.help"
|
96
99
|
class="form-text text-muted">
|
97
100
|
{{ site.i18n.home.form.submit_help }}
|
98
101
|
</small>
|
@@ -133,8 +136,10 @@ layout: default
|
|
133
136
|
</section>
|
134
137
|
|
135
138
|
{%- assign adhesiones = site.posts | where: 'layout', 'adhesion' -%}
|
136
|
-
{%- assign adhesiones_individuales = site.posts | where: 'layout', 'adhesion_individual'
|
137
|
-
{%- assign total =
|
139
|
+
{%- assign adhesiones_individuales = site.posts | where: 'layout', 'adhesion_individual' -%}
|
140
|
+
{%- assign total = adhesiones_individuales | size %}
|
141
|
+
{%- assign total = adhesiones | size | plus: total -%}
|
142
|
+
{%- assign adhesiones_individuales = adhesiones_individuales | where: 'public', true | where: 'draft', false -%}
|
138
143
|
|
139
144
|
<section class="mt-5" id="adhesiones">
|
140
145
|
<header class="row align-items-center justify-content-between">
|
@@ -159,6 +164,8 @@ layout: default
|
|
159
164
|
</header>
|
160
165
|
|
161
166
|
{%- for adhesion in adhesiones -%}
|
167
|
+
{% assign cleaned_content = adhesion.content | strip_html | strip %}
|
168
|
+
{% if cleaned_content == empty %}{% continue %}{% endif %}
|
162
169
|
<article id="{{ adhesion.uuid }}" class="callout">
|
163
170
|
<header >
|
164
171
|
<h5>
|
@@ -181,6 +188,25 @@ layout: default
|
|
181
188
|
</article>
|
182
189
|
{%- endfor -%}
|
183
190
|
|
191
|
+
{%- for adhesion in adhesiones_individuales -%}
|
192
|
+
{% assign cleaned_content = adhesion.content | strip_html | strip %}
|
193
|
+
{% if cleaned_content == empty %}{% continue %}{% endif %}
|
194
|
+
<article id="{{ adhesion.uuid }}" class="callout">
|
195
|
+
<header >
|
196
|
+
<h5>
|
197
|
+
{{ adhesion.name }}
|
198
|
+
</h5>
|
199
|
+
|
200
|
+
|
201
|
+
<time datetime="{{ adhesion.date }}">
|
202
|
+
{{ adhesion.date | date: site.i18n.date.format }}
|
203
|
+
</time>
|
204
|
+
</header>
|
205
|
+
|
206
|
+
{{ adhesion.content }}
|
207
|
+
</article>
|
208
|
+
{%- endfor -%}
|
209
|
+
|
184
210
|
<footer class="row no-gutters justify-space-between">
|
185
211
|
{%- for adhesion in adhesiones -%}
|
186
212
|
{%- unless adhesion.logo.path -%}
|