jekyll-theme-nix 1.0.6 → 1.0.8

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: dba287150f7f2b20cd4d4660ebdac5ccfeebf53808e92fdbc9dbce1097b3092b
4
- data.tar.gz: a42c08d2333caa7304b7c3a1b4634d57ff56ce8dc26606b37a2b9db6d8d8cd02
3
+ metadata.gz: f40c9abf12b9b0a2682935d71d972d20638ef679ff90d79deedd9720f8e57957
4
+ data.tar.gz: 9e2af799fe0563994ead0d004abf5b17dedda878450812594c1c764a862d2826
5
5
  SHA512:
6
- metadata.gz: b6b019754095945877b727c71965d18c2cbce90fc1426fe69604702c7e1733339580dc99693555c29f7512b2bc89722acf0c242fe390e84d2a8a7f3b72d21d3d
7
- data.tar.gz: aa6e86e361476b5a3496f571c252c7885f078dad63d6f83e93159c88d2f4f9dfdfddeaa6ebb63dcda8873046a6b2f766292c7f887bc2ae9d9f027b032730f51e
6
+ metadata.gz: 6ab96342307ed9e93dfd9257e89f6d25d481ece5693c6d79124fa838c7a624d00c6521105762b406cdfc3f0543179461e0f3b22d6a0d7026e440cad13dc4badb
7
+ data.tar.gz: 2853cabd28e2d02b483507d9ec7df9344ca2b564374ef13baea02ddd6129261b03d5e9801db851b413bc620c226857f456c72eb456ac9c618b4e1d4c615f008d
data/_config.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  ## Remove URL for Github Pages
2
2
  url: https://jekyll-theme-nix.michaelnordmeyer.com
3
3
  icon: /icon.webp
4
+ icon_dark: /icon-dark.webp
4
5
  icon_type: image/webp
5
6
  title: Jekyll Theme Nix
6
7
  author:
@@ -3,7 +3,8 @@
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="{{ site.icon_type }}" href="{{ site.icon | relative_url }}">
6
+ <link rel="icon" type="{{ site.icon_type }}" media="(prefers-color-scheme: light)" href="{{ site.icon | relative_url }}">
7
+ <link rel="icon" type="{{ site.icon_type }}" media="(prefers-color-scheme: dark)" href="{{ site.icon_dark | relative_url }}">
7
8
  <style>
8
9
  :root { color-scheme: light dark; }
9
10
  html {
@@ -21,10 +22,11 @@
21
22
  blockquote { margin: 1em 1.5em 1em 0.5em; padding-left: 1em; border-left: 1px solid lightgrey; }
22
23
  sub, sup { line-height: 0; }
23
24
  hr { border: 0; border-top: 1px solid; }
25
+ h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
24
26
  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; }
27
+ body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em; text-align: center; font-size: 2rem; font-weight: bold; }
26
28
  body > main > ul { padding: 0; }
27
- body > main > ul > li { margin: 0.5em 0; list-style-type: none; line-height: 1.25em; }
29
+ body > main > ul > li { margin: 0.5em 0; list-style-type: none; line-height: 1.25; }
28
30
  body > main > ul > li time { font-size: small; }
29
31
  article > header { margin-bottom: 2rem; }
30
32
  article > header > h1 { margin-bottom: 0; }
data/_layouts/error.html CHANGED
@@ -3,7 +3,8 @@
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="{{ site.icon_type }}" href="{{ site.icon | relative_url }}">
6
+ <link rel="icon" type="{{ site.icon_type }}" media="(prefers-color-scheme: light)" href="{{ site.icon | relative_url }}">
7
+ <link rel="icon" type="{{ site.icon_type }}" media="(prefers-color-scheme: dark)" href="{{ site.icon_dark | relative_url }}">
7
8
  <style>
8
9
  :root { color-scheme: light dark; }
9
10
  html {
@@ -13,10 +14,10 @@
13
14
  font: 1rem / 1.5 sans-serif;
14
15
  }
15
16
  body { margin: 0; }
16
- body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em;text-align: center; font-size: 2rem; font-weight: bold; }
17
+ body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em; text-align: center; font-size: 2rem; font-weight: bold; }
17
18
  article > header { margin-bottom: 2rem; }
18
19
  article > header > h1 { margin-bottom: 0; }
19
- article h1 { font-size: 2rem; }
20
+ article h1 { font-size: 2rem; line-height: 1.2; }
20
21
  @media (prefers-color-scheme: dark) {
21
22
  html { background-color: black; color: white; }
22
23
  a { color: lightskyblue; }
@@ -30,7 +31,7 @@
30
31
  </head>
31
32
  <body>
32
33
  <header>
33
- <a rel="author" href="{{ '/' | relative_url }}">{{ site.title }}</a>
34
+ <a rel="author" href="{{ '/' | relative_url }}" accesskey="h" title="Home">{{ site.title }}</a>
34
35
  </header>
35
36
  <main aria-label="Content">
36
37
  <article itemscope itemtype="https://schema.org/WebPage">
data/_layouts/page.html CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
  <header>
5
- <a rel="author" href="{{ '/' | relative_url }}">{{ site.title }}</a>
5
+ <a rel="author" href="{{ '/' | relative_url }}" accesskey="h" title="Home">{{ site.title }}</a>
6
6
  </header>
7
7
  <main aria-label="Content">
8
8
  <article itemscope itemtype="https://schema.org/WebPage">
data/_layouts/post.html CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
  <header>
5
- <a rel="author" href="{{ '/' | relative_url }}">{{ site.title }}</a>
5
+ <a rel="author" href="{{ '/' | relative_url }}" accesskey="h" title="Home">{{ site.title }}</a>
6
6
  </header>
7
7
  <main aria-label="Content">
8
8
  <article itemscope itemtype="https://schema.org/BlogPosting">
data/feed.xml CHANGED
@@ -1,12 +1,11 @@
1
1
  ---
2
2
  permalink: /feed.xml
3
- redirect_from: /feed
4
3
  sitemap: false
5
4
  layout: none
6
5
  ---
7
6
  <?xml version="1.0" encoding="utf-8"?>
8
7
  {% if page.xsl %}
9
- <?xml-stylesheet type="text/xml" href="{{ '/feed.xslt.xml' | absolute_url }}"?>
8
+ <?xml-stylesheet type="text/xml" href="{{ '/feed.xslt' | absolute_url }}"?>
10
9
  {% endif %}
11
10
  <feed xmlns="http://www.w3.org/2005/Atom" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}>
12
11
  <link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
@@ -26,10 +25,10 @@ layout: none
26
25
  {%- assign title = title | append: site.title_separator | append: category -%}
27
26
  {%- endif -%}
28
27
  {%- if title %}
29
- <title>{{ title | smartify | xml_escape }}</title>
28
+ <title>{{ title | strip_html | normalize_whitespace | smartify }}</title>
30
29
  {%- endif -%}
31
30
  {%- if site.description %}
32
- <subtitle>{{ site.description | smartify }}</subtitle>
31
+ <subtitle>{{ site.description | strip_html | normalize_whitespace | smartify }}</subtitle>
33
32
  {%- endif -%}
34
33
  {%- if site.author %}
35
34
  <author>
@@ -62,7 +61,7 @@ layout: none
62
61
  {%- assign posts_limit = site.feed.posts_limit | default: 10 -%}
63
62
  {%- for post in posts limit: posts_limit %}
64
63
  <entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
65
- {%- assign post_title = post.title | smartify | strip_html | normalize_whitespace %}
64
+ {%- assign post_title = post.title | strip_html | normalize_whitespace | smartify %}
66
65
  <title>{{ post_title }}</title>
67
66
  <link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post_title }}" />
68
67
  <published>{{ post.date | date_to_xmlschema }}</published>
@@ -97,7 +96,7 @@ layout: none
97
96
  {%- endfor -%}
98
97
  {%- assign post_summary = post.description | default: post.excerpt -%}
99
98
  {%- if post_summary and post_summary != empty %}
100
- <summary><![CDATA[{{ post_summary | strip_html | normalize_whitespace | smartify | replace: "&amp;", "&" | replace: "&lt;", "<" | replace: "&gt;", ">" }}]]></summary>
99
+ <summary>{{ post_summary | strip_html | normalize_whitespace | smartify }}</summary>
101
100
  {%- endif -%}
102
101
 
103
102
  {%- assign post_image = post.image.path | default: post.image -%}
@@ -110,7 +109,7 @@ layout: none
110
109
  {%- endif -%}
111
110
  {%- assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only -%}
112
111
  {%- unless excerpt_only %}
113
- <content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"><![CDATA[{{ post.content | strip | smartify }}]]></content>
112
+ <content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"><![CDATA[{{ post.content | smartify }}]]></content>
114
113
  {%- endunless %}
115
114
  </entry>
116
115
  {%- endfor %}
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.6
4
+ version: 1.0.8
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-05 00:00:00.000000000 Z
11
+ date: 2023-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll