adhesiones-jekyll-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +168 -0
- data/README.md +113 -0
- data/_config.yml +45 -0
- data/_data/en.yml +50 -0
- data/_data/es.yml +50 -0
- data/_data/layouts/adhesion.yml +70 -0
- data/_data/layouts/post.yml +123 -0
- data/_includes/boolean.html +30 -0
- data/_includes/contact.html +19 -0
- data/_includes/content.html +1 -0
- data/_includes/email.html +1 -0
- data/_includes/file.html +33 -0
- data/_includes/form/boolean.html +1 -0
- data/_includes/form/content.html +1 -0
- data/_includes/form/email.html +1 -0
- data/_includes/form/file.html +1 -0
- data/_includes/form/hidden.html +1 -0
- data/_includes/form/input.html +1 -0
- data/_includes/form/markdown_content.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/markdown_content.html +1 -0
- data/_includes/navbar.html +29 -0
- 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/share.html +12 -0
- data/_includes/share_box.html +16 -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 +26 -0
- data/_layouts/home.html +182 -0
- data/_layouts/post.html +69 -0
- data/_sass/accessibility.scss +13 -0
- data/_sass/font.scss +17 -0
- data/_sass/helpers.scss +54 -0
- data/_sass/share.html +12 -0
- data/_sass/share_box.html +16 -0
- data/_sass/share_box.scss +26 -0
- data/_sass/toggler.scss +39 -0
- data/assets/css/styles.scss +83 -0
- data/assets/fonts/forkawesome-webfont.woff2 +0 -0
- data/assets/fonts/saira/v3/Saira-subset.zopfli.woff +0 -0
- data/assets/fonts/saira/v3/Saira.ttf +0 -0
- data/assets/fonts/saira/v3/SairaBold-subset.zopfli.woff +0 -0
- data/assets/fonts/saira/v3/SairaBold.ttf +0 -0
- data/assets/fonts/saira/v3/SairaMedium-subset.zopfli.woff +0 -0
- data/assets/fonts/saira/v3/SairaMedium.ttf +0 -0
- data/assets/js/script.js +39 -0
- metadata +261 -0
@@ -0,0 +1,123 @@
|
|
1
|
+
---
|
2
|
+
title:
|
3
|
+
type: 'string'
|
4
|
+
required: true
|
5
|
+
label:
|
6
|
+
es: 'Título del artículo'
|
7
|
+
en: 'Post title'
|
8
|
+
help:
|
9
|
+
es: '¡Un título que invite a leer el artículo!'
|
10
|
+
en: 'A title that invites people to read the post!'
|
11
|
+
description:
|
12
|
+
type: 'text'
|
13
|
+
required: true
|
14
|
+
label:
|
15
|
+
es: 'Alerta de contenido o descripción del artículo'
|
16
|
+
en: 'Content warning or post description'
|
17
|
+
help:
|
18
|
+
es: |
|
19
|
+
Resumen del contenido del artículo, que también usarán redes
|
20
|
+
sociales y buscadores. Si el artículo trata de violencias y otros
|
21
|
+
temas sensibles, te invitamos a usar este campo como alerta de
|
22
|
+
contenido, para que las personas puedan determinar cuándo quieren
|
23
|
+
abrirlo.
|
24
|
+
en: |
|
25
|
+
Summary of the post contents, also used by social media and search
|
26
|
+
engines. If the post is about violence and other sensitive
|
27
|
+
topics, we invite you to use it as a content warning, so others
|
28
|
+
can decide when they want to read it.
|
29
|
+
author:
|
30
|
+
type: 'array'
|
31
|
+
label:
|
32
|
+
es: 'Autores'
|
33
|
+
en: 'Authors'
|
34
|
+
help:
|
35
|
+
es: 'Quiénes participaron en la escritura de este artículo'
|
36
|
+
en: 'Who collaborated in write this post'
|
37
|
+
cita:
|
38
|
+
type: 'text'
|
39
|
+
label:
|
40
|
+
es: 'Cita de autoridad o llamada a la acción'
|
41
|
+
en: 'Quote or call to action'
|
42
|
+
cita_autore:
|
43
|
+
type: 'string'
|
44
|
+
label:
|
45
|
+
es: 'Autore de la cita'
|
46
|
+
en: 'Quote author'
|
47
|
+
image:
|
48
|
+
type: 'image'
|
49
|
+
path:
|
50
|
+
label:
|
51
|
+
es: 'Imagen principal'
|
52
|
+
en: 'Main image'
|
53
|
+
help:
|
54
|
+
es: |
|
55
|
+
Se utiliza para ilustrar el artículo y como previsualización en
|
56
|
+
las redes sociales.
|
57
|
+
en: |
|
58
|
+
It's used to illustrate the article and as preview in social
|
59
|
+
networks.
|
60
|
+
description:
|
61
|
+
label:
|
62
|
+
es: 'Descripción de la imagen principal'
|
63
|
+
en: 'Main image description'
|
64
|
+
help:
|
65
|
+
es: |
|
66
|
+
Describe la imagen principal para usuaries no videntes y
|
67
|
+
buscadores
|
68
|
+
en: |
|
69
|
+
Describe the main image for blind or partially sighted users and
|
70
|
+
search engines
|
71
|
+
content:
|
72
|
+
type: 'content'
|
73
|
+
label:
|
74
|
+
es: 'Contenido del artículo'
|
75
|
+
en: 'Post content'
|
76
|
+
help:
|
77
|
+
es: 'Escribe aquí el artículo'
|
78
|
+
en: 'Write down your post'
|
79
|
+
permalink:
|
80
|
+
type: 'string'
|
81
|
+
label:
|
82
|
+
es: 'Enlace'
|
83
|
+
en: 'Permalink'
|
84
|
+
help:
|
85
|
+
es: |
|
86
|
+
Si no quieres utilizar el formato de enlaces general del sitio
|
87
|
+
para este artículo, especifica uno aquí.
|
88
|
+
en: |
|
89
|
+
If you don't want to follow the site's link format for this
|
90
|
+
post, change it here.
|
91
|
+
categories:
|
92
|
+
type: 'array'
|
93
|
+
label:
|
94
|
+
es: 'Categorías'
|
95
|
+
en: 'Categories'
|
96
|
+
help:
|
97
|
+
es: 'Ayudan a organizar los artículos en temas'
|
98
|
+
en: 'Use categories to organize posts by themes'
|
99
|
+
tags:
|
100
|
+
type: 'array'
|
101
|
+
label:
|
102
|
+
es: 'Etiquetas'
|
103
|
+
en: 'Tags'
|
104
|
+
help:
|
105
|
+
es: 'Usa etiquetas para resaltar palabras clave'
|
106
|
+
en: 'Tags are helpful as keywords'
|
107
|
+
draft:
|
108
|
+
type: 'boolean'
|
109
|
+
label:
|
110
|
+
es: 'Borrador'
|
111
|
+
en: 'Draft'
|
112
|
+
help:
|
113
|
+
es: 'Este artículo aun no está listo para publicar'
|
114
|
+
en: "This post isn't ready to be published yet"
|
115
|
+
order:
|
116
|
+
type: 'order'
|
117
|
+
label:
|
118
|
+
es: 'Orden'
|
119
|
+
en: 'Order'
|
120
|
+
help:
|
121
|
+
es: 'La posición del artículo en la lista de artículos'
|
122
|
+
en: 'The post position in the posts list'
|
123
|
+
---
|
@@ -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 text.html field=field %}
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include input.html field=field %}
|
data/_includes/file.html
ADDED
@@ -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]['path'].label[site.locale] -%}
|
4
|
+
{%- assign help = include.field[1]['path'].help[site.locale] -%}
|
5
|
+
{%- assign autocomplete = include.field[1].autocomplete -%}
|
6
|
+
|
7
|
+
<div class="custom-file">
|
8
|
+
<input
|
9
|
+
{% if help %}
|
10
|
+
aria-describedby="help-{{ id }}"
|
11
|
+
{% endif %}
|
12
|
+
{% if include.field[1].required %}
|
13
|
+
required
|
14
|
+
{% endif %}
|
15
|
+
type="{{ include.field[1].type }}"
|
16
|
+
name="{{ name }}[path]"
|
17
|
+
id="{{ id }}_path"
|
18
|
+
{% if autocomplete %}
|
19
|
+
autocomplete="{{ autocomplete }}"
|
20
|
+
{% endif %}
|
21
|
+
class="custom-file-input" />
|
22
|
+
|
23
|
+
<label for="{{ id }}_path" class="custom-file-label">
|
24
|
+
{{ label }}
|
25
|
+
{% if include.field[1].required %}*{% endif %}
|
26
|
+
</label>
|
27
|
+
|
28
|
+
{%- if help -%}
|
29
|
+
<small id="help-{{ id }}" class="form-text">
|
30
|
+
{{ help }}
|
31
|
+
</small>
|
32
|
+
{%- endif -%}
|
33
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
../boolean.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../content.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../email.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../file.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../hidden.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../input.html
|
@@ -0,0 +1 @@
|
|
1
|
+
../markdown_content.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>
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include text.html field=field %}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}">
|
2
|
+
<a class="navbar-brand" href="">
|
3
|
+
{% include_cached logo.html %}
|
4
|
+
</a>
|
5
|
+
|
6
|
+
{% comment %}
|
7
|
+
TODO: Add CSS-only hamburger menu.
|
8
|
+
{% endcomment %}
|
9
|
+
<ul class="navbar-nav d-print-none">
|
10
|
+
{%- for item in site.i18n.menu.items -%}
|
11
|
+
{% comment %}
|
12
|
+
This makes it hard to just cache the whole navbar, but we prefer
|
13
|
+
to mark the active item in code rather than with JS.
|
14
|
+
{% endcomment %}
|
15
|
+
|
16
|
+
<li class="nav-item">
|
17
|
+
<a class="nav-link{% if page.url == item.href %} active{% endif %}" href="{{ item.href }}">
|
18
|
+
{{ item.title }}
|
19
|
+
|
20
|
+
{%- if page.url == item.href -%}
|
21
|
+
<span class="sr-only">
|
22
|
+
{{ site.i18n.menu.active | default: '(current)' }}
|
23
|
+
</span>
|
24
|
+
{%- endif -%}
|
25
|
+
</a>
|
26
|
+
</li>
|
27
|
+
{%- endfor -%}
|
28
|
+
</ul>
|
29
|
+
</nav>
|
@@ -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,12 @@
|
|
1
|
+
{% assign url = site.url | append: include.url | uri_escape %}
|
2
|
+
{% assign title = include.title | default: site.title | uri_escape %}
|
3
|
+
{% assign description = include.description | default: '' | uri_escape %}
|
4
|
+
|
5
|
+
<a
|
6
|
+
target="_blank"
|
7
|
+
title="{{ include.share.title }}"
|
8
|
+
class="d-flex flex-column align-items-center p-3"
|
9
|
+
href="{{ include.share.url | replace: '%url', url | replace: '%title', title | replace: '%description', description }}">
|
10
|
+
<i class="fa fa-fw fa-2x fa-{{ include.share.icon }}"></i>
|
11
|
+
<span>{{ include.share.title }}</span>
|
12
|
+
</a>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<input type="checkbox" id="share" class="toggler" autocomplete="off" />
|
2
|
+
|
3
|
+
<label class="share btn border btn-block" for="share">
|
4
|
+
{{ site.i18n.share.text }}
|
5
|
+
<i class="fa fa-{{ site.i18n.share.icon }}"></i>
|
6
|
+
|
7
|
+
<div class="share-box toggled d-flex align-items-center justify-content-center">
|
8
|
+
<div class="box background-white color-redpink row no-gutters align-items-center justify-content-center p-3">
|
9
|
+
{% for share in site.i18n.share.items %}
|
10
|
+
<div class="col-4">
|
11
|
+
{% include_cached share.html share=share url=include.url title=include.title description=include.description %}
|
12
|
+
</div>
|
13
|
+
{% endfor %}
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</label>
|
@@ -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>
|