jekyll-theme-nix 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/_config.yml +3 -1
- data/_layouts/default.html +3 -5
- data/_layouts/error.html +3 -2
- data/feed.xml +9 -4
- data/sitemap.xml +23 -23
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba287150f7f2b20cd4d4660ebdac5ccfeebf53808e92fdbc9dbce1097b3092b
|
4
|
+
data.tar.gz: a42c08d2333caa7304b7c3a1b4634d57ff56ce8dc26606b37a2b9db6d8d8cd02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6b019754095945877b727c71965d18c2cbce90fc1426fe69604702c7e1733339580dc99693555c29f7512b2bc89722acf0c242fe390e84d2a8a7f3b72d21d3d
|
7
|
+
data.tar.gz: aa6e86e361476b5a3496f571c252c7885f078dad63d6f83e93159c88d2f4f9dfdfddeaa6ebb63dcda8873046a6b2f766292c7f887bc2ae9d9f027b032730f51e
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ It also changes as little as possible from the default browser settings to impro
|
|
8
8
|
|
9
9
|
[Demo](https://jekyll-theme-nix.michaelnordmeyer.com/)
|
10
10
|
|
11
|
-
If this theme feels to bloated to you, you can try [
|
11
|
+
If this theme feels to bloated to you, you can try [“Nixer”](https://github.com/michaelnordmeyer/jekyll-theme-nixer), the ultra-minimalistic version of “Nix”.
|
12
12
|
|
13
13
|
## Limited Features
|
14
14
|
|
@@ -42,9 +42,9 @@ The favicon is currently `icon.webp` for the light mode, and there's also a dark
|
|
42
42
|
|
43
43
|
### Nix?
|
44
44
|
|
45
|
-
|
45
|
+
“Nix” is the grammatically incorrect form of the German “nichts”, which in English means “nothing”. It's colloquially used to stress the nothingness.
|
46
46
|
|
47
|
-
Or, if you will, it could be UNIX without the
|
47
|
+
Or, if you will, it could be UNIX without the “U”, because of the theme's somewhat archaic properties.
|
48
48
|
|
49
49
|
## Installation
|
50
50
|
|
data/_config.yml
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
## Remove URL for Github Pages
|
2
2
|
url: https://jekyll-theme-nix.michaelnordmeyer.com
|
3
|
+
icon: /icon.webp
|
4
|
+
icon_type: image/webp
|
3
5
|
title: Jekyll Theme Nix
|
4
6
|
author:
|
5
7
|
name: Michael Nordmeyer
|
@@ -8,7 +10,7 @@ description: "A barebones theme for Jekyll"
|
|
8
10
|
|
9
11
|
timezone: Europe/Berlin
|
10
12
|
ignore_theme_config: true
|
11
|
-
exclude: [
|
13
|
+
exclude: [jekyll-theme-nix*, LICENSE, README.md]
|
12
14
|
date_format: "%Y-%m-%d"
|
13
15
|
|
14
16
|
plugins:
|
data/_layouts/default.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
-
<link rel="icon" type="
|
6
|
+
<link rel="icon" type="{{ site.icon_type }}" href="{{ site.icon | relative_url }}">
|
7
7
|
<style>
|
8
8
|
:root { color-scheme: light dark; }
|
9
9
|
html {
|
@@ -19,17 +19,16 @@
|
|
19
19
|
img { display: block; max-width: 100%; height: auto; }
|
20
20
|
figure { margin: 0; text-align: center; font-size: small; }
|
21
21
|
blockquote { margin: 1em 1.5em 1em 0.5em; padding-left: 1em; border-left: 1px solid lightgrey; }
|
22
|
-
code { font-size: 1.125em; }
|
23
22
|
sub, sup { line-height: 0; }
|
24
23
|
hr { border: 0; border-top: 1px solid; }
|
25
24
|
body > header > h1 { margin-bottom: 2rem; text-align: center; }
|
25
|
+
body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em;text-align: center; font-size: 2rem; font-weight: bold; }
|
26
26
|
body > main > ul { padding: 0; }
|
27
27
|
body > main > ul > li { margin: 0.5em 0; list-style-type: none; line-height: 1.25em; }
|
28
28
|
body > main > ul > li time { font-size: small; }
|
29
|
-
body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em;text-align: center; font-size: 2rem; font-weight: bold; }
|
30
29
|
article > header { margin-bottom: 2rem; }
|
31
30
|
article > header > h1 { margin-bottom: 0; }
|
32
|
-
article h1 {
|
31
|
+
article h1 { font-size: 2rem; }
|
33
32
|
header > time { display: block; color: grey; }
|
34
33
|
@media (prefers-color-scheme: dark) {
|
35
34
|
html { background-color: black; color: white; }
|
@@ -39,7 +38,6 @@
|
|
39
38
|
th, td { border-color: grey; }
|
40
39
|
}
|
41
40
|
.footnotes { margin: 0; font-size: small; }
|
42
|
-
.footnotes ol { padding-inline-start: 30px; }
|
43
41
|
</style>
|
44
42
|
<meta name="theme-color" content="#white">
|
45
43
|
<title>{%- if page.title -%}{{ page.title | smartify }} • {{ site.title | smartify }}{%- else -%}{{ site.title | smartify }} • {{ site.description | smartify }}{%- endif -%}</title>
|
data/_layouts/error.html
CHANGED
@@ -3,8 +3,9 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
-
<link rel="icon" type="
|
6
|
+
<link rel="icon" type="{{ site.icon_type }}" href="{{ site.icon | relative_url }}">
|
7
7
|
<style>
|
8
|
+
:root { color-scheme: light dark; }
|
8
9
|
html {
|
9
10
|
max-width: 43rem;
|
10
11
|
margin: 0 auto;
|
@@ -15,7 +16,7 @@
|
|
15
16
|
body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em;text-align: center; font-size: 2rem; font-weight: bold; }
|
16
17
|
article > header { margin-bottom: 2rem; }
|
17
18
|
article > header > h1 { margin-bottom: 0; }
|
18
|
-
article h1 {
|
19
|
+
article h1 { font-size: 2rem; }
|
19
20
|
@media (prefers-color-scheme: dark) {
|
20
21
|
html { background-color: black; color: white; }
|
21
22
|
a { color: lightskyblue; }
|
data/feed.xml
CHANGED
@@ -13,6 +13,9 @@ layout: none
|
|
13
13
|
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/>
|
14
14
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
15
15
|
<id>{{ page.url | absolute_url | xml_escape }}</id>
|
16
|
+
{%- if site.icon %}
|
17
|
+
<icon>{{ site.icon | absolute_url | xml_escape }}</icon>
|
18
|
+
{%- endif -%}
|
16
19
|
{%- assign title = site.title | default: site.name -%}
|
17
20
|
{%- if page.collection and page.collection != "posts" -%}
|
18
21
|
{%- assign collection = page.collection | capitalize -%}
|
@@ -23,7 +26,7 @@ layout: none
|
|
23
26
|
{%- assign title = title | append: site.title_separator | append: category -%}
|
24
27
|
{%- endif -%}
|
25
28
|
{%- if title %}
|
26
|
-
<title
|
29
|
+
<title>{{ title | smartify | xml_escape }}</title>
|
27
30
|
{%- endif -%}
|
28
31
|
{%- if site.description %}
|
29
32
|
<subtitle>{{ site.description | smartify }}</subtitle>
|
@@ -60,7 +63,7 @@ layout: none
|
|
60
63
|
{%- for post in posts limit: posts_limit %}
|
61
64
|
<entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
|
62
65
|
{%- assign post_title = post.title | smartify | strip_html | normalize_whitespace %}
|
63
|
-
<title
|
66
|
+
<title>{{ post_title }}</title>
|
64
67
|
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post_title }}" />
|
65
68
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
66
69
|
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
|
@@ -87,12 +90,14 @@ layout: none
|
|
87
90
|
<category term="{{ category | xml_escape }}" />
|
88
91
|
{%- endfor -%}
|
89
92
|
{%- endif %}
|
90
|
-
{%- for tag in post.tags
|
93
|
+
{%- for tag in post.tags -%}
|
94
|
+
{%- unless post.categories contains tag %}
|
91
95
|
<category term="{{ tag | xml_escape }}" />
|
96
|
+
{%- endunless -%}
|
92
97
|
{%- endfor -%}
|
93
98
|
{%- assign post_summary = post.description | default: post.excerpt -%}
|
94
99
|
{%- if post_summary and post_summary != empty %}
|
95
|
-
<summary
|
100
|
+
<summary><![CDATA[{{ post_summary | strip_html | normalize_whitespace | smartify | replace: "&", "&" | replace: "<", "<" | replace: ">", ">" }}]]></summary>
|
96
101
|
{%- endif -%}
|
97
102
|
|
98
103
|
{%- assign post_image = post.image.path | default: post.image -%}
|
data/sitemap.xml
CHANGED
@@ -8,37 +8,37 @@ layout: none
|
|
8
8
|
<?xml-stylesheet type="text/xsl" href="{{ "/sitemap.xsl" | absolute_url }}"?>
|
9
9
|
{%- endif %}
|
10
10
|
<urlset
|
11
|
-
xmlns:xsi="
|
12
|
-
xsi:schemaLocation="
|
13
|
-
xmlns="
|
11
|
+
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
|
12
|
+
xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
|
13
|
+
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
14
14
|
{%- assign collections = site.collections | where_exp:'collection','collection.output != false' -%}
|
15
15
|
{%- for collection in collections -%}
|
16
16
|
{%- assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' -%}
|
17
17
|
{%- for doc in docs %}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
{
|
18
|
+
<url>
|
19
|
+
<loc>{{ doc.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
|
20
|
+
{%- if doc.last_modified_at or doc.date %}
|
21
|
+
<lastmod>{{ doc.last_modified_at | default: doc.date | date_to_xmlschema }}</lastmod>
|
22
|
+
{%- endif %}
|
23
|
+
</url>
|
24
|
+
{%- endfor -%}
|
25
25
|
{%- endfor -%}
|
26
26
|
|
27
27
|
{%- assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' -%}
|
28
28
|
{%- for page in pages %}
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
{
|
29
|
+
<url>
|
30
|
+
<loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
|
31
|
+
{%- if page.last_modified_at %}
|
32
|
+
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
|
33
|
+
{%- endif %}
|
34
|
+
</url>
|
35
|
+
{%- endfor -%}
|
36
36
|
|
37
37
|
{%- assign static_files = page.static_files | where_exp:'page','page.sitemap != false' | where_exp:'page','page.name != "404.html"' -%}
|
38
38
|
{%- for file in static_files %}
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
{
|
44
|
-
</urlset>
|
39
|
+
<url>
|
40
|
+
<loc>{{ file.path | absolute_url | xml_escape }}</loc>
|
41
|
+
<lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
|
42
|
+
</url>
|
43
|
+
{%- endfor %}
|
44
|
+
</urlset>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-nix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Nordmeyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.4.
|
69
|
+
rubygems_version: 3.4.17
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: A very minimalistic, single-author Jekyll theme with almost default browser
|