sutty-jekyll-theme 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/en.yml +58 -0
- data/_data/es.yml +58 -0
- data/_data/layouts/about.yml +155 -0
- data/_data/layouts/code_of_conduct.yml +60 -0
- data/_data/layouts/license.yml +60 -0
- data/_data/layouts/page.yml +52 -60
- data/_data/layouts/post.yml +49 -65
- data/_data/layouts/theme.yml +295 -0
- data/_includes/navbar.html +8 -2
- data/_layouts/code_of_conduct.html +56 -0
- data/_layouts/default.html +15 -2
- data/_layouts/home.html +3 -1
- data/_layouts/license.html +56 -0
- data/_layouts/page.html +11 -12
- data/_layouts/post.html +11 -9
- data/_sass/variables.scss +0 -9
- data/assets/css/styles.scss +7 -11
- metadata +26 -4
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 makes people want 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
|
@@ -22,87 +22,71 @@ description:
|
|
22
22
|
contenido, para que las personas puedan determinar cuándo quieren
|
23
23
|
abrirlo.
|
24
24
|
en: |
|
25
|
-
Summary of
|
26
|
-
engines.
|
25
|
+
Summary of post content, also used by social media and search
|
26
|
+
engines. If the post is about violence and 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 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
|
-
categories:
|
70
|
-
type: 'array'
|
71
|
-
label:
|
72
|
-
es: 'Categorías'
|
73
|
-
en: 'Categories'
|
74
|
-
help:
|
75
|
-
es: 'Ayudan a organizar los artículos en temas'
|
76
|
-
en: 'Use categories to organize posts by themes'
|
59
|
+
es: "Escribe aquí el artículo"
|
60
|
+
en: "Write your post here"
|
77
61
|
tags:
|
78
|
-
type:
|
62
|
+
type: "array"
|
79
63
|
label:
|
80
|
-
es:
|
81
|
-
en:
|
64
|
+
es: "Etiquetas"
|
65
|
+
en: "Tags"
|
82
66
|
help:
|
83
|
-
es:
|
84
|
-
en:
|
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."
|
85
69
|
locales:
|
86
|
-
type:
|
70
|
+
type: "locales"
|
87
71
|
label:
|
88
|
-
es:
|
89
|
-
en:
|
72
|
+
es: "Traducciones"
|
73
|
+
en: "Translations"
|
90
74
|
help:
|
91
|
-
es:
|
92
|
-
en:
|
75
|
+
es: "Vínculo al mismo artículo en otros idiomas"
|
76
|
+
en: "Link to same post in other languages"
|
93
77
|
draft:
|
94
|
-
type:
|
78
|
+
type: "boolean"
|
95
79
|
label:
|
96
|
-
es:
|
97
|
-
en:
|
80
|
+
es: "Borrador"
|
81
|
+
en: "Draft"
|
98
82
|
help:
|
99
|
-
es:
|
100
|
-
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)."
|
101
85
|
order:
|
102
|
-
type:
|
86
|
+
type: "order"
|
103
87
|
label:
|
104
|
-
es:
|
105
|
-
en:
|
88
|
+
es: "Orden"
|
89
|
+
en: "Order"
|
106
90
|
help:
|
107
|
-
es:
|
108
|
-
en:
|
91
|
+
es: "La posición del artículo en la lista de artículos"
|
92
|
+
en: "Position in list of posts"
|
@@ -0,0 +1,295 @@
|
|
1
|
+
---
|
2
|
+
title:
|
3
|
+
type: "string"
|
4
|
+
required: true
|
5
|
+
label:
|
6
|
+
en: "Title"
|
7
|
+
es: "Título"
|
8
|
+
help:
|
9
|
+
en: "The name you want to give to this customization"
|
10
|
+
es: "El nombre que quieras darle a esta personalización"
|
11
|
+
font_family_sans_serif:
|
12
|
+
type: "predefined_value"
|
13
|
+
label:
|
14
|
+
en: "Select a typography for the site"
|
15
|
+
es: "Selecciona una tipografía para el sitio"
|
16
|
+
help:
|
17
|
+
en: "If you'd like us to add support for a typography, please send us an e-mail"
|
18
|
+
es: "Si quieres que agreguemos una tipografía, por favor envíanos un e-mail"
|
19
|
+
default:
|
20
|
+
en: ""
|
21
|
+
es: ""
|
22
|
+
values:
|
23
|
+
en:
|
24
|
+
"": "Default"
|
25
|
+
Roboto: "Roboto"
|
26
|
+
Saira: "Saira"
|
27
|
+
es:
|
28
|
+
"": "Default"
|
29
|
+
Roboto: "Roboto"
|
30
|
+
Saira: "Saira"
|
31
|
+
font_family_monospace:
|
32
|
+
type: "predefined_value"
|
33
|
+
label:
|
34
|
+
en: "Select a monospace typography for the site"
|
35
|
+
es: "Selecciona una tipografía monospace para el sitio"
|
36
|
+
help:
|
37
|
+
en: ""
|
38
|
+
es: ""
|
39
|
+
default:
|
40
|
+
en: ""
|
41
|
+
es: ""
|
42
|
+
values:
|
43
|
+
en:
|
44
|
+
"": "Default"
|
45
|
+
Roboto Mono: "Roboto Mono"
|
46
|
+
Liberation Mono: "Liberation Mono"
|
47
|
+
es:
|
48
|
+
"": "Default"
|
49
|
+
Roboto Mono: "Roboto Mono"
|
50
|
+
Liberation Mono: "Liberation Mono"
|
51
|
+
headings_font_family:
|
52
|
+
type: "predefined_value"
|
53
|
+
label:
|
54
|
+
en: "Select a typography for headings"
|
55
|
+
es: "Selecciona una tipografía para los títulos del sitio"
|
56
|
+
help:
|
57
|
+
en: "If you'd us to add support for a typography, please send us an e-mail"
|
58
|
+
es: "Si quieres que agreguemos una tipografía, por favor envíanos un e-mail"
|
59
|
+
default:
|
60
|
+
en: ""
|
61
|
+
es: ""
|
62
|
+
values:
|
63
|
+
en:
|
64
|
+
"": "Default"
|
65
|
+
Roboto: "Roboto"
|
66
|
+
Saira: "Saira"
|
67
|
+
es:
|
68
|
+
"": "Default"
|
69
|
+
Roboto: "Roboto"
|
70
|
+
Saira: "Saira"
|
71
|
+
enable_rounded:
|
72
|
+
type: "boolean"
|
73
|
+
label:
|
74
|
+
en: "Rounded corners"
|
75
|
+
es: "Esquinas redondeadas"
|
76
|
+
help:
|
77
|
+
en: "For buttons, form inputs, etc."
|
78
|
+
es: "De los botones, campos de formularios, etc."
|
79
|
+
default:
|
80
|
+
es: false
|
81
|
+
en: false
|
82
|
+
enable_shadows:
|
83
|
+
type: "boolean"
|
84
|
+
label:
|
85
|
+
en: "Shadows"
|
86
|
+
es: "Sombras"
|
87
|
+
help:
|
88
|
+
en: "Shadows behind elements"
|
89
|
+
es: "Sombras en los elementos"
|
90
|
+
default:
|
91
|
+
es: false
|
92
|
+
en: false
|
93
|
+
body_bg:
|
94
|
+
type: "color"
|
95
|
+
label:
|
96
|
+
en: "Background color"
|
97
|
+
es: "Color de fondo"
|
98
|
+
help:
|
99
|
+
en: "Site's background color"
|
100
|
+
es: "Color de fondo del sitio"
|
101
|
+
default:
|
102
|
+
es: "#FFFFFF"
|
103
|
+
en: "#FFFFFF"
|
104
|
+
body_color:
|
105
|
+
type: "color"
|
106
|
+
label:
|
107
|
+
en: "Text color"
|
108
|
+
es: "Color del texto"
|
109
|
+
help:
|
110
|
+
en: ""
|
111
|
+
es: ""
|
112
|
+
default:
|
113
|
+
es: "#212529"
|
114
|
+
en: "#212529"
|
115
|
+
primary:
|
116
|
+
type: "color"
|
117
|
+
label:
|
118
|
+
en: "Primary color"
|
119
|
+
es: "Color principal"
|
120
|
+
help:
|
121
|
+
en: "Highlights certain elements"
|
122
|
+
es: "Resalta algunos elementos"
|
123
|
+
default:
|
124
|
+
es: "#f206f9"
|
125
|
+
en: "#f206f9"
|
126
|
+
secondary:
|
127
|
+
type: "color"
|
128
|
+
label:
|
129
|
+
en: "Secondary color"
|
130
|
+
es: "Color secundario"
|
131
|
+
help:
|
132
|
+
en: "Highlights certain elements"
|
133
|
+
es: "Resalta algunos elementos"
|
134
|
+
default:
|
135
|
+
es: "#13fefe"
|
136
|
+
en: "#13fefe"
|
137
|
+
link_color:
|
138
|
+
type: "color"
|
139
|
+
label:
|
140
|
+
en: "Link color"
|
141
|
+
es: "Color de los vínculos"
|
142
|
+
help:
|
143
|
+
en: ""
|
144
|
+
es: ""
|
145
|
+
default:
|
146
|
+
es: "#007bff"
|
147
|
+
en: "#007bff"
|
148
|
+
link_hover_color:
|
149
|
+
type: "color"
|
150
|
+
label:
|
151
|
+
en: "Link color when selected"
|
152
|
+
es: "Color de los vínculos al seleccionarlos"
|
153
|
+
help:
|
154
|
+
en: ""
|
155
|
+
es: ""
|
156
|
+
default:
|
157
|
+
es: "#0056b3"
|
158
|
+
en: "#0056b3"
|
159
|
+
h1_font_size:
|
160
|
+
type: "string"
|
161
|
+
label:
|
162
|
+
en: "Height for first level headings"
|
163
|
+
es: "Altura de los títulos de primer nivel"
|
164
|
+
help:
|
165
|
+
en: ""
|
166
|
+
es: ""
|
167
|
+
default:
|
168
|
+
es: "2.5rem"
|
169
|
+
en: "2.5rem"
|
170
|
+
h2_font_size:
|
171
|
+
type: "string"
|
172
|
+
label:
|
173
|
+
en: "Height for second level headings"
|
174
|
+
es: "Altura de los títulos de segundo nivel"
|
175
|
+
help:
|
176
|
+
en: ""
|
177
|
+
es: ""
|
178
|
+
default:
|
179
|
+
es: "2rem"
|
180
|
+
en: "2rem"
|
181
|
+
h3_font_size:
|
182
|
+
type: "string"
|
183
|
+
label:
|
184
|
+
en: "Height for third level headings"
|
185
|
+
es: "Altura de los títulos de tercer nivel"
|
186
|
+
help:
|
187
|
+
en: ""
|
188
|
+
es: ""
|
189
|
+
default:
|
190
|
+
es: "1.75rem"
|
191
|
+
en: "1.75rem"
|
192
|
+
h4_font_size:
|
193
|
+
type: "string"
|
194
|
+
label:
|
195
|
+
en: "Height for fourth level headings"
|
196
|
+
es: "Altura de los títulos de cuarto nivel"
|
197
|
+
help:
|
198
|
+
en: ""
|
199
|
+
es: ""
|
200
|
+
default:
|
201
|
+
es: "1.5rem"
|
202
|
+
en: "1.5rem"
|
203
|
+
h5_font_size:
|
204
|
+
type: "string"
|
205
|
+
label:
|
206
|
+
en: "Height for fifth level headings"
|
207
|
+
es: "Altura de los títulos de quinto nivel"
|
208
|
+
help:
|
209
|
+
en: ""
|
210
|
+
es: ""
|
211
|
+
default:
|
212
|
+
es: "1.25rem"
|
213
|
+
en: "1.25rem"
|
214
|
+
h6_font_size:
|
215
|
+
type: "string"
|
216
|
+
label:
|
217
|
+
en: "Height for sixth level headings"
|
218
|
+
es: "Altura de los títulos de sexto nivel"
|
219
|
+
help:
|
220
|
+
en: ""
|
221
|
+
es: ""
|
222
|
+
default:
|
223
|
+
es: "1rem"
|
224
|
+
en: "1rem"
|
225
|
+
mark_bg:
|
226
|
+
type: "color"
|
227
|
+
label:
|
228
|
+
en: "Highlight color"
|
229
|
+
es: "Color de resaltado"
|
230
|
+
help:
|
231
|
+
en: "Default color for highlighted text"
|
232
|
+
es: "Color por defecto para el texto resaltado"
|
233
|
+
default:
|
234
|
+
es: "#fcf8e3"
|
235
|
+
en: "#fcf8e3"
|
236
|
+
navbar_light_color:
|
237
|
+
type: "color"
|
238
|
+
label:
|
239
|
+
en: "Navigation bar item color"
|
240
|
+
es: "Color de ítem en la barra de navegación"
|
241
|
+
help:
|
242
|
+
en: "Text and icons"
|
243
|
+
es: "Texto e íconos"
|
244
|
+
default:
|
245
|
+
es: "#ced4da"
|
246
|
+
en: "#ced4da"
|
247
|
+
navbar_light_hover_color:
|
248
|
+
type: "color"
|
249
|
+
label:
|
250
|
+
en: "Navigation bar item color when selected"
|
251
|
+
es: "Color de ítem seleccionado en la barra de navegación"
|
252
|
+
help:
|
253
|
+
en: "Text and icons"
|
254
|
+
es: "Texto e íconos"
|
255
|
+
default:
|
256
|
+
es: "#6c757d"
|
257
|
+
en: "#6c757d"
|
258
|
+
navbar_light_active_color:
|
259
|
+
type: "color"
|
260
|
+
label:
|
261
|
+
en: "Navigation bar item color when active"
|
262
|
+
es: "Color de ítem activo en la barra de navegación"
|
263
|
+
help:
|
264
|
+
en: "Text and icons"
|
265
|
+
es: "Texto e íconos"
|
266
|
+
default:
|
267
|
+
es: "#212529"
|
268
|
+
en: "#212529"
|
269
|
+
testing:
|
270
|
+
type: "boolean"
|
271
|
+
label:
|
272
|
+
en: "Testing"
|
273
|
+
es: "Testeo"
|
274
|
+
help:
|
275
|
+
en: "When activated, shows screen information for testing"
|
276
|
+
es: "Al activar se muestra información de la pantalla para testing"
|
277
|
+
default:
|
278
|
+
es: false
|
279
|
+
en: false
|
280
|
+
draft:
|
281
|
+
type: "boolean"
|
282
|
+
label:
|
283
|
+
es: "Borrador"
|
284
|
+
en: "Draft"
|
285
|
+
help:
|
286
|
+
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\""
|
287
|
+
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)."
|
288
|
+
order:
|
289
|
+
type: "order"
|
290
|
+
label:
|
291
|
+
es: "Orden"
|
292
|
+
en: "Order"
|
293
|
+
help:
|
294
|
+
es: "La posición del artículo en la lista de artículos"
|
295
|
+
en: "Position in list of posts"
|
data/_includes/navbar.html
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
+
{% assign about = site.posts | find: "layout", "about" %}
|
2
|
+
|
1
3
|
<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
|
-
{%
|
4
|
+
<a class="navbar-brand" href="?#">
|
5
|
+
{% if about.logo.path %}
|
6
|
+
<img src="{{ about.logo.path | thumbnail: nil, 30 | uri_escape }}" height="30" alt="{{ about.logo.description | default: about.title }}" />
|
7
|
+
{% else %}
|
8
|
+
{{ about.title }}
|
9
|
+
{% endif %}
|
4
10
|
</a>
|
5
11
|
|
6
12
|
{% comment %}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% assign licence = site.posts | find: "layout", "license" %}
|
6
|
+
{% assign date_format = site.i18n.date.format | default: "%b %-d, %Y" %}
|
7
|
+
|
8
|
+
<article class="h-entry" itemscope itemtype="http://schema.org/Article">
|
9
|
+
<header>
|
10
|
+
<h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
|
11
|
+
|
12
|
+
{%- if page.description -%}
|
13
|
+
<p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
|
14
|
+
{%- endif -%}
|
15
|
+
|
16
|
+
<p>
|
17
|
+
{{ site.i18n.published_at }}
|
18
|
+
|
19
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
20
|
+
{{ page.date | date_local: date_format }}
|
21
|
+
</time>
|
22
|
+
|
23
|
+
{% if page.last_modified_at %}
|
24
|
+
{{ site.i18n.last_modified_at }}
|
25
|
+
|
26
|
+
<time class="dt-published" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">
|
27
|
+
{{ page.last_modified_at | date_local: date_format }}
|
28
|
+
</time>
|
29
|
+
{% endif %}
|
30
|
+
</p>
|
31
|
+
</header>
|
32
|
+
|
33
|
+
<div class="e-content" itemprop="articleBody">
|
34
|
+
{{ content }}
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<footer>
|
38
|
+
<a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
|
39
|
+
{{ site.url }}{{ page.url }}
|
40
|
+
</a>
|
41
|
+
|
42
|
+
{%- if page.uuid -%}
|
43
|
+
<span hidden itemprop="identifier">{{ page.uuid }}</span>
|
44
|
+
{%- endif -%}
|
45
|
+
|
46
|
+
{%- if license -%}
|
47
|
+
<p itemprop="license" itemtype="http://schema.org/CreativeWork">
|
48
|
+
<a rel="license" itemprop="url" href="{{ license.url }}">
|
49
|
+
<span itemprop="articleBody">
|
50
|
+
{{ license.description }}
|
51
|
+
</span>
|
52
|
+
</a>
|
53
|
+
</p>
|
54
|
+
{%- endif -%}
|
55
|
+
</footer>
|
56
|
+
</article>
|
data/_layouts/default.html
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
{%- assign license = site.posts | find: "layout", "license" -%}
|
2
|
+
{%- assign code_of_conduct = site.posts | find: "layout", "code_of_conduct" -%}
|
3
|
+
|
1
4
|
<!DOCTYPE html>
|
2
5
|
<html lang="{{ site.lang }}" dir="{{ site.dir }}">
|
3
6
|
<head>
|
@@ -13,15 +16,25 @@
|
|
13
16
|
{% seo %}
|
14
17
|
{% feed_meta %}
|
15
18
|
</head>
|
16
|
-
<body>
|
19
|
+
<body class="min-vh-100 d-flex flex-column">
|
17
20
|
{% include navbar.html %}
|
18
21
|
|
19
|
-
<main class="container">
|
22
|
+
<main class="container flex-grow-1">
|
20
23
|
<div class="row justify-content-center d-print-block">
|
21
24
|
<div class="col-md-8">
|
22
25
|
{{ content }}
|
23
26
|
</div>
|
24
27
|
</div>
|
25
28
|
</main>
|
29
|
+
|
30
|
+
<footer class="p-3">
|
31
|
+
{% if license %}
|
32
|
+
<a href="{{ license.url }}" rel="license">{{ license.title }}</a>
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
{% if code_of_conduct %}
|
36
|
+
<a href="{{ code_of_conduct.url }}" rel="code-of-conduct">{{ code_of_conduct.title }}</a>
|
37
|
+
{% endif %}
|
38
|
+
</footer>
|
26
39
|
</body>
|
27
40
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
+
{% assign posts = site.posts | where: "layout", "post" %}
|
6
|
+
|
5
7
|
<section class="home">
|
6
8
|
<header>
|
7
9
|
<h1 class="page-heading">{{ site.title }}</h1>
|
@@ -13,7 +15,7 @@ layout: default
|
|
13
15
|
{%- if site.posts.size > 0 -%}
|
14
16
|
<section class="articles">
|
15
17
|
<h2>{{ site.i18n.home.articles | default: "Articles" }}</h2>
|
16
|
-
{%- for post in
|
18
|
+
{%- for post in posts -%}
|
17
19
|
<article>
|
18
20
|
{%- assign date_format = site.i18n.date_format | default: "%b %-d, %Y" -%}
|
19
21
|
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% assign licence = site.posts | find: "layout", "license" %}
|
6
|
+
{% assign date_format = site.i18n.date.format | default: "%b %-d, %Y" %}
|
7
|
+
|
8
|
+
<article class="h-entry" itemscope itemtype="http://schema.org/Article">
|
9
|
+
<header>
|
10
|
+
<h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
|
11
|
+
|
12
|
+
{%- if page.description -%}
|
13
|
+
<p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
|
14
|
+
{%- endif -%}
|
15
|
+
|
16
|
+
<p>
|
17
|
+
{{ site.i18n.published_at }}
|
18
|
+
|
19
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
20
|
+
{{ page.date | date_local: date_format }}
|
21
|
+
</time>
|
22
|
+
|
23
|
+
{% if page.last_modified_at %}
|
24
|
+
{{ site.i18n.last_modified_at }}
|
25
|
+
|
26
|
+
<time class="dt-published" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">
|
27
|
+
{{ page.last_modified_at | date_local: date_format }}
|
28
|
+
</time>
|
29
|
+
{% endif %}
|
30
|
+
</p>
|
31
|
+
</header>
|
32
|
+
|
33
|
+
<div class="e-content" itemprop="articleBody">
|
34
|
+
{{ content }}
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<footer>
|
38
|
+
<a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
|
39
|
+
{{ site.url }}{{ page.url }}
|
40
|
+
</a>
|
41
|
+
|
42
|
+
{%- if page.uuid -%}
|
43
|
+
<span hidden itemprop="identifier">{{ page.uuid }}</span>
|
44
|
+
{%- endif -%}
|
45
|
+
|
46
|
+
{%- if license -%}
|
47
|
+
<p itemprop="license" itemtype="http://schema.org/CreativeWork">
|
48
|
+
<a rel="license" itemprop="url" href="{{ license.url }}">
|
49
|
+
<span itemprop="articleBody">
|
50
|
+
{{ license.description }}
|
51
|
+
</span>
|
52
|
+
</a>
|
53
|
+
</p>
|
54
|
+
{%- endif -%}
|
55
|
+
</footer>
|
56
|
+
</article>
|