jekyll-theme-nixer 1.0.6 → 1.1.0

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: bee1d0cefc57095913a0cee26b45b6e13c31e02d90477dc6ce59de26341c65db
4
- data.tar.gz: 6d52661935e39abd8bfe443eabb732aff3d675d593a3414636c47497185e729f
3
+ metadata.gz: fdafe802b533b71fd5e994d667349bb6581f1f6b4403a43d990d5a457118bd9b
4
+ data.tar.gz: 7018a5006a3efa24cf1644fb753f7135236541cc600db6d44e7dede4b2e75358
5
5
  SHA512:
6
- metadata.gz: 6bb62f25f4043ed214c23153085c322dd123b40befa9a83e1f63e4a6549a5c7e0e19faba001f4c95530f01c324ec97dd9962b6e008ed5d64e651fea8bf21e530
7
- data.tar.gz: 0b1551971bd8d5773789467c9fce472d95dca26076efba2b47912818c79af0e46fbc7a2b732b78415ae13588d375f718ec2c5042b86f638e7f694a79eaedc778
6
+ metadata.gz: 1e66dc41552353defcdc11f6f84cf87cedd33f9a2ab0639bb4fdfd06435eedfe49caba0538a9f2321ee79d7282b1f1a9309be1c3b36dc554161998556d4fc2d2
7
+ data.tar.gz: 0d86e9f31936fe960b5b37a0bfa364bc189ffba87a9f450b037adc844b63c62e7bf230e04126c19ba34844094219bfb729ffcabc526ffd6100f0ce19d82c1ac9
data/README.md CHANGED
@@ -19,7 +19,7 @@ If you think this goes too far, use the above mentioned [Jekyll theme “Nix”]
19
19
  - Dark mode, because we want to be respectful
20
20
  - Posts, but no backlink to homepage
21
21
  - No Pages, except custom error pages
22
- - No visible authors, dates, categories, or tags
22
+ - No visible authors, dates, categories, or tags on posts and pages
23
23
  - No header or footer
24
24
  - No pagination for the home page
25
25
  - No feed.xml
@@ -58,7 +58,9 @@ Or, if you will, it could be UNIX without the “U”, because of the theme's so
58
58
 
59
59
  ## Installation
60
60
 
61
- Installation from Gem is recommended, but using a remote theme is also possible, even though it will increase build time a little, depending on your internet connection.
61
+ Installation from Gem is recommended, but using a remote theme is also possible, even though it will increase build time a little, depending on your internet connection, because the theme will be downloaded during each build. Gems are installed locally.
62
+
63
+ GitHub pages gem users need to use the remote theme method.
62
64
 
63
65
  ### Installation from Gem
64
66
 
@@ -74,7 +76,7 @@ And add this line to your Jekyll site's `_config.yml`:
74
76
  theme: jekyll-theme-nixer
75
77
  ```
76
78
 
77
- Make sure that this is the only `theme:` in `_config.yml`. Afterwards run `bundle install`.
79
+ Make sure that this is the only `theme:` in `_config.yml`, and that there are no other `remote-theme:`. Afterwards run `bundle install`, and `bundle update` to update it, if there's a new version.
78
80
 
79
81
  ### Installation as Remote Theme
80
82
 
@@ -96,6 +98,6 @@ Finally, add `jekyll-remote-theme` to your plugin section in `_config.yml` as we
96
98
 
97
99
  ## Sitemap.xml
98
100
 
99
- A `sitemap.xml` is already included in the theme and doesn't need a dependency to `jekyll-sitemap`. For a standard Jekyll installation, it works out-of-the-box.
101
+ A `sitemap.xml` is already included in the theme and doesn't need a dependency to the `jekyll-sitemap` plugin. For a standard Jekyll installation, it works out-of-the-box if this files is copied to the Jekyll directory.
100
102
 
101
103
  If hosted with the Github pages plugin, this plugin is already included and will automatically be used instead. To overwrite this, the file has to be copied manually from the theme's repository root to the site's repository root.
data/_config.yml CHANGED
@@ -1,24 +1,42 @@
1
1
  ### Remove URL for Github Pages
2
2
  url: https://jekyll-theme-nixer.michaelnordmeyer.com
3
- icon: /icon.webp
4
- icon_type: image/webp
5
3
  title: Jekyll Theme Nixer
6
4
  description: "An even more barebones theme for Jekyll"
7
5
 
8
- timezone: Europe/Berlin
9
- ignore_theme_config: true
10
- exclude: [jekyll-theme-nixer*, LICENSE, README.md]
11
- date_format: "%Y-%m-%d"
12
-
13
6
  plugins:
14
7
  - jekyll-include-cache
15
8
  # - jekyll-redirect-from
16
9
 
17
10
  ## Jekyll build settings
11
+ exclude: [jekyll-theme-nixer*, LICENSE, Rakefile.rb, README.md]
12
+ ignore_theme_config: true # Since Jekyll 4.0, see: https://jekyllrb.com/docs/themes/#pre-configuring-theme-gems40, https://jekyllrb.com/docs/configuration/options/
18
13
  kramdown:
19
14
  show_warnings: true
20
-
15
+ syntax_highlighter_opts:
16
+ disable: true
17
+ liquid:
18
+ # Configure Liquid’s parser
19
+ error_mode: strict # default: warn
20
+ # Configure Liquid’s renderer
21
+ strict_filters: true # default: false
22
+ # strict_variables: true # default: false
21
23
  permalink: /:title
24
+ sass:
25
+ style: compressed
26
+ strict_front_matter: true # default: false
27
+ timezone: Europe/Berlin # default: local timezone
28
+ # remote_theme: michaelnordmeyer/jekyll-theme-nixer
29
+ # theme: jekyll-theme-nixer
30
+
31
+ ## Custom theme settings to not overwrite anything from Jekyll or plugins
32
+ lang: en-US # default: en (is not by Jekyll, but used by many other plugins)
33
+ theme_settings:
34
+ favicon: /icon.webp # optional, needs to be 180x180
35
+ favicon_dark: /icon-dark.webp # optional, needs to be 180x180
36
+ favicon_media_type: image/webp # mandatory, if favicon is set
37
+ # title_separator: "|" # default: "•"
38
+
39
+ ## https://jekyllrb.com/docs/configuration/front-matter-defaults/
22
40
  defaults:
23
41
  - scope:
24
42
  path: ""
@@ -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.theme_settings.favicon_media_type }}" media="(prefers-color-scheme: light)" href="{{ site.theme_settings.favicon | relative_url }}">
7
+ <link rel="icon" type="{{ site.theme_settings.favicon_media_type }}" media="(prefers-color-scheme: dark)" href="{{ site.theme_settings.favicon_dark | relative_url }}">
7
8
  <style>
8
9
  :root { color-scheme: light dark; }
9
10
  html {
@@ -21,9 +22,10 @@
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
  h1 { font-size: 2rem; text-align: center; }
25
27
  body > main > ul { padding: 0; }
26
- body > main > ul > li { margin: 0.5em 0; list-style-type: none; line-height: 1.25em; }
28
+ body > main > ul > li { margin: 0.5em 0; list-style-type: none; line-height: 1.25; }
27
29
  @media (prefers-color-scheme: dark) {
28
30
  html { background-color: black; color: white; }
29
31
  a { color: lightskyblue; }
@@ -39,7 +41,7 @@
39
41
  </head>
40
42
  <body>
41
43
  <main>
42
- {{ content }}
44
+ {{ content }}
43
45
  </main>
44
46
  </body>
45
47
  </html>
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.theme_settings.favicon_media_type }}" media="(prefers-color-scheme: light)" href="{{ site.theme_settings.favicon | relative_url }}">
7
+ <link rel="icon" type="{{ site.theme_settings.favicon_media_type }}" media="(prefers-color-scheme: dark)" href="{{ site.theme_settings.favicon_dark | relative_url }}">
7
8
  <style>
8
9
  :root { color-scheme: light dark; }
9
10
  html {
@@ -13,7 +14,7 @@
13
14
  font: 1rem / 1.5 sans-serif;
14
15
  }
15
16
  body { margin: 0; }
16
- h1 { margin-block-start: 0.83em; margin-block-end: 0.83em; text-align: center; }
17
+ h1 { margin-block-start: 0.83em; margin-block-end: 0.83em; text-align: center; line-height: 1.2; }
17
18
  @media (prefers-color-scheme: dark) {
18
19
  html { background-color: black; color: white; }
19
20
  a { color: lightskyblue; }
data/_layouts/post.html CHANGED
@@ -5,5 +5,5 @@ layout: default
5
5
  <header>
6
6
  <h1>{{ page.title | smartify }}</h1>
7
7
  </header>
8
- {{ content }}
8
+ {{ content }}
9
9
  </article>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.1.0
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: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jekyll-include-cache
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.2.1
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.2.1
33
47
  description:
34
48
  email:
35
49
  - michaelnordmeyer@users.noreply.github.com
@@ -44,7 +58,6 @@ files:
44
58
  - _layouts/error.html
45
59
  - _layouts/home.html
46
60
  - _layouts/post.html
47
- - sitemap.xml
48
61
  homepage: https://github.com/michaelnordmeyer/jekyll-theme-nixer
49
62
  licenses:
50
63
  - MIT
@@ -65,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
78
  - !ruby/object:Gem::Version
66
79
  version: '0'
67
80
  requirements: []
68
- rubygems_version: 3.4.17
81
+ rubygems_version: 3.5.3
69
82
  signing_key:
70
83
  specification_version: 4
71
84
  summary: A hard-core minimalistic, single-author Jekyll theme with almost default
data/sitemap.xml DELETED
@@ -1,44 +0,0 @@
1
- ---
2
- permalink: /sitemap.xml
3
- sitemap: false
4
- layout: none
5
- ---
6
- <?xml version="1.0" encoding="UTF-8"?>
7
- {%- if page.xsl %}
8
- <?xml-stylesheet type="text/xsl" href="{{ "/sitemap.xsl" | absolute_url }}"?>
9
- {%- endif %}
10
- <urlset
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
- {%- assign collections = site.collections | where_exp:'collection','collection.output != false' -%}
15
- {%- for collection in collections -%}
16
- {%- assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' -%}
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 -%}
25
- {%- endfor -%}
26
-
27
- {%- assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' -%}
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 -%}
36
-
37
- {%- assign static_files = page.static_files | where_exp:'page','page.sitemap != false' | where_exp:'page','page.name != "404.html"' -%}
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>