adhesiones-jekyll-theme 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_data/es.yml +1 -1
  3. data/_layouts/home.html +29 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 526c86c9039ea8987fdc61112ccf336ddff5cb21a6d5e131dd1c83bd52381977
4
- data.tar.gz: 8d6f12bcc90ba7573079f09286c59a80b82927fd27d4c7af3f364c6388a21044
3
+ metadata.gz: b41a480a2156a55fe9f6838799e0b746f45c6d126f33d30b434b140c8dcdeca3
4
+ data.tar.gz: 523510c58c16749d712e1ba380767ab356e9db2fd88ed0fe3c33a845eb0f6d4e
5
5
  SHA512:
6
- metadata.gz: f183d224fe65edb25a6a0354dd4d3b3947cb65875b9214d9ed349f529566b4d54116f1e8b6ab32afbf04b763db31bab1f8a8328825bf45a6859b5b153ae15d1b
7
- data.tar.gz: 2f7e9c0959469cdeb60298504d2284576aaf8b890ce0c2db1bee2ebd4929cb9f416882dfd7d378c642039c0d098377928485e76f5b2768910ec3067268a14a23
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 de organizaciones
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 type="submit" value="{{ site.i18n.home.form.submit }}" class="btn btn-success btn-block" />
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' | size -%}
137
- {%- assign total = adhesiones | size | plus: adhesiones_individuales -%}
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 -%}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adhesiones-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - f