jekyll-theme-nixer 1.0.1 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/_layouts/default.html +1 -0
  4. data/sitemap.xml +44 -0
  5. metadata +16 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b90634b121df16d8f19217e051de8c5c11d7086b2d39f5c3469fa3a77c2c4886
4
- data.tar.gz: af5c56a748c9517d46a56ffedc30495643662661f4ed00247067cf0379c09845
3
+ metadata.gz: 0d7dd129418121b8e5a39c517c07caea19037a6514a6610f37514c2333775b60
4
+ data.tar.gz: 32ee6643195c7dd4d0433040bbe608706774df12a6f69d0f53f1bf332b4bdcba
5
5
  SHA512:
6
- metadata.gz: 44e0da3d6900051285633812e89b66c88930a04c97335bb4ca58bb475f0c1f699d189d6e95738db56e8f1409486f88eed0e44905aa873f9f05c6c94da1bc8035
7
- data.tar.gz: b13672904bce209297906c6103fa757b51dc0bcf2d64677f20a634e41ef7cfd2fe144762a14d7eb68d215230a2cee9f7f8af23bf7eed71d3116b28730842eeb0
6
+ metadata.gz: 0e50b0c7f697b7df0a23d3ca03c9540fd774e5df849f7382ee79db6a86026721787a7cb57939420db5ddc8d3de4c2eb4642f20c4104b8bd26e2c776d27fa5d6b
7
+ data.tar.gz: 517c2e1eeb4963980245b139eba3439d471f664d61edc9b37c0ca91121d1f608ae948e84ad81e54baf26850ebf897478171ddd66ff546300c8e36b6b87118181
data/README.md CHANGED
@@ -74,7 +74,7 @@ And add this line to your Jekyll site's `_config.yml`:
74
74
  theme: jekyll-theme-nixer
75
75
  ```
76
76
 
77
- Make sure that this is the only `theme:` in `_config.yml`. Afterwards run `bundle update`.
77
+ Make sure that this is the only `theme:` in `_config.yml`. Afterwards run `bundle install`.
78
78
 
79
79
  ### Installation as Remote Theme
80
80
 
@@ -93,3 +93,9 @@ remote_theme: michaelnordmeyer/jekyll-theme-nixer
93
93
  Make sure that this is the only `remote_theme:` in `_config.yml`, and that there are no other `theme:`.
94
94
 
95
95
  Finally, add `jekyll-remote-theme` to your plugin section in `_config.yml` as well.
96
+
97
+ ## Sitemap.xml
98
+
99
+ A s`itemap.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.
100
+
101
+ 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.
@@ -5,6 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <link rel="icon" type="image/webp" href="{{ '/icon.webp' | 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/sitemap.xml ADDED
@@ -0,0 +1,44 @@
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="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">
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>
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.4
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-02-26 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.3'
19
+ version: 3.9.3
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 3.9.3
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '4.3'
32
+ version: '5.0'
27
33
  description:
28
34
  email:
29
35
  - michaelnordmeyer@users.noreply.github.com
@@ -38,10 +44,12 @@ files:
38
44
  - _layouts/error.html
39
45
  - _layouts/home.html
40
46
  - _layouts/post.html
47
+ - sitemap.xml
41
48
  homepage: https://github.com/michaelnordmeyer/jekyll-theme-nixer
42
49
  licenses:
43
50
  - MIT
44
- metadata: {}
51
+ metadata:
52
+ plugin_type: theme
45
53
  post_install_message:
46
54
  rdoc_options: []
47
55
  require_paths:
@@ -57,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
65
  - !ruby/object:Gem::Version
58
66
  version: '0'
59
67
  requirements: []
60
- rubygems_version: 3.4.7
68
+ rubygems_version: 3.4.12
61
69
  signing_key:
62
70
  specification_version: 4
63
71
  summary: A hard-core minimalistic, single-author Jekyll theme with almost default