recursero-jekyll-theme 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,45 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% assign date_format = site.i18n.date.format | default: "%b %-d, %Y" %}
6
+
7
+ <article class="h-entry" itemscope itemtype="http://schema.org/Article">
8
+ <header>
9
+ <h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
10
+
11
+ {%- if page.description -%}
12
+ <p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
13
+ {%- endif -%}
14
+
15
+ <p>
16
+ {{ site.i18n.published_at }}
17
+
18
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
19
+ {{ page.date | date_local: date_format }}
20
+ </time>
21
+
22
+ {% if page.last_modified_at %}
23
+ {{ site.i18n.last_modified_at }}
24
+
25
+ <time class="dt-published" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">
26
+ {{ page.last_modified_at | date_local: date_format }}
27
+ </time>
28
+ {% endif %}
29
+ </p>
30
+ </header>
31
+
32
+ <div class="e-content" itemprop="articleBody">
33
+ {{ content }}
34
+ </div>
35
+
36
+ <footer>
37
+ <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
38
+ {{ site.url }}{{ page.url }}
39
+ </a>
40
+
41
+ {%- if page.uuid -%}
42
+ <span hidden itemprop="identifier">{{ page.uuid }}</span>
43
+ {%- endif -%}
44
+ </footer>
45
+ </article>
@@ -2,42 +2,13 @@
2
2
  # Ponemos un frontmatter porque queremos que Jekyll procese este archivo
3
3
  ---
4
4
 
5
- ////
6
- /// @group Principal
7
- ////
5
+ {%- assign theme = site.posts | find: "layout", "theme" -%}
8
6
 
9
- /// Traemos el primer artículo de tipo `about` para obtener los valores
10
- /// personalizados.
11
- ///
12
- /// @todo Mover a su propio SCSS
13
- {% assign about = site.posts | find: 'layout', 'about' %}
14
-
15
- /// El modo debug se desactiva en producción
16
- $debug: {{ jekyll.environment | not: 'production' }};
17
- /// Los prefijos de navegadores para poder generar estilos que no están
18
- /// estandarizados.
19
- /// @link _sass/helpers.scss
20
- $vendor-prefixes: ("", "-webkit-", "-ms-", "-o-", "-moz-");
21
- /// Curva Bezier que acelera al principio y desacelera hacia el final,
22
- /// para generar animaciones.
23
- $bezier: cubic-bezier(0.75, 0, 0.25, 1);
24
-
25
- /// Redefinir la tipografía aquí, o borrar si usamos las de Bootstrap
26
- $font-family-sans-serif: sans-serif;
27
- /// El color primario de la paleta, se trae desde el `about` o sea usa
28
- /// el color por defecto.
29
- ///
30
- /// @link _data/layouts/about.yml
31
- $primary: {{ about.primary | default: site.data.layouts.about.primary.default[site.locale] }};
32
-
33
- /// El color secundario de la paleta, se trae desde el `about` o sea usa
34
- /// el color por defecto.
35
- ///
36
- /// @link _data/layouts/about.yml
37
- $secondary: {{ about.secondary | default: site.data.layouts.about.secondary.default[site.locale] }};
7
+ {% if theme %}
8
+ {{ theme | yaml_to_scss: site.data.layouts.theme }}
9
+ {% endif %}
38
10
 
39
11
  $navbar-height: 86px;
40
- $enable-rounded: false;
41
12
 
42
13
  /// Agregamos los colores propios de la plantilla aquí. Bootstrap los
43
14
  /// agrega a su propia paleta de colores. Si usamos el mismo nombre