jekyll-theme-nixer 1.0.7 → 1.1.1

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: bf6c5ec8cc42a9ea746e7b030b51134c0f3b6668b368574b4126b8ae551d20bd
4
- data.tar.gz: f8466bc0e13b355a04018574b269993343f600678f2f3c143cf84d5339fd4059
3
+ metadata.gz: 4eacad29c90a4f17f2bcaf49bf3407a8f32f5c156fb8df650ad01ad7e97bd499
4
+ data.tar.gz: 0b291286c77a1efef8b1f33c94e207601f64300980179c73097be48172bbdee7
5
5
  SHA512:
6
- metadata.gz: 1f7558946746fcbc189eef2e9ad7969040897f7e61793b81297d5cbbcb9b06da9698ad01710e7694193060aa620f0e1555187e00da8f4897f657244c29829dab
7
- data.tar.gz: b96b85225ef601fc8ea961ffbbb6c3bf21db96f6613336844883bb6838e5ec183a72335fd51914f162e6349b7c837a69f776bf88109bd43a42399909c0f53e66
6
+ metadata.gz: fd8c4bd6e37a4d7815805edb833aa161c49f84cecd091181fa7de880571059facaf70f4fb86e97826ab01f41ad926f286569b3e7246c840cfb2af119000beb5f
7
+ data.tar.gz: 2701a2a408dd60fdf613f22b004915495d91e33eca681fd52bfc068af7b2ee31fdd9e9bb8ede61a485e7fe6fd258d882fade877a2be7f8287a928c7f2a11735d
@@ -0,0 +1,133 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual
11
+ identity and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the overall
27
+ community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or advances of
32
+ any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email address,
36
+ without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official email address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ [INSERT CONTACT METHOD].
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series of
87
+ actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or permanent
94
+ ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within the
114
+ community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
data/README.md CHANGED
@@ -8,6 +8,8 @@ It also changes as little as possible from the default browser settings to impro
8
8
 
9
9
  [Demo](https://jekyll-theme-nixer.michaelnordmeyer.com/)
10
10
 
11
+ ![Screenshot](/screenshot.png)
12
+
11
13
  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.
12
14
 
13
15
  And people coming from hacker news or related sites know how to change the URL in the browser's address bar.
@@ -19,7 +21,7 @@ If you think this goes too far, use the above mentioned [Jekyll theme “Nix”]
19
21
  - Dark mode, because we want to be respectful
20
22
  - Posts, but no backlink to homepage
21
23
  - No Pages, except custom error pages
22
- - No visible authors, dates, categories, or tags
24
+ - No visible authors, dates, categories, or tags on posts and pages
23
25
  - No header or footer
24
26
  - No pagination for the home page
25
27
  - No feed.xml
@@ -58,7 +60,9 @@ Or, if you will, it could be UNIX without the “U”, because of the theme's so
58
60
 
59
61
  ## Installation
60
62
 
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.
63
+ 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.
64
+
65
+ GitHub pages gem users need to use the remote theme method.
62
66
 
63
67
  ### Installation from Gem
64
68
 
@@ -74,7 +78,11 @@ And add this line to your Jekyll site's `_config.yml`:
74
78
  theme: jekyll-theme-nixer
75
79
  ```
76
80
 
77
- Make sure that this is the only `theme:` in `_config.yml`. Afterwards run `bundle install`.
81
+ 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.
82
+
83
+ ```sh
84
+ bundle install
85
+ ```
78
86
 
79
87
  ### Installation as Remote Theme
80
88
 
@@ -96,6 +104,6 @@ Finally, add `jekyll-remote-theme` to your plugin section in `_config.yml` as we
96
104
 
97
105
  ## Sitemap.xml
98
106
 
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.
107
+ 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
108
 
101
109
  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,25 +1,42 @@
1
1
  ### Remove URL for Github Pages
2
2
  url: https://jekyll-theme-nixer.michaelnordmeyer.com
3
- icon: /icon.webp
4
- icon_dark: /icon-dark.webp
5
- icon_type: image/webp
6
3
  title: Jekyll Theme Nixer
7
4
  description: "An even more barebones theme for Jekyll"
8
5
 
9
- timezone: Europe/Berlin
10
- ignore_theme_config: true
11
- exclude: [jekyll-theme-nixer*, LICENSE, README.md]
12
- date_format: "%Y-%m-%d"
13
-
14
6
  plugins:
15
7
  - jekyll-include-cache
16
8
  # - jekyll-redirect-from
17
9
 
18
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/
19
13
  kramdown:
20
14
  show_warnings: true
21
-
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
22
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/
23
40
  defaults:
24
41
  - scope:
25
42
  path: ""
@@ -3,8 +3,10 @@
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 }}" 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 }}">
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 }}">
8
+ <meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
9
+ <meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
8
10
  <style>
9
11
  :root { color-scheme: light dark; }
10
12
  html {
@@ -34,14 +36,13 @@
34
36
  }
35
37
  .footnotes { margin: 0; font-size: small; }
36
38
  </style>
37
- <meta name="theme-color" content="#white">
38
39
  <title>{%- if page.title -%}{{ page.title | smartify }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
39
40
  <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | smartify }}{% else %}{{ site.description | smartify }}{% endif %}">
40
41
  <link rel="canonical" href="{{ page.url | absolute_url }}">
41
42
  </head>
42
43
  <body>
43
44
  <main>
44
- {{ content }}
45
+ {{ content }}
45
46
  </main>
46
47
  </body>
47
48
  </html>
data/_layouts/error.html CHANGED
@@ -3,8 +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 }}" 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 }}">
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 }}">
8
8
  <style>
9
9
  :root { color-scheme: light dark; }
10
10
  html {
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.7
4
+ version: 1.1.1
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-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-04 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
@@ -37,6 +51,7 @@ executables: []
37
51
  extensions: []
38
52
  extra_rdoc_files: []
39
53
  files:
54
+ - CODE_OF_CONDUCT.md
40
55
  - LICENSE
41
56
  - README.md
42
57
  - _config.yml
@@ -44,7 +59,6 @@ files:
44
59
  - _layouts/error.html
45
60
  - _layouts/home.html
46
61
  - _layouts/post.html
47
- - sitemap.xml
48
62
  homepage: https://github.com/michaelnordmeyer/jekyll-theme-nixer
49
63
  licenses:
50
64
  - MIT
@@ -65,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
79
  - !ruby/object:Gem::Version
66
80
  version: '0'
67
81
  requirements: []
68
- rubygems_version: 3.4.17
82
+ rubygems_version: 3.5.3
69
83
  signing_key:
70
84
  specification_version: 4
71
85
  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>