jekyll-theme-nixer 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/sitemap.xml +44 -0
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87216de2094f62232b0337d262666b55ce0bab6b412f415ea87bfbd5a45ded42
|
4
|
+
data.tar.gz: 3ffb4be1d8ac02a05c1f9c4add7c1d69fc49e0c6bdea55a30cab54e445304689
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81208af2c4d451847a0b99cf3fb4b9f171bc80b0a8a6b908e5abe9ebfd25bc066e33344956bb45947f750d738c5886a17b73544905a52ccfc69262572cddec73
|
7
|
+
data.tar.gz: a5133f2f4dec2755b1ef4c10b8bb6429334c337b37cb8753fdad9d479c397c196141c204b22ff09d20023955f4f0c06b6ba2fc45b1e64da6ef2be0be1176e0cd
|
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
|
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.
|
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.
|
4
|
+
version: 1.0.3
|
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-03-06 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:
|
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: '
|
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:
|