jekyll-theme-nix 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47e0b2c0c75f01180f751e87b5c7968090cd261892bb6d8a06ec91dfa8878076
4
- data.tar.gz: 481f8abf6c437aebc8c31c0ed7a502ecbf17087248a334dc1b4b69cc7d459077
3
+ metadata.gz: fee28d62426e4a6fec250fda44ceb1a03c49cc3cd59ba11489748e93e5adbd3c
4
+ data.tar.gz: eded20d89e23a1eeccb052568f68b4470cc4685781517c78ec73215f5c73e12f
5
5
  SHA512:
6
- metadata.gz: c324edc95b338b40a54d165031cb4c4d6d0ac0cde74b698a7847911f74f55b28d60f56c24acff796ca2b201b4fca8c24d7bb55ae21bdff4d757f5d4f271caefd
7
- data.tar.gz: 84533d6c42dba6a82a9c205f7f734cdacf28e6088133bdc8946a73080f26eeb8bba1e55bd714ff173e28c03e222d004c65e9f6c70feab940df4dfbe7169c7f41
6
+ metadata.gz: 97d8355a72857ccf647907ba4aff08df5a6e950b28ee2151f46ee964c4e6a63e949d5adc48ad389083e3ccce0a3a91b63ba59d61b5adbc0fa99e7b10842c99e3
7
+ data.tar.gz: fc76bc955934ca1dceab6e684427f250894751bae5e363c97df1780c4bc350662bdfc7d2ff7519c10d54e4c410405f5af982e00b3bb8e98fe19de4c26a58dd1b
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 [<q>Nixer</q>](https://github.com/michaelnordmeyer/jekyll-theme-nixer), the ultra-minimalistic version of <q>Nix</q>.
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
- <q>Nix</q> is the grammatically incorrect form of the German <q>nichts</q>, which in English means <q>nothing</q>. It's colloquially used to stress the nothingness.
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 <q>U</q>, because of the theme's somewhat archaic properties.
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: [CNAME, Gemfile, Gemfile.lock, LICENSE, README.md]
13
+ exclude: [jekyll-theme-nix*, LICENSE, README.md]
12
14
  date_format: "%Y-%m-%d"
13
15
 
14
16
  plugins:
@@ -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="image/webp" href="{{ '/icon.webp' | relative_url }}">
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 {
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="image/webp" href="{{ '/icon.webp' | relative_url }}">
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;
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 type="html">{{ title | smartify | xml_escape }}</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 type="html">{{ post_title }}</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 type="html"><![CDATA[{{ post_summary | strip_html | normalize_whitespace | smartify }}]]></summary>
100
+ <summary><![CDATA[{{ post_summary | strip_html | normalize_whitespace | smartify | replace: "&amp;", "&" | replace: "&lt;", "<" | replace: "&gt;", ">" }}]]></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="http://www.w3.org/2001/XMLSchema-instance"
12
- xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
13
- xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
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
- <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 -%}
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
- <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 -%}
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
- <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>
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
4
+ version: 1.0.5
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-04-27 00:00:00.000000000 Z
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.12
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