sutty-jekyll-theme 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 788bbf3527ae8fc9204494c454b45f84460aee92faf598b2cc2d040158e4032a
4
- data.tar.gz: dc20bcf7b1410f46214ab6acfbf0c063e8f325c2fb3f0661c160b34dbc60e379
3
+ metadata.gz: 828e43c33dcefb0544d38703867c3be1b53f02851d2bec056676630259b1db8d
4
+ data.tar.gz: 21fb0a4effc6c0134cb86299e23b1dfa5bfa5f4abe7bd2d8baeca8ee803ee7dd
5
5
  SHA512:
6
- metadata.gz: c9ea9e08ff971668186b1b245d14b025db7fdccd407cddf8447ee0d038fb51d06e84c561ed1c2337f0b771c10aa21764612e2224e5ec0c372680922f716b43f7
7
- data.tar.gz: 7d8713110ac36bc395d728e9c0b6e0f9e48175c2bd0fa97e52fb88fab08d42627102eb96626d383d138bc1c92db3e9e70dd3b61dd5ace5193064d832e466ec6d
6
+ metadata.gz: 4b766809642fbd315ae16fbb13878753b84b80594d91dde9d52893d7b10487504e0a1a1a963f9629f8b93489b2a41857b0758a66c8b4af33bf183eebabad8693
7
+ data.tar.gz: 58739aef633e60f59c368f1d35a63cdcf79bc37672f5f25c44c8ec8577988ba9a83cbb17a35679f553bf6d59af8c56fb08b82fbb7eeddfa992b88d7e11bfe28c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -274,14 +274,14 @@ navbar_light_active_color:
274
274
  default:
275
275
  es: "#212529"
276
276
  en: "#212529"
277
- testing:
277
+ hide_timestamps:
278
278
  type: "boolean"
279
279
  label:
280
- en: "Testing"
281
- es: "Testeo"
280
+ en: "Hide page and post timestamps"
281
+ es: "Ocultar fechas en páginas y artículos"
282
282
  help:
283
- en: "When activated, shows screen information for testing"
284
- es: "Al activar se muestra información de la pantalla para testing"
283
+ en: ""
284
+ es: ""
285
285
  default:
286
286
  es: false
287
287
  en: false
data/_includes/menu.html CHANGED
@@ -2,12 +2,25 @@
2
2
  Empezamos con los ítems que no dependen de otros e implementamos
3
3
  recursivamente.
4
4
  {%- endcomment -%}
5
+ {% assign about = site.posts | find: 'layout', 'about' %}
5
6
  {%- assign items = site.posts | where: 'layout', 'menu_internal' | where: 'item', nil -%}
6
7
  {%- assign items = site.posts | where: 'layout', 'menu_external' | where: 'item', nil | concat: items -%}
7
8
  {%- assign items = site.posts | where: 'layout', 'menu_dropdown' | concat: items -%}
8
9
  {%- assign items = items | order -%}
9
10
 
10
11
  <nav class="navbar navbar-expand-lg navbar-light">
12
+ <a class="navbar-brand" href="?#">
13
+ {% if about.logo.path %}
14
+ <img
15
+ src="{{ about.logo.path | thumbnail: nil, 30 | uri_escape }}"
16
+ height="30"
17
+ alt="{{ about.logo.description | default: about.title | escape }}"
18
+ >
19
+ {% endif %}
20
+
21
+ {{ about.title }}
22
+ </a>
23
+
11
24
  {% unless items == empty %}
12
25
  <button class="navbar-toggler"
13
26
  type="button"
@@ -19,7 +32,7 @@ recursivamente.
19
32
  {% endunless %}
20
33
 
21
34
  <div class="collapse navbar-collapse" id="menu">
22
- <div class="navbar-nav w-100 d-flex align-items-start justify-content-center">
35
+ <div class="navbar-nav w-100 d-flex align-items-start justify-content-end">
23
36
  {% for item in items %}
24
37
  {% assign template = item.layout | append: ".html" %}
25
38
  {%- include_cached {{ template }} item=item -%}
@@ -7,7 +7,7 @@
7
7
  <button class="dropdown-toggle border-0 bg-transparent w-5 w-lg-auto pl-lg-3"></button>
8
8
  </div>
9
9
 
10
- <div class="dropdown-menu w-100 w-lg-auto flex-grow-1 flex-grow-lg-0 background-body">
10
+ <div class="dropdown-menu w-100 w-lg-auto flex-grow-1 flex-grow-lg-0 background-body px-2">
11
11
  {% for item in items %}
12
12
  {% assign template = item.layout | append: ".html" %}
13
13
  {%- include_cached {{ template }} item=item -%}
@@ -0,0 +1,79 @@
1
+ {% assign theme = site.posts | find: 'layout', 'theme' %}
2
+ {% assign date_format = site.i18n.date.format | default: '%b %-d, %Y' %}
3
+
4
+ <article class="h-entry" itemscope itemtype="http://schema.org/Article">
5
+ <header>
6
+ <h1 class="p-name" itemprop="name headline">{{ include.page.title | default: '' | escape }}</h1>
7
+
8
+ {%- if include.page.description -%}
9
+ <p class="lead p-summary" itemprop="description">{{ include.page.description | default: '' | escape }}</p>
10
+ {%- endif -%}
11
+
12
+ <p {{ theme.hide_timestamps | value_if: "hidden" }}>
13
+ {{ site.i18n.date.published_at }}
14
+
15
+ <time class="dt-published" datetime="{{ include.page.date | date_to_xmlschema }}" itemprop="datePublished">
16
+ {{ include.page.date | date_local: date_format }}
17
+ </time>
18
+
19
+ {% if include.page.last_modified_at %}
20
+ • {{ site.i18n.date.last_modified_at }}
21
+
22
+ <time class="dt-updated" datetime="{{ include.page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">
23
+ {{ include.page.last_modified_at | date_local: date_format }}
24
+ </time>
25
+ {% endif %}
26
+
27
+ {%- for author in include.page.author -%}
28
+
29
+
30
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
31
+ <span class="p-author h-card" itemprop="name">
32
+ {{ author | default: '' | escape }}
33
+ </span>
34
+ </span>
35
+ {%- endfor -%}
36
+ </p>
37
+
38
+ {%- if page.image.path -%}
39
+ <picture class="w-100">
40
+ {% for size in site.images.sizes %}
41
+ <source srcset="{{ page.image.path | thumbnail: size }}" media="(max-width: {{ size }}px)">
42
+ {% endfor %}
43
+
44
+ <img class="img-fluid d-block mx-auto" src="{{ page.image.path | thumbnail: 1140 }}" alt="{{ page.image.description }}">
45
+ </picture>
46
+ {%- endif -%}
47
+ </header>
48
+
49
+ <div class="e-content content" itemprop="articleBody">
50
+ {{ content }}
51
+ </div>
52
+
53
+ <footer>
54
+ <a class="u-url" itemprop="url" href="{{ include.page.url | absolute_url | component_escape }}" hidden>
55
+ {{- include.page.url | absolute_url -}}
56
+ </a>
57
+
58
+ {%- if include.page.uuid -%}
59
+ <span hidden itemprop="identifier">{{ include.page.uuid }}</span>
60
+ {%- endif -%}
61
+
62
+ {%- if include.license -%}
63
+ <p class="mt-5" itemprop="license" itemtype="http://schema.org/CreativeWork">
64
+ <a rel="license" itemprop="url" href="{{ include.license.url | absolute_url | component_escape }}">
65
+ <span itemprop="articleBody">
66
+ {{ license.description }}
67
+ </span>
68
+ </a>
69
+ </p>
70
+ {%- endif -%}
71
+
72
+ {%- if include.page.tags %}
73
+ <span itemprop="keywords" hidden>{{ include.page.tags | join: ', ' }}</span>
74
+ {%- for tag in include.page.tags -%}
75
+ <span hidden class="h-category">{{ tag }}</span>
76
+ {%- endfor -%}
77
+ {%- endif -%}
78
+ </footer>
79
+ </article>
@@ -1,45 +1,5 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% assign date_format = site.i18n.date.format | default: '%b %-d, %Y' %}
5
4
 
6
- <article class="h-entry" itemscope itemtype="http://schema.org/Article">
7
- <header>
8
- <h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
9
-
10
- {%- if page.description -%}
11
- <p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
12
- {%- endif -%}
13
-
14
- <p>
15
- {{ site.i18n.date.published_at }}
16
-
17
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
18
- {{ page.date | date_local: date_format }}
19
- </time>
20
-
21
- {% if page.last_modified_at %}
22
- {{ site.i18n.date.last_modified_at }}
23
-
24
- <time class="dt-published" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">
25
- {{ page.last_modified_at | date_local: date_format }}
26
- </time>
27
- {% endif %}
28
- </p>
29
- </header>
30
-
31
- <div class="e-content content" itemprop="articleBody">
32
- {{ content }}
33
- </div>
34
-
35
- <footer>
36
- <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
37
- {{ site.url -}}
38
- {{- page.url }}
39
- </a>
40
-
41
- {%- if page.uuid -%}
42
- <span hidden itemprop="identifier">{{ page.uuid }}</span>
43
- {%- endif -%}
44
- </footer>
45
- </article>
5
+ {% include page.html page=page %}
data/_layouts/home.html CHANGED
@@ -2,6 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
  {% assign posts = site.posts | where: 'layout', 'post' %}
5
+ {% assign theme = site.posts | find: 'layout', 'theme' %}
5
6
 
6
7
  <section class="home">
7
8
  <header>
@@ -13,11 +14,11 @@ layout: default
13
14
 
14
15
  {%- if site.posts.size > 0 -%}
15
16
  <section class="articles">
16
- <h2>{{ site.i18n.home.articles | default: 'Articles' }}</h2>
17
+ <h2 class="mb-4">{{ site.i18n.home.articles | default: 'Articles' }}</h2>
17
18
  {%- for post in posts -%}
18
19
  <article>
19
20
  {%- assign date_format = site.i18n.date_format | default: '%b %-d, %Y' -%}
20
- <span class="post-meta">{{ post.date | date: date_format }}</span>
21
+ <span class="post-meta" {{ theme.hide_timestamps | value_if: "hidden" }}>{{ post.date | date: date_format }}</span>
21
22
  <h3>
22
23
  <a class="post-link" href="{{ post.url }}">
23
24
  {{ post.title | escape }}
@@ -1,45 +1,4 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% assign date_format = site.i18n.date.format | default: '%b %-d, %Y' %}
5
-
6
- <article class="h-entry" itemscope itemtype="http://schema.org/Article">
7
- <header>
8
- <h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
9
-
10
- {%- if page.description -%}
11
- <p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
12
- {%- endif -%}
13
-
14
- <p>
15
- {{ site.i18n.date.published_at }}
16
-
17
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
18
- {{ page.date | date_local: date_format }}
19
- </time>
20
-
21
- {% if page.last_modified_at %}
22
- {{ site.i18n.date.last_modified_at }}
23
-
24
- <time class="dt-published" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">
25
- {{ page.last_modified_at | date_local: date_format }}
26
- </time>
27
- {% endif %}
28
- </p>
29
- </header>
30
-
31
- <div class="e-content content" itemprop="articleBody">
32
- {{ content }}
33
- </div>
34
-
35
- <footer>
36
- <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
37
- {{ site.url -}}
38
- {{- page.url }}
39
- </a>
40
-
41
- {%- if page.uuid -%}
42
- <span hidden itemprop="identifier">{{ page.uuid }}</span>
43
- {%- endif -%}
44
- </footer>
45
- </article>
4
+ {% include page.html page=page %}
data/_layouts/page.html CHANGED
@@ -1,71 +1,4 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% assign license = site.posts | find: 'layout', 'license' %}
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
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
17
- {{ page.date | date_local: date_format }}
18
- </time>
19
- {%- for author in page.author -%}
20
-
21
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
22
- <span class="p-author h-card" itemprop="name">
23
- {{ author | default: '' | escape }}
24
- </span>
25
- </span>
26
- {%- endfor -%}
27
- </p>
28
-
29
- {%- if page.image.path -%}
30
- <picture>
31
- {% for size in site.images.sizes %}
32
- <source srcset="{{ page.image.path | thumbnail: size }}" media="(max-width: {{ size }}px)">
33
- {% endfor %}
34
-
35
- <img class="img-fluid" src="{{ page.image.path | thumbnail: 1140 }}" alt="{{ page.image.description }}">
36
- </picture>
37
- {%- endif -%}
38
- </header>
39
-
40
- <div class="e-content content" itemprop="articleBody">
41
- {{ content }}
42
- </div>
43
-
44
- <footer>
45
- <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
46
- {{ site.url -}}
47
- {{- page.url }}
48
- </a>
49
-
50
- {%- if page.uuid -%}
51
- <span hidden itemprop="identifier">{{ page.uuid }}</span>
52
- {%- endif -%}
53
-
54
- {%- if license -%}
55
- <p itemprop="license" itemtype="http://schema.org/CreativeWork">
56
- <a rel="license" itemprop="url" href="{{ license.url }}">
57
- <span itemprop="articleBody">
58
- {{ license.description }}
59
- </span>
60
- </a>
61
- </p>
62
- {%- endif -%}
63
-
64
- {%- if page.tags %}
65
- <span itemprop="keywords" hidden>{{ page.tags | join: ', ' }}</span>
66
- {%- for tag in page.tags -%}
67
- <span hidden class="h-category">{{ tag }}</span>
68
- {%- endfor -%}
69
- {%- endif -%}
70
- </footer>
71
- </article>
4
+ {% include page.html page=page %}
data/_layouts/post.html CHANGED
@@ -2,70 +2,4 @@
2
2
  layout: default
3
3
  ---
4
4
  {% assign license = site.posts | find: 'layout', 'license' %}
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
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
17
- {{ page.date | date_local: date_format }}
18
- </time>
19
- {%- for author in page.author -%}
20
-
21
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
22
- <span class="p-author h-card" itemprop="name">
23
- {{ author | default: '' | escape }}
24
- </span>
25
- </span>
26
- {%- endfor -%}
27
- </p>
28
-
29
- {%- if page.image.path -%}
30
- <picture>
31
- {% for size in site.images.sizes %}
32
- <source srcset="{{ page.image.path | thumbnail: size }}" media="(max-width: {{ size }}px)">
33
- {% endfor %}
34
-
35
- <img class="img-fluid" src="{{ page.image.path | thumbnail: 1140 }}" alt="{{ page.image.description }}">
36
- </picture>
37
- {%- endif -%}
38
- </header>
39
-
40
- <div class="e-content content" itemprop="articleBody">
41
- {{ content }}
42
- </div>
43
-
44
- <footer>
45
- <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
46
- {{ site.url -}}
47
- {{- page.url }}
48
- </a>
49
-
50
- {%- if page.uuid -%}
51
- <span hidden itemprop="identifier">{{ page.uuid }}</span>
52
- {%- endif -%}
53
-
54
- {%- if license -%}
55
- <p itemprop="license" itemtype="http://schema.org/CreativeWork">
56
- <a rel="license" itemprop="url" href="{{ license.url }}">
57
- <span itemprop="articleBody">
58
- {{ license.description }}
59
- </span>
60
- </a>
61
- </p>
62
- {%- endif -%}
63
-
64
- {%- if page.tags %}
65
- <span itemprop="keywords" hidden>{{ page.tags | join: ', ' }}</span>
66
- {%- for tag in page.tags -%}
67
- <span hidden class="h-category">{{ tag }}</span>
68
- {%- endfor -%}
69
- {%- endif -%}
70
- </footer>
71
- </article>
5
+ {% include page.html page=page license=license %}
@@ -1,45 +1,4 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% assign date_format = site.i18n.date.format | default: '%b %-d, %Y' %}
5
-
6
- <article class="h-entry" itemscope itemtype="http://schema.org/Article">
7
- <header>
8
- <h1 class="p-name" itemprop="name headline">{{ page.title | default: '' | escape }}</h1>
9
-
10
- {%- if page.description -%}
11
- <p class="lead p-summary" itemprop="description">{{ page.description | default: '' | escape }}</p>
12
- {%- endif -%}
13
-
14
- <p>
15
- {{ site.i18n.date.published_at }}
16
-
17
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
18
- {{ page.date | date_local: date_format }}
19
- </time>
20
-
21
- {% if page.last_modified_at %}
22
- {{ site.i18n.date.last_modified_at }}
23
-
24
- <time class="dt-published" datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">
25
- {{ page.last_modified_at | date_local: date_format }}
26
- </time>
27
- {% endif %}
28
- </p>
29
- </header>
30
-
31
- <div class="e-content content" itemprop="articleBody">
32
- {{ content }}
33
- </div>
34
-
35
- <footer>
36
- <a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
37
- {{ site.url -}}
38
- {{- page.url }}
39
- </a>
40
-
41
- {%- if page.uuid -%}
42
- <span hidden itemprop="identifier">{{ page.uuid }}</span>
43
- {%- endif -%}
44
- </footer>
45
- </article>
4
+ {% include page.html page=page %}
@@ -18,3 +18,18 @@
18
18
  @import "custom";
19
19
  @import "content";
20
20
  @import "menu";
21
+
22
+ @each $breakpoint in map-keys($grid-breakpoints) {
23
+ @include media-breakpoint-up($breakpoint) {
24
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
25
+
26
+ @each $prop, $abbrev in (width: w, height: h) {
27
+ @each $size, $length in $sizes {
28
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
29
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
30
+ .min-#{$abbrev}#{$infix}-#{$size} { min-#{$prop}: $length !important; }
31
+ .max-#{$abbrev}#{$infix}-#{$size} { max-#{$prop}: $length !important; }
32
+ }
33
+ }
34
+ }
35
+ }
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
@@ -36,7 +36,7 @@ cert_chain:
36
36
  cpurTQHNJfL/ah+9dYbgDXdG5HAAjRMAsWSvERw95YdN9XzQZCdUk5wUs+A6cNtO
37
37
  AZZUMTVYNx8JqUeemxlXBRjsD/s=
38
38
  -----END CERTIFICATE-----
39
- date: 2025-01-27 00:00:00.000000000 Z
39
+ date: 2025-01-28 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll
@@ -227,6 +227,7 @@ files:
227
227
  - _includes/menu_external.html
228
228
  - _includes/menu_internal.html
229
229
  - _includes/navbar.html
230
+ - _includes/page.html
230
231
  - _includes/script.html
231
232
  - _layouts/code_of_conduct.html
232
233
  - _layouts/default.html
metadata.gz.sig CHANGED
Binary file