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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc3c11222a90efa3fbd0a04ff8b7c0f6f88b4d35347b14d13c910a38cfa62069
4
- data.tar.gz: fa39f4de8901a80f29760d6764d9dd39a96654626a4b65264e5c86f89f112328
3
+ metadata.gz: 1b5333ce208266e77ed6789757d21ddc5bf7c79d3bf7ba07b10e1a62f0f206dd
4
+ data.tar.gz: f858d62553397c7fdf9e876b57e1e9f84fe9fb8d378d73d654dff5354fd57fd6
5
5
  SHA512:
6
- metadata.gz: 40a36146b85df044dec63d0c7cb983b139dc247522622a60d6c87585620891e2a51b8c3606cfeda217e51d9aeb146f6b3ae835426c628c8b4adc0cd6f9d9e281
7
- data.tar.gz: 285fc3c51bf75b03fa0cf692abbd46b114a82054a45ce79dce73f1ef8d2087770d51f90f826d7c4d747bbcc164dcc38de774c0a7098b02240884a05b6350b12a
6
+ metadata.gz: d9e9c0910d1b92f3127295aa9bf3d6d636505c607a43c71b78be4df1d503aac81fe77a8969dc5593c87b01e1aea685ea6f94cd7d828ef2bbe9a95295d54750a4
7
+ data.tar.gz: 3ed0247cf826ea8cfc7b7651df810c6902995924599408fda86c3c1b7c2bad12f781a4dc03310f5db151bad6676bcd08cd3d316c084e22706b90d93e864c4ce6
@@ -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
@@ -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: ''
@@ -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">
@@ -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>
@@ -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 type="radio" name="adhesiones" id="toggler-{{ form }}" class="toggler" autocomplete="off" {% cycle 'checked','' %} />
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">{{ adhesiones | size }}</span>
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>
@@ -58,6 +58,15 @@ input.toggler {
58
58
  height: auto;
59
59
  }
60
60
  }
61
+
62
+ &.btn {
63
+ &,
64
+ &:hover,
65
+ &:focus,
66
+ &:active {
67
+ background-color: $redpink
68
+ }
69
+ }
61
70
  }
62
71
 
63
72
  & + label {
@@ -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.0
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-20 00:00:00.000000000 Z
13
+ date: 2020-08-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jekyll