jekyll-theme-nixest 1.1.6 → 1.1.7

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: ba5d7761b7db64c0f2177f457d5ff8597b2a10c6c176fb156f94d468d8d2f558
4
- data.tar.gz: 1acb944ed24260bca456c35a3f3c1ea515eb32a0e73db203bc948f5d9291922c
3
+ metadata.gz: 1525cf0768d184bf997e3cbf663c812fbb77f92a0729afbf047fd68e5eefdee9
4
+ data.tar.gz: 10b6461d03bc37ecf06a7f10ff2f4f5db5209e65964d24afb154a4b3b3822ce3
5
5
  SHA512:
6
- metadata.gz: 9e673e9a98e9b166666ef48da14792d988b51283de52e675f1fba8deb3929d9c8530177de52073cd3bb1d301a292fb1ad88d3685e4c001635cdf0d9bf8ea53f7
7
- data.tar.gz: c6f28dbb077a9226a88bb562babe7d0d7361035d2802bf2ff81dac1a8b7f2f1396009a002d57badfb339c7fd98fbfffe2ee7e7c62076ba27f6a8943ff0dac19d
6
+ metadata.gz: d71893fd4f40d815cf514f2b47846c505670eede3d937fa1d32af6374f5d206ed2a2028bd413c3a28742b44c37e3c3ec4f1f703c6ae6435b3468d46feab50a3b
7
+ data.tar.gz: 3f74a1eaa88787d5125c17028206d630ae4cc3e55773f9a1dfe49a43a6b128d239b7263fd0996f550c9ff2613125b1fce17760bd143937c0263dc4b466d430c5
data/_includes/style.html CHANGED
@@ -1,102 +1,102 @@
1
- <style>
2
- :root {
3
- color-scheme: light dark;
4
- --font-size: 1rem;
5
- /* Calculate integer pixel values depending on the font size (default: 1rem = 16px) */
6
- --border-size: calc(var(--font-size) * 1/16);
7
- --font-size-script: calc(var(--font-size) * 11/16);
8
- --font-size-small: calc(var(--font-size) * 14/16);
9
- --font-size-big: calc(var(--font-size) * 32/16);
10
- --font-family: sans-serif;
11
- --spacing: 1em;
12
- --line-height: 1.5;
13
- --line-height-reduced: 1.2;
14
- }
15
- html {
16
- max-width: 720px;
17
- margin: 0 auto;
18
- padding: calc(var(--spacing) * 1 / 2);
19
- font: var(--font-size) / var(--line-height) var(--font-family);
20
- /* font-size-adjust: from-font; */
21
- -moz-text-size-adjust: none;
22
- -webkit-text-size-adjust: none;
23
- text-size-adjust: none;
24
- }
25
- body {
26
- margin: 0;
27
- }
28
- img,
29
- table {
30
- margin: 0 auto;
31
- }
32
- table {
33
- border-collapse: collapse;
34
- }
35
- th,
36
- td {
37
- padding: calc(var(--spacing) * 1 / 4);
38
- border: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
39
- }
40
- img {
41
- display: block;
42
- max-width: 100%;
43
- height: auto;
44
- }
45
- figure {
46
- margin-left: 0;
47
- margin-right: 0;
48
- max-width: 100%;
49
- text-align: center;
50
- font-size: var(--font-size-small);
51
- line-height: 1;
52
- }
53
- blockquote {
54
- margin: var(--spacing) calc(var(--spacing) * 3 / 2) var(--spacing) calc(var(--spacing) * 1 / 2);
55
- padding-left: var(--spacing);
56
- border-left: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
57
- }
58
- pre {
59
- overflow-x: auto;
60
- tab-size: 2;
61
- }
62
- sub,
63
- sup {
64
- font-size: var(--font-size-script);
65
- line-height: 0;
66
- }
67
- hr {
68
- margin: calc(var(--spacing) * 2) 0;
69
- border: 0;
70
- border-top: var(--border-size) solid;
71
- }
72
- h1,
73
- h2,
74
- h3,
75
- h4,
76
- h5,
77
- h6 {
78
- line-height: var(--line-height-reduced);
79
- text-wrap: balance;
80
- }
81
- h1 {
82
- margin-block: 0.67em;
83
- font-size: var(--font-size-big);
84
- text-align: center;
85
- }
86
- body > main > ul {
87
- padding: 0;
88
- }
89
- body > main > ul > li {
90
- margin: calc(var(--spacing) * 1 / 2) 0;
91
- list-style-type: none;
92
- line-height: 1.25;
93
- }
94
- hr:has(+ div[role="doc-endnotes"]) {
95
- margin-bottom: var(--spacing);
96
- }
97
- div[role="doc-endnotes"] {
98
- margin-top: 0;
99
- font-size: var(--font-size-small);
100
- line-height: var(--line-height);
101
- }
102
- </style>
1
+ <style>
2
+ :root {
3
+ color-scheme: light dark;
4
+ --font-size: 1rem;
5
+ /* Calculate integer pixel values depending on the font size (default: 1rem = 16px) */
6
+ --border-size: calc(var(--font-size) * 1/16);
7
+ --font-size-script: calc(var(--font-size) * 11/16);
8
+ --font-size-small: calc(var(--font-size) * 14/16);
9
+ --font-size-big: calc(var(--font-size) * 32/16);
10
+ --font-family: sans-serif;
11
+ --spacing: 1em;
12
+ --line-height: 1.5;
13
+ --line-height-reduced: 1.2;
14
+ }
15
+ html {
16
+ max-width: 720px;
17
+ margin: 0 auto;
18
+ padding: calc(var(--spacing) * 1 / 2);
19
+ font: var(--font-size) / var(--line-height) var(--font-family);
20
+ /* font-size-adjust: from-font; */
21
+ -moz-text-size-adjust: none;
22
+ -webkit-text-size-adjust: none;
23
+ text-size-adjust: none;
24
+ }
25
+ body {
26
+ margin: 0;
27
+ }
28
+ img,
29
+ table {
30
+ margin: 0 auto;
31
+ }
32
+ table {
33
+ border-collapse: collapse;
34
+ }
35
+ th,
36
+ td {
37
+ padding: calc(var(--spacing) * 1 / 4);
38
+ border: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
39
+ }
40
+ img {
41
+ display: block;
42
+ max-width: 100%;
43
+ height: auto;
44
+ }
45
+ figure {
46
+ margin-left: 0;
47
+ margin-right: 0;
48
+ max-width: 100%;
49
+ text-align: center;
50
+ font-size: var(--font-size-small);
51
+ line-height: 1;
52
+ }
53
+ blockquote {
54
+ margin: var(--spacing) calc(var(--spacing) * 3 / 2) var(--spacing) calc(var(--spacing) * 1 / 2);
55
+ padding-left: var(--spacing);
56
+ border-left: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
57
+ }
58
+ pre {
59
+ overflow-x: auto;
60
+ tab-size: 2;
61
+ }
62
+ sub,
63
+ sup {
64
+ font-size: var(--font-size-script);
65
+ line-height: 0;
66
+ }
67
+ hr {
68
+ margin: calc(var(--spacing) * 2) 0;
69
+ border: 0;
70
+ border-top: var(--border-size) solid;
71
+ }
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ line-height: var(--line-height-reduced);
79
+ text-wrap: balance;
80
+ }
81
+ h1 {
82
+ margin-block: 0.67em;
83
+ font-size: var(--font-size-big);
84
+ text-align: center;
85
+ }
86
+ body > main > ul {
87
+ padding: 0;
88
+ }
89
+ body > main > ul > li {
90
+ margin: calc(var(--spacing) * 1 / 2) 0;
91
+ list-style-type: none;
92
+ line-height: 1.25;
93
+ }
94
+ hr:has(+ div[role="doc-endnotes"]) {
95
+ margin-bottom: var(--spacing);
96
+ }
97
+ div[role="doc-endnotes"] {
98
+ margin-top: 0;
99
+ font-size: var(--font-size-small);
100
+ line-height: var(--line-height);
101
+ }
102
+ </style>
@@ -2,8 +2,8 @@
2
2
  <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
3
  <head>
4
4
  {% include default-head.html %}
5
- <title>{%- if content -%}{{ content | strip_html | truncate: 150 }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
6
- <meta name="description" content="{% if content %}{{ content | strip_html | truncate: 150 }}{% else %}{{ site.description | smartify }}{% endif %}">
5
+ <title>{% if content %}{{ content | strip_html | truncate: 50 | smartify }}{% else %}{{ site.title | smartify }}{% endif %}</title>
6
+ <meta name="description" content="{% if content %}{{ content | strip_html | truncate: 150 | smartify }}{% else %}{{ site.description | smartify }}{% endif %}">
7
7
  <link rel="canonical" href="{{ page.url | absolute_url }}">
8
8
  {% include_cached style.html %}
9
9
  </head>
data/_layouts/error.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
3
  <head>
4
4
  {% include default-head.html %}
5
- <title>{%- if content -%}{{ content | strip_html | truncate: 150 }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
5
+ <title>{% if content %}{{ content | strip_html | truncate: 150 | smartify }}{% else %}{{ site.title | smartify }}{% endif %}</title>
6
6
  {% include_cached style.html %}
7
7
  </head>
8
8
  <body>
data/_layouts/home.html CHANGED
@@ -3,6 +3,6 @@ layout: default
3
3
  ---
4
4
  {%- if site.posts.size > 0 -%}
5
5
  {%- for post in site.posts %}
6
- <p><a href="{{ post.url | relative_url }}">{{ post.content | strip_html | truncate: 150 }}</a></p>
6
+ <p><a href="{{ post.url | relative_url }}">{{ post.content | strip_html | truncate: 150 | smartify }}</a></p>
7
7
  {%- endfor -%}
8
8
  {%- endif %}
data/_layouts/post.html CHANGED
@@ -2,5 +2,5 @@
2
2
  layout: default
3
3
  ---
4
4
  <article>
5
- {{ content }}
5
+ {{ content | smartify }}
6
6
  </article>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nixest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Nordmeyer