editorial-autogestiva-jekyll-theme 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md.orig +118 -0
- data/_data/en.yml +49 -0
- data/_data/forms/contacto.yml +49 -0
- data/_data/forms/contacto.yml~ +45 -0
- data/_includes/boolean.html +1 -0
- data/_includes/contact.html +16 -29
- data/_includes/contact.html.orig +55 -0
- data/_includes/email.html +1 -0
- data/_includes/form/boolean.html +30 -0
- data/_includes/form/email.html +1 -0
- data/_includes/form/hidden.html +5 -0
- data/_includes/form/input.html +33 -0
- data/_includes/form/number.html +1 -0
- data/_includes/form/predefined_array.html +39 -0
- data/_includes/form/section.html +1 -0
- data/_includes/form/separator.html +1 -0
- data/_includes/form/string.html +3 -0
- data/_includes/form/submit.html +1 -0
- data/_includes/form/text.html +32 -0
- data/_includes/form/url.html +1 -0
- data/_includes/hidden.html +1 -0
- data/_includes/input.html +1 -0
- data/_includes/navbar.html +1 -1
- data/_includes/navbar.html.orig +44 -0
- data/_includes/number.html +1 -0
- data/_includes/predefined_array.html +1 -0
- data/_includes/section.html +1 -0
- data/_includes/separator.html +1 -0
- data/_includes/string.html +1 -0
- data/_includes/submit.html +1 -0
- data/_includes/text.html +1 -0
- data/_includes/url.html +1 -0
- data/_layouts/book.html +1 -1
- metadata +32 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d869ce07c203867e7cafc72684ae44028971c711bd59c86e010fd1dec968795c
|
4
|
+
data.tar.gz: 6ce03db92629e293a07ba10583a274de9ad1814fa2ce8f94e0aa576cfa72cd06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4b10eb19d000565eb3521ce5a3d4de55068f8bfe1087b9adbcd3951189cfd07319096c5921ef7afeed4acba4a36dcc104e2f32c2c6d271c7d06ef8d786b5338
|
7
|
+
data.tar.gz: 1ab785ab4ff7ebc973fc3d36a043767709dc623a912c305286f3e28b3a3cadcd0f0a60d306ed6dadf8f7b173309fb372244b8fe055d256cc09a763f6e98b0de1
|
data/README.md.orig
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
# editorial-autogestiva-jekyll-theme
|
2
|
+
|
3
|
+
Una plantilla para editoriales autogestivas
|
4
|
+
|
5
|
+
|
6
|
+
<<<<<<< HEAD
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Install Bootstrap 4.4:
|
10
|
+
=======
|
11
|
+
```bash
|
12
|
+
# Hacer un fork local desde sutty-base-jekyll-theme a nuestra plantilla
|
13
|
+
git clone https://0xacab.org/sutty/jekyll/sutty-base-jekyll-theme.git \
|
14
|
+
CAMBIAME-jekyll-theme
|
15
|
+
cd CAMBIAME-jekyll-theme
|
16
|
+
|
17
|
+
# Sutty-base ahora es el proyecto base, desde el que podemos tomar
|
18
|
+
# cambios, pero no enviamos para no mezclar las cosas
|
19
|
+
git remote rename origin upstream
|
20
|
+
|
21
|
+
# Agregamos el repositorio donde vamos a enviar y publicar cambios
|
22
|
+
git remote add origin \
|
23
|
+
git@0xacab.org:sutty/jekyll/CAMBIAME-jekyll-theme.git
|
24
|
+
|
25
|
+
# Configuramos git para que envíe siempre los cambios al repositorio
|
26
|
+
# nuevo
|
27
|
+
git push --set-upstream origin master
|
28
|
+
```
|
29
|
+
|
30
|
+
Para empezar, hay que buscar y reemplazar en todos los archivos donde
|
31
|
+
diga `CAMBIAME`.
|
32
|
+
|
33
|
+
También hay que instalar las dependencias de CSS y JS con `yarn`.
|
34
|
+
|
35
|
+
## Publicación
|
36
|
+
|
37
|
+
Para publicar la plantilla, primero hay que cambiar el nombre al archivo
|
38
|
+
`sutty-base-jekyll-theme.gemspec`:
|
39
|
+
|
40
|
+
```bash
|
41
|
+
git mv {sutty-base,CAMBIAME}-jekyll-theme.gemspec
|
42
|
+
```
|
43
|
+
|
44
|
+
Cada vez que actualicemos la gema hay que editar
|
45
|
+
`CAMBIAME-jekyll-theme.gemspec` para cambiar la versión.
|
46
|
+
|
47
|
+
Y luego para compilar y publicar la gema:
|
48
|
+
|
49
|
+
```bash
|
50
|
+
gem build CAMBIAME-jekyll-theme.gemspec
|
51
|
+
gem push CAMBIAME-VERSION.gemspec
|
52
|
+
```
|
53
|
+
|
54
|
+
También hay que actualizar la versión en el
|
55
|
+
[skel](https://0xacab.org/sutty/skel.sutty.nl/).
|
56
|
+
|
57
|
+
>>>>>>> ab27eaaed5357d624edd12ea22bc4e88401b5a1d
|
58
|
+
|
59
|
+
```bash
|
60
|
+
yarn add bootstrap@~4.4
|
61
|
+
```
|
62
|
+
|
63
|
+
Add this line to your Jekyll site's `Gemfile`:
|
64
|
+
|
65
|
+
```ruby
|
66
|
+
gem "editorial-autogestiva-jekyll-theme"
|
67
|
+
```
|
68
|
+
|
69
|
+
And add this line to your Jekyll site's `_config.yml`:
|
70
|
+
|
71
|
+
```yaml
|
72
|
+
theme: editorial-autogestiva-jekyll-theme
|
73
|
+
```
|
74
|
+
|
75
|
+
And then execute:
|
76
|
+
|
77
|
+
$ bundle
|
78
|
+
|
79
|
+
Or install it yourself as:
|
80
|
+
|
81
|
+
$ gem install editorial-autogestiva-jekyll-theme
|
82
|
+
|
83
|
+
## Usage
|
84
|
+
|
85
|
+
Por ahora no tenemos opciones, solo hay que agregar la gema en el sitio
|
86
|
+
y funciona :)
|
87
|
+
|
88
|
+
## Contributing
|
89
|
+
|
90
|
+
Bug reports and pull requests are welcome on 0xacab.org at
|
91
|
+
https://0xacab.org/sutty/jekyll/editorial-autogestiva-jekyll-theme. This project is
|
92
|
+
intended to be a safe, welcoming space for collaboration, and
|
93
|
+
contributors are expected to adhere to the [Sutty's code of
|
94
|
+
conduct](http://sutty.nl/en/code-of-conduct).
|
95
|
+
|
96
|
+
## Development
|
97
|
+
|
98
|
+
To set up your environment to develop this theme, run `bundle install`.
|
99
|
+
|
100
|
+
Your theme is setup just like a normal Jekyll site! To test your theme,
|
101
|
+
run `bundle exec jekyll serve` and open your browser at
|
102
|
+
`http://localhost:4000`. This starts a Jekyll server using your
|
103
|
+
theme. Add pages, documents, data, etc. like normal to test your theme's
|
104
|
+
contents. As you make modifications to your theme and to your content,
|
105
|
+
your site will regenerate and you should see the changes in the browser
|
106
|
+
after a refresh, just like normal.
|
107
|
+
|
108
|
+
When your theme is released, only the files in `_layouts`, `_includes`,
|
109
|
+
`_sass` and `assets` tracked with Git will be bundled.
|
110
|
+
|
111
|
+
To add a custom directory to your theme-gem, please edit the array in
|
112
|
+
`editorial-autogestiva-jekyll-theme.gemspec` accordingly.
|
113
|
+
|
114
|
+
## License
|
115
|
+
|
116
|
+
The theme is available as open source under the terms of the [Antifacist
|
117
|
+
MIT License](LICENSE.txt).
|
118
|
+
|
data/_data/en.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
locale: English
|
3
|
+
date: '%m/%d/%Y'
|
4
|
+
menu:
|
5
|
+
title: Main Menu
|
6
|
+
items:
|
7
|
+
- text: Catalogue
|
8
|
+
url: ''
|
9
|
+
- text: About
|
10
|
+
url: '{{ editorial.url }}'
|
11
|
+
book:
|
12
|
+
pages: "Pages"
|
13
|
+
size: "Size"
|
14
|
+
availability: "Availability"
|
15
|
+
in_stock: "En stock"
|
16
|
+
out_of_stock: "Agotado temporalmente"
|
17
|
+
payment_methods: "Métodos de pago"
|
18
|
+
delivery_methods: "Métodos de entrega"
|
19
|
+
payment_url: "Comprar"
|
20
|
+
file: "Descargar"
|
21
|
+
direct_download:
|
22
|
+
schema: DirectDownload
|
23
|
+
text: Descarga
|
24
|
+
pick_up:
|
25
|
+
schema: PickUp
|
26
|
+
text: Retiro en domicilio
|
27
|
+
mail:
|
28
|
+
schema: Mail
|
29
|
+
text: Envío por correo
|
30
|
+
cash:
|
31
|
+
schema: Cash
|
32
|
+
text: Efectivo
|
33
|
+
direct_debit:
|
34
|
+
schema: DirectDebit
|
35
|
+
text: Débito
|
36
|
+
bank_transfer_in_advance:
|
37
|
+
schema: BankTransferInAdvance
|
38
|
+
text: Transferencia bancaria
|
39
|
+
footer:
|
40
|
+
made_with_sutty: |
|
41
|
+
Sitio hecho con [Sutty](https://sutty.nl/es/). [Publicá el tuyo
|
42
|
+
:)](https://panel.sutty.nl/).
|
43
|
+
links:
|
44
|
+
- text: "Política de privacidad"
|
45
|
+
url: "politica-de-privacidad/"
|
46
|
+
- text: "Código de conducta"
|
47
|
+
url: "codigo-de-conducta/"
|
48
|
+
contact:
|
49
|
+
thanks: thanks
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
redirect:
|
3
|
+
type: "hidden"
|
4
|
+
value: ""
|
5
|
+
pronouns:
|
6
|
+
type: "string"
|
7
|
+
autocomplete: "sex"
|
8
|
+
label:
|
9
|
+
es: "Pronombres"
|
10
|
+
en: "Pronouns"
|
11
|
+
placeholder:
|
12
|
+
es: "¿Qué pronombres usás?"
|
13
|
+
en: "What are your pronouns?"
|
14
|
+
name:
|
15
|
+
type: "string"
|
16
|
+
autocomplete: "name"
|
17
|
+
label:
|
18
|
+
es: "Nombre"
|
19
|
+
en: "Name"
|
20
|
+
placeholder:
|
21
|
+
es: "Nombre elegido, pseudónimo, alias"
|
22
|
+
en: "Choosen name, pseudonym, alias"
|
23
|
+
from:
|
24
|
+
type: "email"
|
25
|
+
autocomplete: "email"
|
26
|
+
label:
|
27
|
+
es: "Correo electrónico"
|
28
|
+
en: "E-mail address"
|
29
|
+
contact:
|
30
|
+
type: "string"
|
31
|
+
autocomplete: "street-address"
|
32
|
+
label:
|
33
|
+
es: "Dirección de envío / Otra forma de contacto"
|
34
|
+
en: "Shipping address / Other contact info"
|
35
|
+
body:
|
36
|
+
type: text
|
37
|
+
label:
|
38
|
+
es: Mensaje
|
39
|
+
en: Message
|
40
|
+
consent:
|
41
|
+
type: boolean
|
42
|
+
label:
|
43
|
+
es: Acepto las políticas de privacidad
|
44
|
+
en: I agree to the privacy policy
|
45
|
+
submit:
|
46
|
+
type: submit
|
47
|
+
label:
|
48
|
+
es: Enviar
|
49
|
+
en: Send
|
@@ -0,0 +1,45 @@
|
|
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
|
+
contact:
|
27
|
+
type: "street-address"
|
28
|
+
label:
|
29
|
+
es: "Dirección de envío / Otra forma de contacto"
|
30
|
+
en: "Shipping address / Other contact info"
|
31
|
+
body:
|
32
|
+
type: text
|
33
|
+
label:
|
34
|
+
es: Mensaje
|
35
|
+
en: Message
|
36
|
+
consent:
|
37
|
+
type: boolean
|
38
|
+
label:
|
39
|
+
es: Acepto las políticas de privacidad
|
40
|
+
en: I agree to the privacy policy
|
41
|
+
submit:
|
42
|
+
type: submit
|
43
|
+
label:
|
44
|
+
es: Enviar
|
45
|
+
en: Send
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/boolean.html
|
data/_includes/contact.html
CHANGED
@@ -1,34 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
placeholder="{{ field.placeholder }}" />
|
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 %}
|
18
17
|
</div>
|
19
18
|
{%- endfor -%}
|
20
19
|
|
21
|
-
<
|
22
|
-
<label for="body">{{ site.i18n.contact.form.body }}</label>
|
23
|
-
<textarea name="body" id="body" required class="form-control"></textarea>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<input type="submit" class="btn btn-success" value="{{ site.i18n.contact.form.submit }}" />
|
27
|
-
|
28
|
-
<div class="form-check form-check-inline">
|
29
|
-
<input type="checkbox" name="gdpr" id="gdpr" value="1" required class="form-check-input" />
|
30
|
-
<label class="form-check-label" for="gdpr">
|
31
|
-
{{ site.i18n.contact.form.gdpr }}
|
32
|
-
</label>
|
33
|
-
</div>
|
20
|
+
<input type="hidden" name="redirect" value="{{ site.url }}{{ include.url }}" />
|
34
21
|
</form>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<<<<<<< HEAD
|
2
|
+
<form method="post" action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact">
|
3
|
+
<input
|
4
|
+
type="hidden"
|
5
|
+
name="redirect"
|
6
|
+
value="{{ site.url }}/{{ include.url }}?{{ site.i18n.contact.thanks }}" />
|
7
|
+
|
8
|
+
{%- for field in site.i18n.contact.form.fields -%}
|
9
|
+
<div class="form-group">
|
10
|
+
<label for="pronouns">{{ field.label }}</label>
|
11
|
+
<input
|
12
|
+
type="{{ field.type }}"
|
13
|
+
id="{{ field.name }}"
|
14
|
+
name="{{ field.name }}"
|
15
|
+
value=""
|
16
|
+
class="form-control"
|
17
|
+
autocomplete="{{ field.autocomplete }}"
|
18
|
+
placeholder="{{ field.placeholder }}" />
|
19
|
+
</div>
|
20
|
+
{%- endfor -%}
|
21
|
+
|
22
|
+
<div class="form-group">
|
23
|
+
<label for="body">{{ site.i18n.contact.form.body }}</label>
|
24
|
+
<textarea name="body" id="body" required class="form-control"></textarea>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<input type="submit" class="btn btn-success" value="{{ site.i18n.contact.form.submit }}" />
|
28
|
+
|
29
|
+
<div class="form-check form-check-inline">
|
30
|
+
<input type="checkbox" name="gdpr" id="gdpr" value="1" required class="form-check-input" />
|
31
|
+
<label class="form-check-label" for="gdpr">
|
32
|
+
{{ site.i18n.contact.form.gdpr }}
|
33
|
+
</label>
|
34
|
+
</div>
|
35
|
+
=======
|
36
|
+
{% comment %}
|
37
|
+
Esta imagen obtiene una cookie desde la API de Sutty para autorizar el
|
38
|
+
envío del formulario.
|
39
|
+
{% endcomment %}
|
40
|
+
<img class="d-none" src="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/cookie.png" />
|
41
|
+
|
42
|
+
{% comment %}
|
43
|
+
El formulario se envía a la API. La definición del formulario se
|
44
|
+
encuentra en _data/forms/contacto.yml
|
45
|
+
{% endcomment %}
|
46
|
+
<form action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/contacto"
|
47
|
+
method="post">
|
48
|
+
{%- for field in include.form -%}
|
49
|
+
{% assign template = field[1].type | append: '.html' %}
|
50
|
+
<div class="col{{ field[1].col | default: 12 | prepend: '-' }}">
|
51
|
+
{% include {{ template }} field=field %}
|
52
|
+
</div>
|
53
|
+
{%- endfor -%}
|
54
|
+
>>>>>>> 5a59db7503af04fa49254c23ebacc03f2ee99de3
|
55
|
+
</form>
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/email.html
|
@@ -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 @@
|
|
1
|
+
{% include input.html field=field %}
|
@@ -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>
|
@@ -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] }}" />
|
@@ -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>
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include input.html field=field %}
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/hidden.html
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/input.html
|
data/_includes/navbar.html
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
{% assign editorial = site.posts | where: 'layout', 'editorial' | first %}
|
2
|
+
|
3
|
+
<nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}">
|
4
|
+
<a class="navbar-brand" href="">
|
5
|
+
<<<<<<< HEAD
|
6
|
+
{{ site.title }}
|
7
|
+
=======
|
8
|
+
{% include_cached logo.html %}
|
9
|
+
>>>>>>> ab27eaaed5357d624edd12ea22bc4e88401b5a1d
|
10
|
+
</a>
|
11
|
+
|
12
|
+
{% comment %}
|
13
|
+
TODO: Add CSS-only hamburger menu.
|
14
|
+
{% endcomment %}
|
15
|
+
<ul class="navbar-nav d-print-none">
|
16
|
+
{%- for item in site.i18n.menu.items -%}
|
17
|
+
{% comment %}
|
18
|
+
This makes it hard to just cache the whole navbar, but we prefer
|
19
|
+
to mark the active item in code rather than with JS.
|
20
|
+
{% endcomment %}
|
21
|
+
|
22
|
+
{% assign url = item.url | liquify %}
|
23
|
+
|
24
|
+
<li class="nav-item">
|
25
|
+
<<<<<<< HEAD
|
26
|
+
<a class="nav-link{% if page.url == url %} active{% endif %}" href="{{ url }}">
|
27
|
+
{{ item.text }}
|
28
|
+
|
29
|
+
{%- if page.url == url -%}
|
30
|
+
=======
|
31
|
+
<a class="nav-link{% if page.url == item.href %} active{% endif %}" href="{{ item.href }}">
|
32
|
+
{{ item.title }}
|
33
|
+
|
34
|
+
{%- if page.url == item.href -%}
|
35
|
+
>>>>>>> ab27eaaed5357d624edd12ea22bc4e88401b5a1d
|
36
|
+
<span class="sr-only">
|
37
|
+
{{ site.i18n.menu.active | default: '(current)' }}
|
38
|
+
</span>
|
39
|
+
{%- endif -%}
|
40
|
+
</a>
|
41
|
+
</li>
|
42
|
+
{%- endfor -%}
|
43
|
+
</ul>
|
44
|
+
</nav>
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/number.html
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/predefined_array.html
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/section.html
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/separator.html
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/string.html
|
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/submit.html
|
data/_includes/text.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/text.html
|
data/_includes/url.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
_includes/form/url.html
|
data/_layouts/book.html
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: editorial-autogestiva-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05
|
11
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -175,14 +175,44 @@ extra_rdoc_files:
|
|
175
175
|
files:
|
176
176
|
- LICENSE.txt
|
177
177
|
- README.md
|
178
|
+
- README.md.orig
|
179
|
+
- _data/en.yml
|
178
180
|
- _data/es.yml
|
181
|
+
- _data/forms/contacto.yml
|
182
|
+
- _data/forms/contacto.yml~
|
179
183
|
- _data/layouts/book.yml
|
180
184
|
- _data/layouts/editorial.yml
|
181
185
|
- _data/layouts/post.yml
|
186
|
+
- _includes/boolean.html
|
182
187
|
- _includes/contact.html
|
188
|
+
- _includes/contact.html.orig
|
183
189
|
- _includes/editorial.html
|
190
|
+
- _includes/email.html
|
184
191
|
- _includes/footer.html
|
192
|
+
- _includes/form/boolean.html
|
193
|
+
- _includes/form/email.html
|
194
|
+
- _includes/form/hidden.html
|
195
|
+
- _includes/form/input.html
|
196
|
+
- _includes/form/number.html
|
197
|
+
- _includes/form/predefined_array.html
|
198
|
+
- _includes/form/section.html
|
199
|
+
- _includes/form/separator.html
|
200
|
+
- _includes/form/string.html
|
201
|
+
- _includes/form/submit.html
|
202
|
+
- _includes/form/text.html
|
203
|
+
- _includes/form/url.html
|
204
|
+
- _includes/hidden.html
|
205
|
+
- _includes/input.html
|
185
206
|
- _includes/navbar.html
|
207
|
+
- _includes/navbar.html.orig
|
208
|
+
- _includes/number.html
|
209
|
+
- _includes/predefined_array.html
|
210
|
+
- _includes/section.html
|
211
|
+
- _includes/separator.html
|
212
|
+
- _includes/string.html
|
213
|
+
- _includes/submit.html
|
214
|
+
- _includes/text.html
|
215
|
+
- _includes/url.html
|
186
216
|
- _layouts/book.html
|
187
217
|
- _layouts/default.html
|
188
218
|
- _layouts/editorial.html
|