jekyll-theme-nixer 1.1.4 → 1.1.6

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: 8d844c44586cd13fada1649d5ab24e7d6b15e5dcffdf8e63e36f4bdd9dab3dfd
4
- data.tar.gz: 27ef986712ec2c0bd500908c0a5579efa57d71494ff12e2b2ebaff591063a1aa
3
+ metadata.gz: cd002ca7d366a6163279c177c167cb9868d6f73c8dae298b08167d378dc577ba
4
+ data.tar.gz: 915c327c5cec18d850c2dcfa920f17152fc8491f1a66279701d66fc4b8972cef
5
5
  SHA512:
6
- metadata.gz: fdb602702adb15ac4cd13f24d675daedbb22fe25202697a308e50ebef039efbe360ebbb71bc9c3aac4bb0efc70c2669bf86757d2b80142925ed01baaac61a0f8
7
- data.tar.gz: '0619a4b4ac30612afdbb38bb9c5f1a04081fe5bb2806a2e5577f9bd603ba507bd7d6c30dddfc04d4abed4f95bd79d097fd980cb840eaa680f1824087e0186f83'
6
+ metadata.gz: f3758bd41dd981fee7262366720b198496e8b5a73cbb23d141d22a9d747765c35c256fea821fddd6e336796287cee79996dff35e302f0fd4f88613e81c1c3e90
7
+ data.tar.gz: 28f591d936587daa68b923c55491c90500d93eaf90e6257f8acb5a08e18ab18567e6110807860a776faf24596fe841c952a7bfee035628843da299589fa731b0
data/README.md CHANGED
@@ -48,6 +48,10 @@ The default colors are the colors of the respective browsers, both in light and
48
48
 
49
49
  `/assets/icons/icon.webp` is the favicon for the light mode, and there's also a dark variant `/assets/icons/icon-dark.webp` for dark mode. They will be used automatically or you can replace them by creating new ones in the same location.
50
50
 
51
+ ### Language Direction
52
+
53
+ Support for right-to-left languages through `lang_direction: rtl` in `_config.yml` under the key `theme_settings`.
54
+
51
55
  ### Nixer?
52
56
 
53
57
  “Nix” is the grammatically incorrect form of the German “nichts”, which in English means “nothing”. It's colloquially used to stress the nothingness. “Nixer” is the even more grammatically incorrect comparative of that, which colloquially may or may not being used at all.
@@ -56,7 +60,7 @@ Or, if you will, it could be UNIX without the “U”, because of the theme's so
56
60
 
57
61
  ## Installation
58
62
 
59
- Installation from Gem is recommended, but using a remote theme is also possible, even though it will increase build times a little, depending on your internet connection and the size of the theme download, because it will be downloaded during each build. Gems are installed locally.
63
+ Installation from Gem is recommended, but using a remote theme is also possible, even though it will increase build times a little, depending on your internet connection and the size of the theme download, because it will be downloaded during each build. Gems are installed locally once.
60
64
 
61
65
  GitHub Pages gem users need to use the remote theme method.
62
66
 
@@ -103,7 +107,3 @@ remote_theme: michaelnordmeyer/jekyll-theme-nixer
103
107
  ```
104
108
 
105
109
  Make sure that this is the only `remote_theme:` in `_config.yml`, and that there are no other `theme:`.
106
-
107
- ## Styled Sitemap.xml
108
-
109
- A `sitemap.xsl` is included in the theme to style the `sitemap.xml` while being displayed in the browser. For a standard Jekyll installation, they work out-of-the-box if both files are copied to the Jekyll directory.
data/_config.yml CHANGED
@@ -37,6 +37,7 @@ title_separator: " • " # default: " | "
37
37
  favicon: /assets/icons/icon.webp # optional, but mandatory if favicon_dark is used, needs to be 180x180
38
38
  favicon_dark: /assets/icons/icon-dark.webp # optional, needs to be 180x180
39
39
  theme_settings:
40
+ # lang_direction: rtl # default: "ltr"
40
41
  # redirect_page_title: "Redirecting…" # default: "Redirecting…"
41
42
  # redirect_page_from: "Redirecting from" # default: "Redirecting from"
42
43
  # redirect_page_to: "to" # default: "to"
@@ -55,7 +56,7 @@ defaults:
55
56
  values:
56
57
  layout: post
57
58
  - scope:
58
- path: error
59
+ path: errors
59
60
  type: pages
60
61
  values:
61
62
  layout: error
@@ -1,8 +1,5 @@
1
- <!doctype html>
2
- <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
- <head>
4
1
  <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
2
+ <meta name="viewport" content="width=device-width">
6
3
  {%- if site.favicon %}
7
4
  {%- if site.favicon_dark %}
8
5
  <link rel="icon" type="{{ site.favicon_media_type }}" media="(prefers-color-scheme: light)" href="{{ site.favicon | relative_url }}">
@@ -11,7 +8,6 @@
11
8
  <link rel="icon" type="{{ site.favicon_media_type }}" href="{{ site.favicon | relative_url }}">
12
9
  {%- endif %}
13
10
  {%- endif %}
14
- <meta name="color-scheme" content="light dark">
15
11
  <meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
16
12
  <meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
17
13
  {%- if page.sitemap == false %}
data/_includes/style.html CHANGED
@@ -1,41 +1,102 @@
1
- <style>
2
- :root {
3
- --default-font-px: 16;
4
- --font-size: 1rem;
5
- --font-family: sans-serif;
6
- --spacing: 1em;
7
- --line-height: 1.5;
8
- --reduced-line-height: 1.2;
9
- /* Calculate integer pixel values depending on the font size (1rem = 16px) */
10
- --border-size: calc(var(--font-size) * 1/var(--default-font-px));
11
- --x-script: calc(var(--font-size) * 11/var(--default-font-px));
12
- --small-font-size: calc(var(--font-size) * 14/var(--default-font-px));
13
- --big-font-size: calc(var(--font-size) * 32/var(--default-font-px));
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 { margin: 0; }
26
- img, table { margin: 0 auto; }
27
- table { border-collapse: collapse; }
28
- th, td { padding: calc(var(--spacing) * 1/4); border: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent); }
29
- img { display: block; max-width: 100%; height: auto; }
30
- figure { margin-left: 0; margin-right: 0; max-width: 100%; text-align: center; font-size: var(--small-font-size); line-height: 1; }
31
- blockquote { margin: var(--spacing) calc(var(--spacing) * 3/2) var(--spacing) calc(var(--spacing) * 1/2); padding-left: var(--spacing); border-left: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent); }
32
- pre { overflow-x: auto; tab-size: 2; }
33
- sub, sup { font-size: var(--x-script); line-height: 0; }
34
- hr { margin: calc(var(--spacing) * 2) 0; border: 0; border-top: var(--border-size) solid; }
35
- h1, h2, h3, h4, h5, h6 { line-height: var(--reduced-line-height); text-wrap: balance; }
36
- h1 { margin-block: 0.67em; font-size: var(--big-font-size); text-align: center; }
37
- body > main > ul { padding: 0; }
38
- body > main > ul > li { margin: calc(var(--spacing) * 1/2) 0; list-style-type: none; line-height: 1.25; }
39
- hr:has(+div[role="doc-endnotes"]) { margin-bottom: var(--spacing); }
40
- div[role="doc-endnotes"] { margin-top: 0; font-size: var(--small-font-size); line-height: var(--line-height); }
41
- </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>
@@ -1,4 +1,7 @@
1
- {% include head.html %}
1
+ <!doctype html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
+ <head>
4
+ {% include default-head.html %}
2
5
  <title>{%- if page.title -%}{{ page.title | smartify }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
3
6
  <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | smartify }}{% else %}{{ site.description | smartify }}{% endif %}">
4
7
  <link rel="canonical" href="{{ page.url | absolute_url }}">
data/_layouts/error.html CHANGED
@@ -1,4 +1,7 @@
1
- {% include head.html %}
1
+ <!doctype html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
+ <head>
4
+ {% include default-head.html %}
2
5
  <title>{%- if page.title -%}{{ page.title | smartify }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
3
6
  {% include_cached style.html %}
4
7
  </head>
@@ -1,4 +1,7 @@
1
- {% include head.html %}
1
+ <!doctype html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
+ <head>
4
+ {% include default-head.html %}
2
5
  <title>{{ site.theme_settings.redirect_page_title | default: "Redirecting…" | smartify }}</title>
3
6
  <link rel="canonical" href="{{ page.redirect.to | absolute_url }}">
4
7
  <meta http-equiv="refresh" content="0; url={{ page.redirect.to | absolute_url }}">
metadata CHANGED
@@ -1,145 +1,175 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
- - Michael Nordmeyer
7
+ - Michael Nordmeyer
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
- - !ruby/object:Gem::Dependency
13
- name: jekyll
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 3.10.0
19
- - - "<"
20
- - !ruby/object:Gem::Version
21
- version: '5.0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- version: 3.10.0
29
- - - "<"
30
- - !ruby/object:Gem::Version
31
- version: '5.0'
32
- - !ruby/object:Gem::Dependency
33
- name: jekyll-include-cache
34
- requirement: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - "~>"
37
- - !ruby/object:Gem::Version
38
- version: '0.2'
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- requirements:
43
- - - "~>"
44
- - !ruby/object:Gem::Version
45
- version: '0.2'
46
- - !ruby/object:Gem::Dependency
47
- name: jekyll-redirect-from
48
- requirement: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - "~>"
51
- - !ruby/object:Gem::Version
52
- version: '0.16'
53
- type: :runtime
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '0.16'
60
- - !ruby/object:Gem::Dependency
61
- name: jekyll-sitemap
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '1.4'
67
- type: :runtime
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '1.4'
74
- - !ruby/object:Gem::Dependency
75
- name: bundler
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '2.4'
81
- type: :development
82
- prerelease: false
83
- version_requirements: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '2.4'
88
- - !ruby/object:Gem::Dependency
89
- name: rake
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '13.0'
95
- type: :development
96
- prerelease: false
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '13.0'
12
+ - !ruby/object:Gem::Dependency
13
+ name: jekyll
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ -
17
+ - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.10.0
20
+ -
21
+ - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: "5.0"
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ -
29
+ - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 3.10.0
32
+ -
33
+ - "<"
34
+ - !ruby/object:Gem::Version
35
+ version: "5.0"
36
+ - !ruby/object:Gem::Dependency
37
+ name: jekyll-include-cache
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ -
41
+ - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: "0.2"
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ -
49
+ - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: "0.2"
52
+ - !ruby/object:Gem::Dependency
53
+ name: jekyll-redirect-from
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ -
57
+ - ~>
58
+ - !ruby/object:Gem::Version
59
+ version: "0.16"
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ -
65
+ - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: "0.16"
68
+ - !ruby/object:Gem::Dependency
69
+ name: jekyll-sitemap
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ -
73
+ - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: "1.4"
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ -
81
+ - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: "1.4"
84
+ - !ruby/object:Gem::Dependency
85
+ name: logger
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ -
89
+ - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ -
97
+ - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "0"
100
+ - !ruby/object:Gem::Dependency
101
+ name: bundler
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ -
105
+ - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: "2.4"
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ -
113
+ - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: "2.4"
116
+ - !ruby/object:Gem::Dependency
117
+ name: rake
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ -
121
+ - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "13.0"
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ -
129
+ - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "13.0"
102
132
  email:
103
- - michaelnordmeyer@users.noreply.github.com
133
+ - michaelnordmeyer@users.noreply.github.com
104
134
  executables: []
105
135
  extensions: []
106
136
  extra_rdoc_files: []
107
137
  files:
108
- - CODE_OF_CONDUCT.md
109
- - LICENSE
110
- - README.md
111
- - _config.yml
112
- - _includes/head.html
113
- - _includes/style.html
114
- - _layouts/default.html
115
- - _layouts/error.html
116
- - _layouts/home.html
117
- - _layouts/post.html
118
- - _layouts/redirect.html
119
- - assets/icons/icon-dark.webp
120
- - assets/icons/icon.webp
121
- homepage: https://github.com/michaelnordmeyer/jekyll-theme-nixer
138
+ - CODE_OF_CONDUCT.md
139
+ - LICENSE
140
+ - README.md
141
+ - _config.yml
142
+ - _includes/default-head.html
143
+ - _includes/style.html
144
+ - _layouts/default.html
145
+ - _layouts/error.html
146
+ - _layouts/home.html
147
+ - _layouts/post.html
148
+ - _layouts/redirect.html
149
+ - assets/icons/icon-dark.webp
150
+ - assets/icons/icon.webp
151
+ homepage: "https://github.com/michaelnordmeyer/jekyll-theme-nixer"
122
152
  licenses:
123
- - MIT
153
+ - MIT
124
154
  metadata:
125
155
  plugin_type: theme
126
156
  rdoc_options: []
127
157
  require_paths:
128
- - lib
158
+ - lib
129
159
  required_ruby_version: !ruby/object:Gem::Requirement
130
160
  requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: 2.7.0
161
+ -
162
+ - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: 2.7.0
134
165
  required_rubygems_version: !ruby/object:Gem::Requirement
135
166
  requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: 3.4.0
167
+ -
168
+ - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 3.4.0
139
171
  requirements: []
140
- rubygems_version: 3.7.1
172
+ rubygems_version: 4.1.0
141
173
  specification_version: 4
142
- summary: A hard-core minimalist, single-author Jekyll theme with almost default browser
143
- styling, and a dark mode. Just a post list and posts, no menu, header, footer, or
144
- pages. Even the backlink from posts to home is missing.
174
+ summary: "A hard-core minimalist, single-author Jekyll theme with almost default browser styling, and a dark mode. Just a post list and posts, no menu, header, footer, or pages. Even the backlink from posts to home is missing."
145
175
  test_files: []