sutty-donaciones-jekyll-theme 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +50 -0
- data/_data/en.yml +12 -0
- data/_data/es.yml +12 -0
- data/_data/forms/contacto.yml +40 -0
- data/_data/layouts/boton.yml +31 -15
- data/_data/layouts/portada.yml +53 -37
- data/_data/layouts/post.yml +49 -70
- data/_includes/boolean.html +30 -0
- data/_includes/contact.html +19 -0
- data/_includes/email.html +1 -0
- data/_includes/form/boolean.html +1 -0
- data/_includes/form/email.html +1 -0
- data/_includes/form/hidden.html +1 -0
- data/_includes/form/input.html +1 -0
- data/_includes/form/number.html +1 -0
- data/_includes/form/predefined_array.html +1 -0
- data/_includes/form/section.html +1 -0
- data/_includes/form/separator.html +1 -0
- data/_includes/form/string.html +1 -0
- data/_includes/form/submit.html +1 -0
- data/_includes/form/text.html +1 -0
- data/_includes/form/url.html +1 -0
- data/_includes/hidden.html +5 -0
- data/_includes/input.html +33 -0
- data/_includes/navbar.html +2 -2
- data/_includes/number.html +1 -0
- data/_includes/predefined_array.html +39 -0
- data/_includes/section.html +1 -0
- data/_includes/separator.html +1 -0
- data/_includes/string.html +3 -0
- data/_includes/submit.html +1 -0
- data/_includes/text.html +32 -0
- data/_includes/url.html +1 -0
- data/_layouts/default.html +2 -0
- data/_layouts/home.html +2 -2
- data/_layouts/layout.html +15 -0
- data/assets/css/styles.scss +1 -0
- metadata +43 -7
- data/_includes/boolean.html +0 -1
- data/_includes/email.html +0 -1
- data/_includes/form/boolean.html +0 -25
- data/_includes/form/email.html +0 -1
- data/_includes/form/input.html +0 -24
- data/_includes/form/number.html +0 -1
- data/_includes/form/predefined_array.html +0 -30
- data/_includes/form/section.html +0 -1
- data/_includes/form/separator.html +0 -1
- data/_includes/form/string.html +0 -1
- data/_includes/form/submit.html +0 -1
- data/_includes/form/text.html +0 -24
- data/_includes/form/url.html +0 -1
- data/_includes/input.html +0 -1
- data/_includes/number.html +0 -1
- data/_includes/predefined_array.html +0 -1
- data/_includes/section.html +0 -1
- data/_includes/separator.html +0 -1
- data/_includes/string.html +0 -1
- data/_includes/submit.html +0 -1
- data/_includes/text.html +0 -1
- data/_includes/url.html +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe463661812aa65aba48c110b21f098d04e803488d64022227241212acdbc62
|
4
|
+
data.tar.gz: 21b75c99dec85c1bbe29db692213718b5ead7e7ad4e2ac0a7a951f03d900ebf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 872e0b38b2d6878c1832b64c22773d379c28a92eb5577da939063c3b1ada32bdc73d2224c567dddf791242c6114a99373c84cf77fdacf75f5a89fca15224768c
|
7
|
+
data.tar.gz: d5ea07edb377d525dd9878815f31d20adc14bfd8dc95fb06a20d64ea12d776c5b1471a077d52b4430ed3e35eea8f1097c3648611aab7cd957cff97e6e1342685
|
data/_config.yml
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
title: Donaciones
|
2
|
+
plugins:
|
3
|
+
- jekyll-locales
|
4
|
+
- jekyll-archives
|
5
|
+
- jekyll-relative-urls
|
6
|
+
- jekyll-feed
|
7
|
+
- jekyll-seo-tag
|
8
|
+
- jekyll-images
|
9
|
+
- jekyll-include-cache
|
10
|
+
# Agregar node_modules a la lista de directorios donde SASS busca
|
11
|
+
# archivos. Podríamos haber agregado solo "node_modules/bootstrap/scss"
|
12
|
+
# pero queríamos dejarlo abierto para poder cambiar de framework o
|
13
|
+
# llamar a varios a la vez.
|
14
|
+
sass:
|
15
|
+
load_paths:
|
16
|
+
- node_modules
|
17
|
+
# Opciones para generar las URLs de las páginas. Por defecto Jekyll
|
18
|
+
# crea /categoria/año/mes/dia/titulo.html que me parece innecesariamente
|
19
|
+
# larga.
|
20
|
+
#
|
21
|
+
# Con esto generamos URLs relativas (sin / al principio) y solo el
|
22
|
+
# titulo convertido en slug. El slug es la versión limpia del título,
|
23
|
+
# sin espacios ni mayusculas, a veces sin tildes.
|
24
|
+
#
|
25
|
+
# En realidad Jekyll es un poco confuso acá porque :title es el nombre
|
26
|
+
# del archivo usado en _posts/yyyy-mm-dd-slug.md y no el titulo
|
27
|
+
# slugificado. De todas formas Sutty se encarga de que coincidan.
|
28
|
+
permalink: ":title/"
|
29
|
+
# El nombre de la plantilla
|
30
|
+
# theme: sutty-base-jekyll-theme
|
31
|
+
# La lista de resoluciones de imágenes disponibles para jekyll-images.
|
32
|
+
# Estamos usando los puntos de quiebre de bootstrap.
|
33
|
+
#
|
34
|
+
# https://getbootstrap.com/docs/4.4/layout/overview/#responsive-breakpoints
|
35
|
+
images:
|
36
|
+
sizes:
|
37
|
+
- 576
|
38
|
+
- 768
|
39
|
+
- 992
|
40
|
+
- 1140
|
41
|
+
locales:
|
42
|
+
- es
|
43
|
+
# Esto va a ser heredado por jekyll-data
|
44
|
+
jekyll-archives:
|
45
|
+
enabled:
|
46
|
+
- layout
|
47
|
+
permalinks:
|
48
|
+
layout: ':name/'
|
49
|
+
layouts:
|
50
|
+
layout: layout
|
data/_data/en.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
date: "%m/%d/%Y"
|
3
|
+
menu:
|
4
|
+
items:
|
5
|
+
- title: "Articles"
|
6
|
+
href: "post/"
|
7
|
+
footer:
|
8
|
+
description: "Made with [Sutty](https://sutty.nl/). [Make your own campaign!](https://panel.sutty.nl/)"
|
9
|
+
layouts:
|
10
|
+
boton: "Button"
|
11
|
+
portada: "Home"
|
12
|
+
post: "Post"
|
data/_data/es.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
date: "%d/%m/%Y"
|
3
|
+
menu:
|
4
|
+
items:
|
5
|
+
- title: "Artículos"
|
6
|
+
href: "post/"
|
7
|
+
footer:
|
8
|
+
description: "Hecho con [Sutty](https://sutty.nl/). [¡Armá tu campaña de donaciones!](https://panel.sutty.nl/)"
|
9
|
+
layouts:
|
10
|
+
boton: "Botón"
|
11
|
+
portada: "Portada"
|
12
|
+
post: "Artículo"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
pronouns:
|
3
|
+
type: "string"
|
4
|
+
autocomplete: "sex"
|
5
|
+
label:
|
6
|
+
es: "Pronombres"
|
7
|
+
en: "Pronouns"
|
8
|
+
placeholder:
|
9
|
+
es: "¿Qué pronombres usás?"
|
10
|
+
en: "What are your pronouns?"
|
11
|
+
name:
|
12
|
+
type: "string"
|
13
|
+
autocomplete: "name"
|
14
|
+
label:
|
15
|
+
es: "Nombre"
|
16
|
+
en: "Name"
|
17
|
+
placeholder:
|
18
|
+
es: "Nombre elegido, pseudónimo, alias"
|
19
|
+
en: "Choosen name, pseudonym, alias"
|
20
|
+
from:
|
21
|
+
type: "email"
|
22
|
+
autocomplete: "email"
|
23
|
+
label:
|
24
|
+
es: "Correo electrónico"
|
25
|
+
en: "E-mail address"
|
26
|
+
body:
|
27
|
+
type: text
|
28
|
+
label:
|
29
|
+
es: Mensaje
|
30
|
+
en: Message
|
31
|
+
consent:
|
32
|
+
type: boolean
|
33
|
+
label:
|
34
|
+
es: Acepto las políticas de privacidad
|
35
|
+
en: I agree to the privacy policy
|
36
|
+
submit:
|
37
|
+
type: submit
|
38
|
+
label:
|
39
|
+
es: Enviar
|
40
|
+
en: Send
|
data/_data/layouts/boton.yml
CHANGED
@@ -1,27 +1,43 @@
|
|
1
1
|
---
|
2
2
|
title:
|
3
|
-
type:
|
3
|
+
type: "string"
|
4
4
|
required: true
|
5
5
|
label:
|
6
|
-
es:
|
7
|
-
en:
|
6
|
+
es: "Título del botón"
|
7
|
+
en: "Button title"
|
8
8
|
help:
|
9
|
-
es:
|
10
|
-
en:
|
9
|
+
es: "Un título descriptivo para el botón de donación"
|
10
|
+
en: "A descriptive title for the donation button"
|
11
11
|
payment_url:
|
12
|
-
type:
|
12
|
+
type: "url"
|
13
13
|
required: true
|
14
14
|
label:
|
15
|
-
es:
|
16
|
-
en:
|
15
|
+
es: "Enlace o Link del botón de pago"
|
16
|
+
en: "Payment button link"
|
17
17
|
help:
|
18
|
-
es:
|
19
|
-
|
18
|
+
es: "El provedor del sistema de pago tiene que proporcionarte un link al botón de pago"
|
19
|
+
en: "The system payment provider must provide you with the link to the payment button"
|
20
20
|
color:
|
21
|
-
type:
|
21
|
+
type: "color"
|
22
22
|
label:
|
23
|
-
es:
|
24
|
-
en:
|
23
|
+
es: "Podés personalizar el color del botón"
|
24
|
+
en: "You can customize the color of the button"
|
25
25
|
help:
|
26
|
-
es:
|
27
|
-
en:
|
26
|
+
es: ""
|
27
|
+
en: ""
|
28
|
+
draft:
|
29
|
+
type: "boolean"
|
30
|
+
label:
|
31
|
+
es: "Borrador"
|
32
|
+
en: "Draft"
|
33
|
+
help:
|
34
|
+
es: "Al activar \"Borrador\" este contenido se mantendrá disponible en el panel, pero no se publica en el sitio como los demás contenidos al tocar \"Publicar todos los cambios\""
|
35
|
+
en: "By activating \"Draft\", this content will remain available on the dashboard, but will not be published on the site when you tap \"Publish all changes\" (other content which does not have this option selected will)."
|
36
|
+
order:
|
37
|
+
type: "order"
|
38
|
+
label:
|
39
|
+
es: "Orden"
|
40
|
+
en: "Order"
|
41
|
+
help:
|
42
|
+
es: "La posición del artículo en la lista de artículos"
|
43
|
+
en: "Position in list of posts"
|
data/_data/layouts/portada.yml
CHANGED
@@ -1,68 +1,84 @@
|
|
1
1
|
---
|
2
2
|
title:
|
3
|
-
type:
|
3
|
+
type: "string"
|
4
4
|
required: true
|
5
5
|
label:
|
6
|
-
es:
|
7
|
-
en:
|
6
|
+
es: "Título de la campaña de donaciones"
|
7
|
+
en: "Campaign title"
|
8
8
|
help:
|
9
|
-
es:
|
10
|
-
en:
|
9
|
+
es: "Un título que convoque a movilizar donaciones"
|
10
|
+
en: "A title that invites people to donate"
|
11
11
|
description:
|
12
|
-
type:
|
12
|
+
type: "text"
|
13
13
|
required: true
|
14
14
|
label:
|
15
|
-
es:
|
16
|
-
en:
|
15
|
+
es: "Alerta de contenido o descripción de la campaña"
|
16
|
+
en: "Content warning or campaign description"
|
17
17
|
help:
|
18
18
|
es: |
|
19
|
-
Resumen del contenido
|
19
|
+
Resumen del contenido de la campaña, que también usarán redes
|
20
20
|
sociales y buscadores. Si la campaña está relacionada con violencias y/u otros
|
21
21
|
temas sensibles, te invitamos a usar este campo como alerta de
|
22
22
|
contenido, para que las personas puedan determinar cuándo quieren
|
23
23
|
abrirlo.
|
24
24
|
en: |
|
25
25
|
Summary of the campaign contents, also used by social media and search
|
26
|
-
engines.
|
26
|
+
engines. If the campaign is related to violence and/or other sensitive
|
27
27
|
topics, we invite you to use it as a content warning, so others
|
28
28
|
can decide when they want to read it.
|
29
29
|
author:
|
30
|
-
type:
|
30
|
+
type: "array"
|
31
31
|
label:
|
32
|
-
es:
|
33
|
-
en:
|
32
|
+
es: "Autores"
|
33
|
+
en: "Authors"
|
34
34
|
help:
|
35
|
-
es:
|
36
|
-
en:
|
35
|
+
es: "Empieza a escribir para filtrar valores ya usados. Presiona enter para agregar el ítem seleccionado o agregar uno nuevo si no existe."
|
36
|
+
en: "Start typing to filter previously used values. Press enter to add the selected item or a new one if it doesn't exist yet."
|
37
37
|
image:
|
38
|
-
type:
|
38
|
+
type: "image"
|
39
39
|
path:
|
40
40
|
label:
|
41
|
-
es:
|
42
|
-
en:
|
41
|
+
es: "Imagen principal"
|
42
|
+
en: "Main image"
|
43
43
|
help:
|
44
|
-
es:
|
45
|
-
|
46
|
-
las redes sociales.
|
47
|
-
en: |
|
48
|
-
It's used to illustrate the campaign and as preview in social
|
49
|
-
networks.
|
44
|
+
es: "Se utiliza para ilustrar el artículo y como previsualización en las redes sociales."
|
45
|
+
en: "Used to illustrate the article and as preview in social networks."
|
50
46
|
description:
|
51
47
|
label:
|
52
|
-
es:
|
53
|
-
en:
|
48
|
+
es: "Descripción de la imagen principal"
|
49
|
+
en: "Main image description"
|
54
50
|
help:
|
55
|
-
es:
|
56
|
-
|
57
|
-
buscadores
|
58
|
-
en: |
|
59
|
-
Describe the main image for blind or partially sighted users and
|
60
|
-
search engines
|
51
|
+
es: "Describí la imagen por razones de accesibilidad e indexacion en buscadores"
|
52
|
+
en: "Describe the image for accesibility purposes and for indexation in search engines"
|
61
53
|
content:
|
62
|
-
type:
|
54
|
+
type: "new_content"
|
63
55
|
label:
|
64
|
-
es:
|
65
|
-
en:
|
56
|
+
es: "Contenido de la campaña"
|
57
|
+
en: "Campaign content"
|
66
58
|
help:
|
67
|
-
es:
|
68
|
-
en:
|
59
|
+
es: "Motivaciones, plazos, formas de donación o cualquier dato relevante"
|
60
|
+
en: "Motivations, timeframes, forms of donation or any relevant information"
|
61
|
+
locales:
|
62
|
+
type: "locales"
|
63
|
+
label:
|
64
|
+
es: "Traducciones"
|
65
|
+
en: "Translations"
|
66
|
+
help:
|
67
|
+
es: "Vínculo al mismo artículo en otros idiomas"
|
68
|
+
en: "Link to same post in other languages"
|
69
|
+
draft:
|
70
|
+
type: "boolean"
|
71
|
+
label:
|
72
|
+
es: "Borrador"
|
73
|
+
en: "Draft"
|
74
|
+
help:
|
75
|
+
es: "Al activar \"Borrador\" este contenido se mantendrá disponible en el panel, pero no se publica en el sitio como los demás contenidos al tocar \"Publicar todos los cambios\""
|
76
|
+
en: "By activating \"Draft\", this content will remain available on the dashboard, but will not be published on the site when you tap \"Publish all changes\" (other content which does not have this option selected will)."
|
77
|
+
order:
|
78
|
+
type: "order"
|
79
|
+
label:
|
80
|
+
es: "Orden"
|
81
|
+
en: "Order"
|
82
|
+
help:
|
83
|
+
es: "La posición del artículo en la lista de artículos"
|
84
|
+
en: "Position in list of posts"
|
data/_data/layouts/post.yml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
---
|
2
2
|
title:
|
3
|
-
type:
|
3
|
+
type: "string"
|
4
4
|
required: true
|
5
5
|
label:
|
6
|
-
es:
|
7
|
-
en:
|
6
|
+
es: "Título del artículo"
|
7
|
+
en: "Post title"
|
8
8
|
help:
|
9
|
-
es:
|
10
|
-
en:
|
9
|
+
es: "¡Un título que invite a leer el artículo!"
|
10
|
+
en: "A title that invites people to read the post!"
|
11
11
|
description:
|
12
|
-
type:
|
12
|
+
type: "text"
|
13
13
|
required: true
|
14
14
|
label:
|
15
|
-
es:
|
16
|
-
en:
|
15
|
+
es: "Alerta de contenido o descripción del artículo"
|
16
|
+
en: "Content warning or post description"
|
17
17
|
help:
|
18
18
|
es: |
|
19
19
|
Resumen del contenido del artículo, que también usarán redes
|
@@ -27,87 +27,66 @@ description:
|
|
27
27
|
topics, we invite you to use it as a content warning, so others
|
28
28
|
can decide when they want to read it.
|
29
29
|
author:
|
30
|
-
type:
|
30
|
+
type: "array"
|
31
31
|
label:
|
32
|
-
es:
|
33
|
-
en:
|
32
|
+
es: "Autores"
|
33
|
+
en: "Authors"
|
34
34
|
help:
|
35
|
-
es:
|
36
|
-
en:
|
35
|
+
es: "Empieza a escribir para filtrar valores ya usados. Presiona enter para agregar el ítem seleccionado o agregar uno nuevo si no existe."
|
36
|
+
en: "Start typing to filter previously used values. Press enter to add the selected item or a new one if it doesn't exist yet."
|
37
37
|
image:
|
38
|
-
type:
|
38
|
+
type: "image"
|
39
39
|
path:
|
40
40
|
label:
|
41
|
-
es:
|
42
|
-
en:
|
41
|
+
es: "Imagen principal"
|
42
|
+
en: "Main image"
|
43
43
|
help:
|
44
|
-
es:
|
45
|
-
|
46
|
-
las redes sociales.
|
47
|
-
en: |
|
48
|
-
It's used to illustrate the article and as preview in social
|
49
|
-
networks.
|
44
|
+
es: "Se utiliza para ilustrar el artículo y como previsualización en las redes sociales."
|
45
|
+
en: "Used to illustrate the article and as preview in social networks."
|
50
46
|
description:
|
51
47
|
label:
|
52
|
-
es:
|
53
|
-
en:
|
48
|
+
es: "Descripción de la imagen principal"
|
49
|
+
en: "Main image description"
|
54
50
|
help:
|
55
|
-
es:
|
56
|
-
|
57
|
-
buscadores
|
58
|
-
en: |
|
59
|
-
Describe the main image for blind or partially sighted users and
|
60
|
-
search engines
|
51
|
+
es: "Describí la imagen por razones de accesibilidad e indexacion en buscadores"
|
52
|
+
en: "Describe the image for accesibility purposes and for indexation in search engines"
|
61
53
|
content:
|
62
|
-
type:
|
54
|
+
type: "new_content"
|
63
55
|
label:
|
64
|
-
es:
|
65
|
-
en:
|
56
|
+
es: "Contenido del artículo"
|
57
|
+
en: "Post content"
|
66
58
|
help:
|
67
|
-
es:
|
68
|
-
en:
|
69
|
-
|
70
|
-
type:
|
71
|
-
label:
|
72
|
-
es: 'Enlace'
|
73
|
-
en: 'Permalink'
|
74
|
-
help:
|
75
|
-
es: |
|
76
|
-
Si no quieres utilizar el formato de enlaces general del sitio
|
77
|
-
para este artículo, especifica uno aquí.
|
78
|
-
en: |
|
79
|
-
If you don't want to follow the site's link format for this
|
80
|
-
post, change it here.
|
81
|
-
categories:
|
82
|
-
type: 'array'
|
59
|
+
es: "Escribe aquí el artículo"
|
60
|
+
en: "Write your post here"
|
61
|
+
tags:
|
62
|
+
type: "array"
|
83
63
|
label:
|
84
|
-
es:
|
85
|
-
en:
|
64
|
+
es: "Etiquetas"
|
65
|
+
en: "Tags"
|
86
66
|
help:
|
87
|
-
es:
|
88
|
-
en:
|
89
|
-
|
90
|
-
type:
|
67
|
+
es: "Empieza a escribir para filtrar valores ya usados. Presiona enter para agregar el ítem seleccionado o agregar uno nuevo si no existe."
|
68
|
+
en: "Start typing to filter previously used values. Press enter to add the selected item or a new one if it doesn't exist yet."
|
69
|
+
locales:
|
70
|
+
type: "locales"
|
91
71
|
label:
|
92
|
-
es:
|
93
|
-
en:
|
72
|
+
es: "Traducciones"
|
73
|
+
en: "Translations"
|
94
74
|
help:
|
95
|
-
es:
|
96
|
-
en:
|
75
|
+
es: "Vínculo al mismo artículo en otros idiomas"
|
76
|
+
en: "Link to same post in other languages"
|
97
77
|
draft:
|
98
|
-
type:
|
78
|
+
type: "boolean"
|
99
79
|
label:
|
100
|
-
es:
|
101
|
-
en:
|
80
|
+
es: "Borrador"
|
81
|
+
en: "Draft"
|
102
82
|
help:
|
103
|
-
es:
|
104
|
-
en: "
|
83
|
+
es: "Al activar \"Borrador\" este contenido se mantendrá disponible en el panel, pero no se publica en el sitio como los demás contenidos al tocar \"Publicar todos los cambios\""
|
84
|
+
en: "By activating \"Draft\", this content will remain available on the dashboard, but will not be published on the site when you tap \"Publish all changes\" (other content which does not have this option selected will)."
|
105
85
|
order:
|
106
|
-
type:
|
86
|
+
type: "order"
|
107
87
|
label:
|
108
|
-
es:
|
109
|
-
en:
|
88
|
+
es: "Orden"
|
89
|
+
en: "Order"
|
110
90
|
help:
|
111
|
-
es:
|
112
|
-
en:
|
113
|
-
---
|
91
|
+
es: "La posición del artículo en la lista de artículos"
|
92
|
+
en: "Position in list of posts"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{%- assign name = include.field[0] -%}
|
2
|
+
{%- assign id = include.field[1].id | default: name -%}
|
3
|
+
{%- assign label = include.field[1].label[site.locale] -%}
|
4
|
+
{%- assign help = include.field[1].help[site.locale] -%}
|
5
|
+
{%- assign autocomplete = include.field[1].autocomplete -%}
|
6
|
+
|
7
|
+
<div class="form-check text-left">
|
8
|
+
<input
|
9
|
+
{% if help %}
|
10
|
+
aria-describedby="help-{{ id }}"
|
11
|
+
{% endif %}
|
12
|
+
{% if include.field[1].required %}
|
13
|
+
required
|
14
|
+
{% endif %}
|
15
|
+
type="checkbox"
|
16
|
+
name="{{ name }}"
|
17
|
+
id="{{ id }}"
|
18
|
+
{% if autocomplete %}
|
19
|
+
autocomplete="{{ autocomplete }}"
|
20
|
+
{% endif %}
|
21
|
+
class="form-check-input" />
|
22
|
+
|
23
|
+
<label class="form-check-label" for="{{ id }}">{{ label }}</label>
|
24
|
+
|
25
|
+
{%- if help -%}
|
26
|
+
<small id="help-{{ id }}" class="form-text">
|
27
|
+
{{ help }}
|
28
|
+
</small>
|
29
|
+
{%- endif -%}
|
30
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% comment %}
|
2
|
+
Esta imagen obtiene una cookie desde la API de Sutty para autorizar el
|
3
|
+
envío del formulario.
|
4
|
+
{% endcomment %}
|
5
|
+
<img class="d-none" src="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/cookie.png" />
|
6
|
+
|
7
|
+
{% comment %}
|
8
|
+
El formulario se envía a la API. La definición del formulario se
|
9
|
+
encuentra en _data/forms/contacto.yml
|
10
|
+
{% endcomment %}
|
11
|
+
<form action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/contacto"
|
12
|
+
method="post">
|
13
|
+
{%- for field in include.form -%}
|
14
|
+
{% assign template = field[1].type | append: '.html' %}
|
15
|
+
<div class="col{{ field[1].col | default: 12 | prepend: '-' }}">
|
16
|
+
{% include {{ template }} field=field %}
|
17
|
+
</div>
|
18
|
+
{%- endfor -%}
|
19
|
+
</form>
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include input.html field=field %}
|
@@ -0,0 +1 @@
|
|
1
|
+
../boolean.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../email.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../hidden.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../input.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../number.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../predefined_array.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../section.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../separator.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../string.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../submit.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../text.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../url.html
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{%- assign name = include.field[0] -%}
|
2
|
+
{%- assign id = include.field[1].id | default: name -%}
|
3
|
+
{%- assign label = include.field[1].label[site.locale] -%}
|
4
|
+
{%- assign help = include.field[1].help[site.locale] -%}
|
5
|
+
{%- assign autocomplete = include.field[1].autocomplete -%}
|
6
|
+
|
7
|
+
<div class="form-group">
|
8
|
+
<label for="{{ id }}">
|
9
|
+
{{ label }}
|
10
|
+
{% if include.field[1].required %}*{% endif %}
|
11
|
+
</label>
|
12
|
+
|
13
|
+
<input
|
14
|
+
{% if help %}
|
15
|
+
aria-describedby="help-{{ id }}"
|
16
|
+
{% endif %}
|
17
|
+
{% if include.field[1].required %}
|
18
|
+
required
|
19
|
+
{% endif %}
|
20
|
+
type="{{ include.field[1].type }}"
|
21
|
+
name="{{ name }}"
|
22
|
+
id="{{ id }}"
|
23
|
+
{% if autocomplete %}
|
24
|
+
autocomplete="{{ autocomplete }}"
|
25
|
+
{% endif %}
|
26
|
+
class="form-control" />
|
27
|
+
|
28
|
+
{%- if help -%}
|
29
|
+
<small id="help-{{ id }}" class="form-text">
|
30
|
+
{{ help }}
|
31
|
+
</small>
|
32
|
+
{%- endif -%}
|
33
|
+
</div>
|
data/_includes/navbar.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
<nav class="navbar navbar-expand-lg navbar-light bg-light d-print-
|
1
|
+
<nav class="navbar navbar-expand-lg navbar-light bg-light d-print-none" role="navigation" aria-label="{{ site.i18n.menu.title }}">
|
2
2
|
<a class="navbar-brand" href="">
|
3
|
-
|
3
|
+
{{ site.title }}
|
4
4
|
</a>
|
5
5
|
|
6
6
|
{% comment %}
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include input.html field=field %}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{%- assign name = include.field[0] -%}
|
2
|
+
{%- assign id = include.field[1].id | default: name -%}
|
3
|
+
{%- assign label = include.field[1].label[site.locale] -%}
|
4
|
+
{%- assign help = include.field[1].help[site.locale] -%}
|
5
|
+
{%- assign autocomplete = include.field[1].autocomplete -%}
|
6
|
+
|
7
|
+
<div class="form-group">
|
8
|
+
<label for="{{ id }}">
|
9
|
+
{{ label }}
|
10
|
+
{% if include.field[1].required %}*{% endif %}
|
11
|
+
</label>
|
12
|
+
|
13
|
+
<select
|
14
|
+
{% if help %}
|
15
|
+
aria-describedby="help-{{ id }}"
|
16
|
+
{% endif %}
|
17
|
+
{% if include.field[1].required %}
|
18
|
+
required
|
19
|
+
{% endif %}
|
20
|
+
name="{{ name }}"
|
21
|
+
id="{{ id }}"
|
22
|
+
{% if autocomplete %}
|
23
|
+
autocomplete="{{ autocomplete }}"
|
24
|
+
{% endif %}
|
25
|
+
class="form-control">
|
26
|
+
|
27
|
+
<option value="" selected></option>
|
28
|
+
|
29
|
+
{%- for option in include.field[1].values -%}
|
30
|
+
<option value="{{ option }}">{{ option }}</option>
|
31
|
+
{%- endfor -%}
|
32
|
+
</select>
|
33
|
+
|
34
|
+
{%- if help -%}
|
35
|
+
<small id="help-{{ id }}" class="form-text">
|
36
|
+
{{ help }}
|
37
|
+
</small>
|
38
|
+
{%- endif -%}
|
39
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>
|
@@ -0,0 +1 @@
|
|
1
|
+
<hr/>
|
@@ -0,0 +1 @@
|
|
1
|
+
<input type="submit" class="btn btn-success" value="{{ include.field[1].label[site.locale] }}" />
|
data/_includes/text.html
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
{%- assign name = include.field[0] -%}
|
2
|
+
{%- assign id = include.field[1].id | default: name -%}
|
3
|
+
{%- assign label = include.field[1].label[site.locale] -%}
|
4
|
+
{%- assign help = include.field[1].help[site.locale] -%}
|
5
|
+
{%- assign autocomplete = include.field[1].autocomplete -%}
|
6
|
+
|
7
|
+
<div class="form-group">
|
8
|
+
<label for="{{ id }}">
|
9
|
+
{% if include.field[1].required %}*{% endif %}
|
10
|
+
{{ label }}
|
11
|
+
</label>
|
12
|
+
|
13
|
+
<textarea
|
14
|
+
{% if help %}
|
15
|
+
aria-describedby="help-{{ id }}"
|
16
|
+
{% endif %}
|
17
|
+
{% if include.field[1].required %}
|
18
|
+
required
|
19
|
+
{% endif %}
|
20
|
+
name="{{ name }}"
|
21
|
+
id="{{ id }}"
|
22
|
+
{% if autocomplete %}
|
23
|
+
autocomplete="{{ autocomplete }}"
|
24
|
+
{% endif %}
|
25
|
+
class="form-control"></textarea>
|
26
|
+
|
27
|
+
{%- if .help -%}
|
28
|
+
<small id="help-{{ id }}" class="form-text">
|
29
|
+
{{ help }}
|
30
|
+
</small>
|
31
|
+
{%- endif -%}
|
32
|
+
</div>
|
data/_includes/url.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{% include input.html field=field %}
|
data/_layouts/default.html
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
{% feed_meta %}
|
15
15
|
</head>
|
16
16
|
<body>
|
17
|
+
{% include navbar.html %}
|
17
18
|
<main class="container">
|
18
19
|
<div class="row justify-content-center d-print-block">
|
19
20
|
<div class="col">
|
@@ -21,5 +22,6 @@
|
|
21
22
|
</div>
|
22
23
|
</div>
|
23
24
|
</main>
|
25
|
+
<footer class="text-center">{{ site.i18n.footer.description | markdownify }}</footer>
|
24
26
|
</body>
|
25
27
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -5,7 +5,7 @@ layout: default
|
|
5
5
|
{%- assign portada = site.posts | where: 'layout', 'portada' | first -%}
|
6
6
|
{%- assign botones = site.posts | where: 'layout', 'boton' -%}
|
7
7
|
|
8
|
-
<section>
|
8
|
+
<section class="mt-5 mb-5">
|
9
9
|
<h1>{{ portada.title }}</h1>
|
10
10
|
<p class="lead">{{ portada.author | join: ', ' }} — {{ portada.description }}</p>
|
11
11
|
|
@@ -21,7 +21,7 @@ layout: default
|
|
21
21
|
</div>
|
22
22
|
</section>
|
23
23
|
|
24
|
-
<section class="row justify-content-center">
|
24
|
+
<section class="row justify-content-center mb-5">
|
25
25
|
<div class="col-md-6">
|
26
26
|
{% for boton in botones %}
|
27
27
|
<a
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% for post in page.posts %}
|
6
|
+
<div>
|
7
|
+
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
|
8
|
+
<time datetime="{{ post.date | date_to_xmlschema }}">
|
9
|
+
{%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
|
10
|
+
{{ post.date | date: date_format }}
|
11
|
+
</time>
|
12
|
+
|
13
|
+
<p class="lead">{{ post.description }}</p>
|
14
|
+
</div>
|
15
|
+
{% endfor %}
|
data/assets/css/styles.scss
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sutty-donaciones-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
- e
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -109,6 +109,34 @@ dependencies:
|
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '1.1'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: jekyll-locales
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0.1'
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.1'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sutty-archives
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '2.2'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '2.2'
|
112
140
|
- !ruby/object:Gem::Dependency
|
113
141
|
name: bundler
|
114
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +165,7 @@ dependencies:
|
|
137
165
|
- - "~>"
|
138
166
|
- !ruby/object:Gem::Version
|
139
167
|
version: '12.0'
|
140
|
-
description:
|
168
|
+
description:
|
141
169
|
email:
|
142
170
|
- f@sutty.nl
|
143
171
|
- e@sutty.nl
|
@@ -149,13 +177,19 @@ extra_rdoc_files:
|
|
149
177
|
files:
|
150
178
|
- LICENSE.txt
|
151
179
|
- README.md
|
180
|
+
- _config.yml
|
181
|
+
- _data/en.yml
|
182
|
+
- _data/es.yml
|
183
|
+
- _data/forms/contacto.yml
|
152
184
|
- _data/layouts/boton.yml
|
153
185
|
- _data/layouts/portada.yml
|
154
186
|
- _data/layouts/post.yml
|
155
187
|
- _includes/boolean.html
|
188
|
+
- _includes/contact.html
|
156
189
|
- _includes/email.html
|
157
190
|
- _includes/form/boolean.html
|
158
191
|
- _includes/form/email.html
|
192
|
+
- _includes/form/hidden.html
|
159
193
|
- _includes/form/input.html
|
160
194
|
- _includes/form/number.html
|
161
195
|
- _includes/form/predefined_array.html
|
@@ -165,6 +199,7 @@ files:
|
|
165
199
|
- _includes/form/submit.html
|
166
200
|
- _includes/form/text.html
|
167
201
|
- _includes/form/url.html
|
202
|
+
- _includes/hidden.html
|
168
203
|
- _includes/input.html
|
169
204
|
- _includes/navbar.html
|
170
205
|
- _includes/number.html
|
@@ -177,6 +212,7 @@ files:
|
|
177
212
|
- _includes/url.html
|
178
213
|
- _layouts/default.html
|
179
214
|
- _layouts/home.html
|
215
|
+
- _layouts/layout.html
|
180
216
|
- _layouts/post.html
|
181
217
|
- _sass/fonts.scss
|
182
218
|
- assets/css/styles.scss
|
@@ -195,7 +231,7 @@ metadata:
|
|
195
231
|
source_code_uri: https://0xacab.org/sutty/jekyll/sutty-donaciones-jekyll-theme
|
196
232
|
changelog_uri: https://0xacab.org/sutty/jekyll/sutty-donaciones-jekyll-theme/-/blob/master/CHANGELOG.md
|
197
233
|
documentation_uri: https://rubydoc.info/gems/sutty-donaciones-jekyll-theme
|
198
|
-
post_install_message:
|
234
|
+
post_install_message:
|
199
235
|
rdoc_options:
|
200
236
|
- "--title"
|
201
237
|
- sutty-donaciones-jekyll-theme - A theme for a donation page
|
@@ -217,8 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
253
|
- !ruby/object:Gem::Version
|
218
254
|
version: '0'
|
219
255
|
requirements: []
|
220
|
-
rubygems_version: 3.
|
221
|
-
signing_key:
|
256
|
+
rubygems_version: 3.3.26
|
257
|
+
signing_key:
|
222
258
|
specification_version: 4
|
223
259
|
summary: A theme for a donation page
|
224
260
|
test_files: []
|
data/_includes/boolean.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/boolean.html
|
data/_includes/email.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/email.html
|
data/_includes/form/boolean.html
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
<div class="form-check text-left">
|
2
|
-
<input
|
3
|
-
{% if include.field[1].help %}
|
4
|
-
aria-describedby="help-{{ include.field[0] }}"
|
5
|
-
{% endif %}
|
6
|
-
{% if include.field[1].required %}
|
7
|
-
required
|
8
|
-
{% endif %}
|
9
|
-
type="checkbox"
|
10
|
-
name="{{ include.field[0] }}"
|
11
|
-
id="{{ include.field[1].id | default: include.field[0] }}"
|
12
|
-
class="form-check-input" />
|
13
|
-
|
14
|
-
<label
|
15
|
-
class="form-check-label"
|
16
|
-
for="{{ include.field[1].id | default: include.field[0] }}">
|
17
|
-
{{ include.field[1].label }}
|
18
|
-
</label>
|
19
|
-
|
20
|
-
{%- if include.field[1].help -%}
|
21
|
-
<small id="help-{{ include.field[0] }}" class="form-text">
|
22
|
-
{{ include.field[1].help }}
|
23
|
-
</small>
|
24
|
-
{%- endif -%}
|
25
|
-
</div>
|
data/_includes/form/email.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{% include input.html field=field %}
|
data/_includes/form/input.html
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
<div class="form-group">
|
2
|
-
<label for="{{ include.field[1].id | default: include.field[0] }}">
|
3
|
-
{% if include.field[1].required %}*{% endif %}
|
4
|
-
{{ include.field[1].label }}
|
5
|
-
</label>
|
6
|
-
|
7
|
-
<input
|
8
|
-
{% if include.field[1].help %}
|
9
|
-
aria-describedby="help-{{ include.field[0] }}"
|
10
|
-
{% endif %}
|
11
|
-
{% if include.field[1].required %}
|
12
|
-
required
|
13
|
-
{% endif %}
|
14
|
-
type="{{ include.field[1].type }}"
|
15
|
-
name="{{ include.field[0] }}"
|
16
|
-
id="{{ include.field[1].id | default: include.field[0] }}"
|
17
|
-
class="form-control" />
|
18
|
-
|
19
|
-
{%- if include.field[1].help -%}
|
20
|
-
<small id="help-{{ include.field[0] }}" class="form-text">
|
21
|
-
{{ include.field[1].help }}
|
22
|
-
</small>
|
23
|
-
{%- endif -%}
|
24
|
-
</div>
|
data/_includes/form/number.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{% include input.html field=field %}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<div class="form-group">
|
2
|
-
<label for="{{ include.field[1].id | default: include.field[0] }}">
|
3
|
-
{% if include.field[1].required %}*{% endif %}
|
4
|
-
{{ include.field[1].label }}
|
5
|
-
</label>
|
6
|
-
|
7
|
-
<select
|
8
|
-
{% if include.field[1].help %}
|
9
|
-
aria-describedby="help-{{ include.field[0] }}"
|
10
|
-
{% endif %}
|
11
|
-
{% if include.field[1].required %}
|
12
|
-
required
|
13
|
-
{% endif %}
|
14
|
-
name="{{ include.field[0] }}"
|
15
|
-
id="{{ include.field[1].id | default: include.field[0] }}"
|
16
|
-
class="form-control">
|
17
|
-
|
18
|
-
<option value="" selected></option>
|
19
|
-
|
20
|
-
{%- for option in include.field[1].values -%}
|
21
|
-
<option value="{{ option }}">{{ option }}</option>
|
22
|
-
{%- endfor -%}
|
23
|
-
</select>
|
24
|
-
|
25
|
-
{%- if include.field[1].help -%}
|
26
|
-
<small id="help-{{ include.field[0] }}" class="form-text">
|
27
|
-
{{ include.field[1].help }}
|
28
|
-
</small>
|
29
|
-
{%- endif -%}
|
30
|
-
</div>
|
data/_includes/form/section.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>
|
@@ -1 +0,0 @@
|
|
1
|
-
<hr/>
|
data/_includes/form/string.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{% include input.html field=field %}
|
data/_includes/form/submit.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<input type="submit" class="btn btn-success" value="{{ include.field[1].label }}" />
|
data/_includes/form/text.html
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
<div class="form-group">
|
2
|
-
<label for="{{ include.field[0] }}">
|
3
|
-
{% if include.field[1].required %}*{% endif %}
|
4
|
-
{{ include.field[1].label }}
|
5
|
-
</label>
|
6
|
-
|
7
|
-
<textarea
|
8
|
-
{% if include.field[1].help %}
|
9
|
-
aria-describedby="help-{{ include.field[0] }}"
|
10
|
-
{% endif -%}
|
11
|
-
{% if include.field[1].required %}
|
12
|
-
required
|
13
|
-
{% endif %}
|
14
|
-
name="{{ include.field[0] }}"
|
15
|
-
id="{{ include.field[1].id | default: include.field[0] }}"
|
16
|
-
class="form-control">
|
17
|
-
</textarea>
|
18
|
-
|
19
|
-
{%- if include.field[1].help -%}
|
20
|
-
<small id="help-{{ include.field[0] }}" class="form-text">
|
21
|
-
{{ include.field[1].help }}
|
22
|
-
</small>
|
23
|
-
{%- endif -%}
|
24
|
-
</div>
|
data/_includes/form/url.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{% include input.html field=field %}
|
data/_includes/input.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/input.html
|
data/_includes/number.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/number.html
|
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/predefined_array.html
|
data/_includes/section.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/section.html
|
data/_includes/separator.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/separator.html
|
data/_includes/string.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/string.html
|
data/_includes/submit.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/submit.html
|
data/_includes/text.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/text.html
|
data/_includes/url.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_includes/form/url.html
|