sutty-jekyll-theme 0.4.1 → 0.5.0

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/_data/actions.yml +9 -0
  4. data/_data/en.yml +69 -0
  5. data/_data/es.yml +70 -0
  6. data/_data/layouts/theme.yml +5 -5
  7. data/_data/manifest.json +679 -7
  8. data/_includes/activity_pub/actor.html +11 -0
  9. data/_includes/activity_pub/actor_mention.html +28 -0
  10. data/_includes/activity_pub/button.html +22 -0
  11. data/_includes/activity_pub/button_bar.html +16 -0
  12. data/_includes/activity_pub/cards.html +28 -0
  13. data/_includes/activity_pub/fediverse_interactions.html +2 -0
  14. data/_includes/activity_pub/generic_modal.html +55 -0
  15. data/_includes/activity_pub/image_modal.html +27 -0
  16. data/_includes/activity_pub/interactions.html +78 -0
  17. data/_includes/activity_pub/login_modal.html +70 -0
  18. data/_includes/activity_pub/reaction.html +45 -0
  19. data/_includes/activity_pub/reactions.html +17 -0
  20. data/_includes/activity_pub/replying_to.html +23 -0
  21. data/_includes/activity_pub/text_modal.html +16 -0
  22. data/_includes/activity_pub/toot_card.html +95 -0
  23. data/_includes/activity_pub/url.html +8 -0
  24. data/_includes/activity_pub/video_modal.html +20 -0
  25. data/_includes/bootstrap/custom_select.html +18 -0
  26. data/_includes/external_link.html +15 -0
  27. data/_includes/fa.html +11 -0
  28. data/_includes/menu.html +14 -1
  29. data/_includes/menu_dropdown.html +1 -1
  30. data/_includes/page.html +91 -0
  31. data/_layouts/code_of_conduct.html +1 -41
  32. data/_layouts/default.html +1 -0
  33. data/_layouts/home.html +3 -2
  34. data/_layouts/license.html +1 -42
  35. data/_layouts/page.html +1 -68
  36. data/_layouts/post.html +1 -67
  37. data/_layouts/privacy_policy.html +1 -42
  38. data/assets/css/styles.scss +21 -0
  39. data/assets/fonts/forkawesome-webfont.woff2 +0 -0
  40. data/assets/js/env.js +8 -0
  41. data/assets/js/pack.FXJZFZ4Z.js +41 -0
  42. data/assets/js/pack.FXJZFZ4Z.js.map +7 -0
  43. data.tar.gz.sig +0 -0
  44. metadata +42 -4
  45. metadata.gz.sig +0 -0
  46. data/assets/js/pack.3XNALAB2.js +0 -27
  47. data/assets/js/pack.3XNALAB2.js.map +0 -7
@@ -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,91 @@
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.activity %}
73
+ <hr />
74
+ {% include activity_pub/interactions.html activity=include.page.activity profile=site.actor %}
75
+ {% endif %}
76
+
77
+ {%- if page.tags %}
78
+ <span itemprop="keywords" hidden>{{ page.tags | join: ', ' }}</span>
79
+ {%- for tag in page.tags -%}
80
+ <span hidden class="h-category">{{ tag }}</span>
81
+ {%- endfor -%}
82
+ {%- endif -%}
83
+
84
+ {%- if include.page.tags %}
85
+ <span itemprop="keywords" hidden>{{ include.page.tags | join: ', ' }}</span>
86
+ {%- for tag in include.page.tags -%}
87
+ <span hidden class="h-category">{{ tag }}</span>
88
+ {%- endfor -%}
89
+ {%- endif -%}
90
+ </footer>
91
+ </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 %}
@@ -11,6 +11,7 @@
11
11
 
12
12
  <link href="assets/css/styles.css?{{ site.time | date: '%s' }}" rel="stylesheet" data-turbo-track="reload">
13
13
 
14
+ {%- include_cached script.html src="assets/js/env.js" -%}
14
15
  {%- for pack in site.data.manifest.outputs -%}
15
16
  {%- unless pack[1].entryPoint -%}{%- continue -%}{%- endunless -%}
16
17
  {%- assign src = pack[0] -%}
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 %}
@@ -7,9 +7,11 @@
7
7
  {{ theme | yaml_to_scss: site.data.layouts.theme }}
8
8
  {% endif %}
9
9
 
10
+
10
11
  @import "fonts";
11
12
  @import "variables";
12
13
  @import "bootstrap/scss/bootstrap";
14
+ @import "fork-awesome/scss/fork-awesome";
13
15
  @import "selection";
14
16
  @import "buttons";
15
17
  @import "crypto";
@@ -18,3 +20,22 @@
18
20
  @import "custom";
19
21
  @import "content";
20
22
  @import "menu";
23
+
24
+ @each $breakpoint in map-keys($grid-breakpoints) {
25
+ @include media-breakpoint-up($breakpoint) {
26
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
27
+
28
+ @each $prop, $abbrev in (width: w, height: h) {
29
+ @each $size, $length in $sizes {
30
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
31
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
32
+ .min-#{$abbrev}#{$infix}-#{$size} { min-#{$prop}: $length !important; }
33
+ .max-#{$abbrev}#{$infix}-#{$size} { max-#{$prop}: $length !important; }
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ .turbo-progress-bar { background-color: $primary; }
40
+ .zindex-modal-backdrop { z-index: 1040; }
41
+ .zindex-modal { z-index: 1050; }
data/assets/js/env.js ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ ---
3
+
4
+ window.env = {
5
+ AIRBRAKE_PROJECT_ID: {{ site.env.AIRBRAKE_PROJECT_ID | default: 0 }},
6
+ AIRBRAKE_PROJECT_KEY: '{{ site.env.AIRBRAKE_PROJECT_KEY }}',
7
+ JEKYLL_ENV: '{{ site.env.JEKYLL_ENV }}'
8
+ };