adhesiones-jekyll-theme 0.2.0 → 0.2.1
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 +2 -1
- data/_data/layouts/adhesion.yml +2 -2
- data/_includes/boolean.html +1 -1
- data/_layouts/default.html +1 -0
- data/_layouts/home.html +11 -3
- data/_sass/toggler.scss +9 -0
- data/assets/js/script.js +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b5333ce208266e77ed6789757d21ddc5bf7c79d3bf7ba07b10e1a62f0f206dd
|
4
|
+
data.tar.gz: f858d62553397c7fdf9e876b57e1e9f84fe9fb8d378d73d654dff5354fd57fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9e9c0910d1b92f3127295aa9bf3d6d636505c607a43c71b78be4df1d503aac81fe77a8969dc5593c87b01e1aea685ea6f94cd7d828ef2bbe9a95295d54750a4
|
7
|
+
data.tar.gz: 3ed0247cf826ea8cfc7b7651df810c6902995924599408fda86c3c1b7c2bad12f781a4dc03310f5db151bad6676bcd08cd3d316c084e22706b90d93e864c4ce6
|
data/_data/es.yml
CHANGED
@@ -13,11 +13,12 @@ home:
|
|
13
13
|
text: Imprimir
|
14
14
|
icon: print
|
15
15
|
form:
|
16
|
+
default: adhesion
|
16
17
|
title: Sumá tu adhesión
|
17
18
|
submit: Adherir
|
18
19
|
adhesion: Adherir como organización
|
19
20
|
adhesion_individual: Adherir como individue
|
20
|
-
adhesiones: Adhesiones
|
21
|
+
adhesiones: Adhesiones de organizaciones
|
21
22
|
metric: firmas
|
22
23
|
share_post:
|
23
24
|
text: Compartir adhesión
|
data/_data/layouts/adhesion.yml
CHANGED
@@ -47,8 +47,8 @@ consent:
|
|
47
47
|
type: 'boolean'
|
48
48
|
required: true
|
49
49
|
label:
|
50
|
-
es: 'Acepto las políticas de privacidad'
|
51
|
-
en: 'I agree to the privacy policy'
|
50
|
+
es: 'Acepto las [políticas de privacidad](https://sutty.nl/politica-de-privacidad/)'
|
51
|
+
en: 'I agree to the [privacy policy](https://sutty.nl/en/privacy-policy/)'
|
52
52
|
help:
|
53
53
|
es: ''
|
54
54
|
en: ''
|
data/_includes/boolean.html
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
{% endif %}
|
21
21
|
class="form-check-input" />
|
22
22
|
|
23
|
-
<label class="form-check-label" for="{{ id }}">{{ label }}</label>
|
23
|
+
<label class="form-check-label" for="{{ id }}">{{ label | markdownify }}</label>
|
24
24
|
|
25
25
|
{%- if help -%}
|
26
26
|
<small id="help-{{ id }}" class="form-text">
|
data/_layouts/default.html
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
8
8
|
<meta name="theme-color" content="white"/>
|
9
9
|
<meta name="color-scheme" content="light"/>
|
10
|
+
<meta name="referrer" content="strict-origin-when-cross-origin" />
|
10
11
|
|
11
12
|
<link href="assets/css/styles.css" rel="stylesheet">
|
12
13
|
<script defer type="text/javascript" src="assets/js/script.js"></script>
|
data/_layouts/home.html
CHANGED
@@ -63,7 +63,14 @@ layout: default
|
|
63
63
|
<div class="col-12 col-lg-6 pt-5">
|
64
64
|
{%- assign forms = 'adhesion,adhesion_individual' | split: ',' -%}
|
65
65
|
{% for form in forms %}
|
66
|
-
<input
|
66
|
+
<input
|
67
|
+
type="radio"
|
68
|
+
name="adhesiones"
|
69
|
+
id="toggler-{{ form }}"
|
70
|
+
class="toggler"
|
71
|
+
autocomplete="off"
|
72
|
+
{% if form == site.i18n.home.form.default %}checked{% endif %}
|
73
|
+
/>
|
67
74
|
<label class="btn border position-absolute top {% cycle 'left','right' %}" for="toggler-{{ form }}">
|
68
75
|
{{ site.i18n.home.form[form] }}
|
69
76
|
</label>
|
@@ -119,7 +126,8 @@ layout: default
|
|
119
126
|
</section>
|
120
127
|
|
121
128
|
{%- assign adhesiones = site.posts | where: 'layout', 'adhesion' -%}
|
122
|
-
{%- assign adhesiones_individuales = site.posts | where: 'layout', 'adhesion_individual' -%}
|
129
|
+
{%- assign adhesiones_individuales = site.posts | where: 'layout', 'adhesion_individual' | size -%}
|
130
|
+
{%- assign total = adhesiones | size | plus: adhesiones_individuales -%}
|
123
131
|
|
124
132
|
<section class="mt-5" id="adhesiones">
|
125
133
|
<header class="row align-items-center justify-content-between">
|
@@ -129,7 +137,7 @@ layout: default
|
|
129
137
|
|
130
138
|
<div class="col-6 col-lg-4">
|
131
139
|
<p>
|
132
|
-
<span class="font-weight-bold font-bigger">{{
|
140
|
+
<span class="font-weight-bold font-bigger">{{ total }}</span>
|
133
141
|
{{ site.i18n.home.metric }}
|
134
142
|
<i class="fa fa-line-chart"></i>
|
135
143
|
</p>
|
data/_sass/toggler.scss
CHANGED
data/assets/js/script.js
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
---
|
3
3
|
|
4
4
|
document.addEventListener('{%- if site.turbolinks.enabled -%}turbolinks:load{%- else -%}DOMContentLoaded{%- endif -%}', () => {
|
5
|
+
document.querySelectorAll("a[href^='http://'],a[href^='https://'],a[href^='//']").forEach(a => a.target = "_blank");
|
6
|
+
|
5
7
|
document.querySelectorAll('.print').forEach(print => {
|
6
8
|
print.addEventListener('click', e => {
|
7
9
|
event.preventDefault();
|
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.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-08-
|
13
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jekyll
|