jekyll-theme-nix 1.1.4 → 1.1.5
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 +4 -4
- data/README.md +5 -9
- data/_config.yml +2 -1
- data/_includes/{head.html → default-head.html} +0 -3
- data/_includes/seo.html +35 -0
- data/_layouts/default.html +5 -5
- data/_layouts/error.html +4 -1
- data/_layouts/redirect.html +4 -1
- metadata +22 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67a9ba34ae5b4c918f9b618776a674d94e7ad6f65ebe97d66312709355fddeaa
|
|
4
|
+
data.tar.gz: 330b341a709eb566d45113a8e1d2b145e8026570496495c55e21a5a5f6c9f663
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d1283ff981ee4e97fe8463f21bb2a054b964f70d5be2444a99cfadfad70c423b8b00f6a0069eb65d2faeceae4bfb8f6d9f598b1a109e474304d05ddb5bc0ce2
|
|
7
|
+
data.tar.gz: 89c99e01508f0384e5aa482f9f11248d54c8efbfb6aeb7a8d41b55635b6a52080922edafc74107ff95ef2a8d164e77c6ab941d9751e2d1e0c97697e8d6973ae3
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ If this theme feels to bloated to you, you can try [“Nixer”](https://github.
|
|
|
24
24
|
- No pagination for the home page
|
|
25
25
|
- A feed.xml containing an Atom feed, but no JSON or outdated RSS feeds
|
|
26
26
|
- A sitemap.xml, because search engines should index us properly
|
|
27
|
-
-
|
|
27
|
+
- Semantic info like Open Graph and inline Microdata
|
|
28
28
|
|
|
29
29
|
## Minutiae
|
|
30
30
|
|
|
@@ -36,6 +36,10 @@ The default colors are the colors of the respective browsers, both in light and
|
|
|
36
36
|
|
|
37
37
|
`/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.
|
|
38
38
|
|
|
39
|
+
### Language Direction
|
|
40
|
+
|
|
41
|
+
Support for right-to-left languages through `lang_direction: rtl` in `_config.yml` under the key `theme_settings`.
|
|
42
|
+
|
|
39
43
|
### Nix?
|
|
40
44
|
|
|
41
45
|
“Nix” is the grammatically incorrect form of the German “nichts”, which in English means “nothing”. It's colloquially used to stress the nothingness.
|
|
@@ -91,11 +95,3 @@ remote_theme: michaelnordmeyer/jekyll-theme-nix
|
|
|
91
95
|
```
|
|
92
96
|
|
|
93
97
|
Make sure that this is the only `remote_theme:` in `_config.yml`, and that there are no other `theme:`.
|
|
94
|
-
|
|
95
|
-
## Styled Atom Feed and Sitemap.xml
|
|
96
|
-
|
|
97
|
-
Both are included in the demo. For a standard Jekyll installation, they work out-of-the-box if the files `feed.xslt.xml` and `sitemap.xsl` are copied to the site’s Jekyll directory.
|
|
98
|
-
|
|
99
|
-
The XSLT files style the XML files. If a user selects the link to the feed, a styled version of the feed will be shown in the browser with an explainer of what web feeds are.
|
|
100
|
-
|
|
101
|
-
Because feeds are generated once, they can only support one icon. The light variant was chosen for the feed.
|
data/_config.yml
CHANGED
|
@@ -44,6 +44,7 @@ title_separator: " • " # default: " | "
|
|
|
44
44
|
favicon: /assets/icons/icon.webp # optional, but mandatory if favicon_dark is used, needs to be 180x180
|
|
45
45
|
favicon_dark: /assets/icons/icon-dark.webp # optional, needs to be 180x180
|
|
46
46
|
theme_settings:
|
|
47
|
+
# lang_direction: rtl # default: "ltr"
|
|
47
48
|
# redirect_page_title: "Redirecting…" # default: "Redirecting…"
|
|
48
49
|
# redirect_page_from: "Redirecting from" # default: "Redirecting from"
|
|
49
50
|
# redirect_page_to: "to" # default: "to"
|
|
@@ -68,7 +69,7 @@ defaults:
|
|
|
68
69
|
layout: page
|
|
69
70
|
permalink: /:path/:basename
|
|
70
71
|
- scope:
|
|
71
|
-
path:
|
|
72
|
+
path: errors
|
|
72
73
|
type: pages
|
|
73
74
|
values:
|
|
74
75
|
layout: error
|
data/_includes/seo.html
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{%- if page.title -%}
|
|
2
|
+
{%- capture html_title -%}{{ page.title | smartify }}{{ site.title_separator | default: ' | ' }}{{ site.title | smartify }}{%- endcapture -%}
|
|
3
|
+
{%- capture meta_title -%}{{ page.title | smartify }}{%- endcapture -%}
|
|
4
|
+
{%- else -%}
|
|
5
|
+
{%- capture html_title -%}{{ site.title | smartify }}{{ site.title_separator | default: ' | ' }}{{ site.description | smartify }}{%- endcapture -%}
|
|
6
|
+
{%- assign meta_title = html_title -%}
|
|
7
|
+
{%- endif -%}
|
|
8
|
+
{%- if page.description -%}
|
|
9
|
+
{%- assign description = page.description | smartify -%}
|
|
10
|
+
{%- elsif page.excerpt -%}
|
|
11
|
+
{%- assign description = page.excerpt | strip_html | smartify -%}
|
|
12
|
+
{%- else -%}
|
|
13
|
+
{%- assign description = site.description | smartify -%}
|
|
14
|
+
{%- endif -%}
|
|
15
|
+
{%- if page.layout == 'post' or page.layout == 'page' -%}
|
|
16
|
+
{%- assign open_graph_type = 'article' -%}
|
|
17
|
+
{%- else -%}
|
|
18
|
+
{%- assign open_graph_type = 'website' -%}
|
|
19
|
+
{%- endif %}
|
|
20
|
+
<title>{{ html_title }}</title>
|
|
21
|
+
<meta name="description" content="{{ description }}">
|
|
22
|
+
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
|
23
|
+
<meta name="author" content="{{ site.author.name }}">
|
|
24
|
+
<meta property="og:title" content="{{ meta_title }}">
|
|
25
|
+
<meta property="og:locale" content="{% if page.lang %}{{ page.lang | replace: '-', '_' }}{% elsif site.lang %}{{ site.lang | replace: '-', '_' }}{% else %}{{ 'en' }}{% endif %}">
|
|
26
|
+
<meta property="og:description" content="{{ description }}">
|
|
27
|
+
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
|
28
|
+
<meta property="og:site_name" content="{{ site.title | smartify }}">
|
|
29
|
+
<meta property="og:type" content="{{ open_graph_type }}">
|
|
30
|
+
{%- if page.date %}
|
|
31
|
+
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
|
32
|
+
{%- if page.last_modified_at and page.last_modified_at != page.date %}
|
|
33
|
+
<meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
|
|
34
|
+
{%- endif -%}
|
|
35
|
+
{%- endif %}
|
data/_layouts/default.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
|
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 %}
|
|
6
5
|
{% feed_meta %}
|
|
6
|
+
{% include seo.html %}
|
|
7
7
|
{% include_cached style.html %}
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
data/_layouts/error.html
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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>
|
data/_layouts/redirect.html
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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
|
<meta http-equiv="refresh" content="0; url={{ page.redirect.to | absolute_url }}">
|
|
3
6
|
<title>{{ site.theme_settings.redirect_page_title | default: "Redirecting…" | smartify }}</title>
|
|
4
7
|
<link rel="canonical" href="{{ page.redirect.to | absolute_url }}">
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-nix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Nordmeyer
|
|
@@ -85,32 +85,46 @@ dependencies:
|
|
|
85
85
|
- - "~>"
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
87
|
version: '1.4'
|
|
88
|
+
- !ruby/object:Gem::Dependency
|
|
89
|
+
name: logger
|
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
|
91
|
+
requirements:
|
|
92
|
+
- - ">="
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '0'
|
|
95
|
+
type: :runtime
|
|
96
|
+
prerelease: false
|
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - ">="
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
88
102
|
- !ruby/object:Gem::Dependency
|
|
89
103
|
name: bundler
|
|
90
104
|
requirement: !ruby/object:Gem::Requirement
|
|
91
105
|
requirements:
|
|
92
|
-
- - "
|
|
106
|
+
- - ">="
|
|
93
107
|
- !ruby/object:Gem::Version
|
|
94
108
|
version: '2.4'
|
|
95
109
|
type: :development
|
|
96
110
|
prerelease: false
|
|
97
111
|
version_requirements: !ruby/object:Gem::Requirement
|
|
98
112
|
requirements:
|
|
99
|
-
- - "
|
|
113
|
+
- - ">="
|
|
100
114
|
- !ruby/object:Gem::Version
|
|
101
115
|
version: '2.4'
|
|
102
116
|
- !ruby/object:Gem::Dependency
|
|
103
117
|
name: rake
|
|
104
118
|
requirement: !ruby/object:Gem::Requirement
|
|
105
119
|
requirements:
|
|
106
|
-
- - "
|
|
120
|
+
- - ">="
|
|
107
121
|
- !ruby/object:Gem::Version
|
|
108
122
|
version: '13.0'
|
|
109
123
|
type: :development
|
|
110
124
|
prerelease: false
|
|
111
125
|
version_requirements: !ruby/object:Gem::Requirement
|
|
112
126
|
requirements:
|
|
113
|
-
- - "
|
|
127
|
+
- - ">="
|
|
114
128
|
- !ruby/object:Gem::Version
|
|
115
129
|
version: '13.0'
|
|
116
130
|
email:
|
|
@@ -123,8 +137,9 @@ files:
|
|
|
123
137
|
- LICENSE
|
|
124
138
|
- README.md
|
|
125
139
|
- _config.yml
|
|
126
|
-
- _includes/head.html
|
|
140
|
+
- _includes/default-head.html
|
|
127
141
|
- _includes/header.html
|
|
142
|
+
- _includes/seo.html
|
|
128
143
|
- _includes/style.html
|
|
129
144
|
- _layouts/default.html
|
|
130
145
|
- _layouts/error.html
|
|
@@ -153,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
168
|
- !ruby/object:Gem::Version
|
|
154
169
|
version: 3.4.0
|
|
155
170
|
requirements: []
|
|
156
|
-
rubygems_version:
|
|
171
|
+
rubygems_version: 4.0.7
|
|
157
172
|
specification_version: 4
|
|
158
173
|
summary: A very minimalist, single-author Jekyll theme with almost default browser
|
|
159
174
|
styling, and a dark mode.
|