jekyll-theme-nixer 1.0.0 → 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 +11 -3
- 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
@@ -1,16 +1,18 @@
|
|
1
1
|
# Jekyll Theme Nixer
|
2
2
|
|
3
|
-
The even more barebones cousin of the barebones [
|
3
|
+
The even more barebones cousin of the barebones theme [<q>Nix</q>](https://github.com/michaelnordmeyer/jekyll-theme-nix) for [Jekyll](https://github.com/jekyll/jekyll), which doesn't need any dependencies except `jekyll-redirect-from`, if you want to redirect pages. It is optimized for fast build speeds as well.
|
4
4
|
|
5
5
|
Its purpose is to be a hard-core minimalistic, single-author theme while not displaying anything more than just the content of posts and a list of posts.
|
6
6
|
|
7
7
|
It also changes as little as possible from the default browser settings to improve legibility.
|
8
8
|
|
9
|
+
[Demo](https://jekyll-theme-nixer.michaelnordmeyer.com/)
|
10
|
+
|
9
11
|
It is meant for people, who are aware that nobody is using RSS feeds anymore. Either because they don't know what they are or how to use them, or they replaced Google Reader with Social Media. So all visitors are coming from search engines – let's be honest, Google – and won't read other posts, unless they are linked in the post itself.
|
10
12
|
|
11
13
|
And people coming from hacker news or related sites know how to change the URL in the browser's address bar.
|
12
14
|
|
13
|
-
If you think this goes too far, use the above mentioned [Jekyll
|
15
|
+
If you think this goes too far, use the above mentioned [Jekyll theme <q>Nix</q>](https://github.com/michaelnordmeyer/jekyll-theme-nix) instead.
|
14
16
|
|
15
17
|
## Limited Features
|
16
18
|
|
@@ -72,7 +74,7 @@ And add this line to your Jekyll site's `_config.yml`:
|
|
72
74
|
theme: jekyll-theme-nixer
|
73
75
|
```
|
74
76
|
|
75
|
-
Make sure that this is the only `theme:` in `_config.yml`.
|
77
|
+
Make sure that this is the only `theme:` in `_config.yml`. Afterwards run `bundle install`.
|
76
78
|
|
77
79
|
### Installation as Remote Theme
|
78
80
|
|
@@ -91,3 +93,9 @@ remote_theme: michaelnordmeyer/jekyll-theme-nixer
|
|
91
93
|
Make sure that this is the only `remote_theme:` in `_config.yml`, and that there are no other `theme:`.
|
92
94
|
|
93
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:
|