jekyll-theme-nix 1.0.8 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +133 -0
- data/README.md +15 -5
- data/_config.yml +27 -8
- data/_layouts/default.html +12 -5
- data/_layouts/error.html +3 -3
- data/_layouts/home.html +2 -2
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +2 -2
- metadata +18 -5
- data/feed.xml +0 -116
- data/sitemap.xml +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 182a9cc805dbd06edc0ead2a90dec27f3063bf872cf15a7ed2be504939e946c3
|
4
|
+
data.tar.gz: 1e1b44b75de9fd8626fc0b88688fe8d30dcc962625e1b44af0456ab1b0ab3dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 323a21b52eedd590a20049c2281153e3cd46193f8ef330e3cc98c058d5675b0f443a80ed01cc9931cc5dcacc4cb52f066cb7a2acee6baac09bac2becc8dd95cd
|
7
|
+
data.tar.gz: 8ad6b52905791f998bd5abc9997557505a06e3e7e08f69c33bbdc9f61327f4d4127a25bc04f38422639098d59a472c228980e532397c29451e2bbbe15dd84e25
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -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-nix.michaelnordmeyer.com/)
|
10
10
|
|
11
|
+
![Screenshot](/screenshot.png)
|
12
|
+
|
11
13
|
If this theme feels to bloated to you, you can try [“Nixer”](https://github.com/michaelnordmeyer/jekyll-theme-nixer), the ultra-minimalistic version of “Nix”.
|
12
14
|
|
13
15
|
## Limited Features
|
@@ -15,11 +17,11 @@ If this theme feels to bloated to you, you can try [“Nixer”](https://github.
|
|
15
17
|
- Dark mode, because we want to be respectful
|
16
18
|
- Posts
|
17
19
|
- Pages, including custom error pages
|
18
|
-
- No visible authors, categories, or tags
|
20
|
+
- No visible authors, categories, or tags on posts and pages
|
19
21
|
- No header or footer
|
20
22
|
- No pagination for the home page
|
21
23
|
- A feed.xml containing an Atom feed, but no JSON or outdated RSS feeds
|
22
|
-
- A sitemap.xml, because search engines should index us
|
24
|
+
- A sitemap.xml, because search engines should index us properly
|
23
25
|
- No semantic info like Open Graph, Twitter cards, or JSON-LD, but inline Microdata
|
24
26
|
|
25
27
|
## Minutiae
|
@@ -48,7 +50,9 @@ Or, if you will, it could be UNIX without the “U”, because of the theme's so
|
|
48
50
|
|
49
51
|
## Installation
|
50
52
|
|
51
|
-
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.
|
53
|
+
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.
|
54
|
+
|
55
|
+
GitHub pages gem users need to use the remote theme method.
|
52
56
|
|
53
57
|
### Installation from Gem
|
54
58
|
|
@@ -64,7 +68,11 @@ And add this line to your Jekyll site's `_config.yml`:
|
|
64
68
|
theme: jekyll-theme-nix
|
65
69
|
```
|
66
70
|
|
67
|
-
Make sure that this is the only `theme:` in `_config.yml
|
71
|
+
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.
|
72
|
+
|
73
|
+
```sh
|
74
|
+
bundle install
|
75
|
+
```
|
68
76
|
|
69
77
|
### Installation as Remote Theme
|
70
78
|
|
@@ -86,6 +94,8 @@ Finally, add `jekyll-remote-theme` to your plugin section in `_config.yml` as we
|
|
86
94
|
|
87
95
|
## Feed.xml and Sitemap.xml
|
88
96
|
|
89
|
-
Both are included in the theme and don't need dependencies to `jekyll-feed`
|
97
|
+
Both are included in the theme and don't need dependencies to `jekyll-feed` and `jekyll-sitemap` plugins. For a standard Jekyll installation, they work out-of-the-box if both files are copied to the Jekyll directory.
|
90
98
|
|
91
99
|
If hosted with the Github pages plugin, those plugins are already included and will automatically be used instead. To overwrite this, both files have to be copied manually from the theme's repository root to the site's repository root.
|
100
|
+
|
101
|
+
Because feeds are generated once, they can only support one icon, which why the light variant was chosen.
|
data/_config.yml
CHANGED
@@ -1,23 +1,42 @@
|
|
1
1
|
## Remove URL for Github Pages
|
2
2
|
url: https://jekyll-theme-nix.michaelnordmeyer.com
|
3
|
-
icon: /icon.webp
|
4
|
-
icon_dark: /icon-dark.webp
|
5
|
-
icon_type: image/webp
|
6
3
|
title: Jekyll Theme Nix
|
7
4
|
author:
|
8
5
|
name: Michael Nordmeyer
|
9
6
|
uri: https://jekyll-theme-nix.michaelnordmeyer.com
|
10
7
|
description: "A barebones theme for Jekyll"
|
11
8
|
|
12
|
-
timezone: Europe/Berlin
|
13
|
-
ignore_theme_config: true
|
14
|
-
exclude: [jekyll-theme-nix*, LICENSE, README.md]
|
15
|
-
date_format: "%Y-%m-%d"
|
16
|
-
|
17
9
|
plugins:
|
18
10
|
- jekyll-include-cache
|
19
11
|
# - jekyll-redirect-from
|
20
12
|
|
21
13
|
## Jekyll build settings
|
14
|
+
exclude: [jekyll-theme-nix*, LICENSE, Rakefile.rb, README.md]
|
15
|
+
ignore_theme_config: true # Since Jekyll 4.0, see: https://jekyllrb.com/docs/themes/#pre-configuring-theme-gems40, https://jekyllrb.com/docs/configuration/options/
|
22
16
|
kramdown:
|
23
17
|
show_warnings: true
|
18
|
+
syntax_highlighter_opts:
|
19
|
+
disable: true
|
20
|
+
liquid:
|
21
|
+
# Configure Liquid’s parser
|
22
|
+
error_mode: strict # default: warn
|
23
|
+
# Configure Liquid’s renderer
|
24
|
+
strict_filters: true # default: false
|
25
|
+
# strict_variables: true # default: false
|
26
|
+
sass:
|
27
|
+
style: compressed
|
28
|
+
strict_front_matter: true # default: false
|
29
|
+
timezone: Europe/Berlin # default: local timezone
|
30
|
+
# remote_theme: michaelnordmeyer/jekyll-theme-nix
|
31
|
+
# theme: jekyll-theme-nix
|
32
|
+
|
33
|
+
## Custom theme settings to not overwrite anything from Jekyll or plugins
|
34
|
+
lang: en-US # default: en (is not by Jekyll, but used by many other plugins)
|
35
|
+
theme_settings:
|
36
|
+
# date_format: "%b %-d, %Y" # default: "%Y-%m-%d"
|
37
|
+
favicon: /icon.webp # optional, needs to be 180x180
|
38
|
+
favicon_dark: /icon-dark.webp # optional, needs to be 180x180
|
39
|
+
favicon_media_type: image/webp # mandatory, if favicon is set
|
40
|
+
feed:
|
41
|
+
posts_limit: 999
|
42
|
+
# title_separator: "|" # default: "•"
|
data/_layouts/default.html
CHANGED
@@ -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.
|
7
|
-
<link rel="icon" type="{{ site.
|
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 {
|
@@ -24,7 +26,9 @@
|
|
24
26
|
hr { border: 0; border-top: 1px solid; }
|
25
27
|
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
|
26
28
|
body > header > h1 { margin-bottom: 2rem; text-align: center; }
|
27
|
-
body > header > a {
|
29
|
+
body > header > h1 > a { text-decoration: none; color: black }
|
30
|
+
body > header > a { display: block; margin-block-start: 0.67em; margin-block-end: 1em; text-align: center; font-size: 2em; font-weight: bold; text-decoration: none; line-height: 1.2; }
|
31
|
+
body > header a:visited { color: black; }
|
28
32
|
body > main > ul { padding: 0; }
|
29
33
|
body > main > ul > li { margin: 0.5em 0; list-style-type: none; line-height: 1.25; }
|
30
34
|
body > main > ul > li time { font-size: small; }
|
@@ -36,12 +40,15 @@
|
|
36
40
|
html { background-color: black; color: white; }
|
37
41
|
a { color: lightskyblue; }
|
38
42
|
a:visited { color: plum; }
|
43
|
+
body > header > h1 > a,
|
44
|
+
body > header > a { text-decoration: none; color: white }
|
45
|
+
body > header > h1 > a:visited,
|
46
|
+
body > header > a:visited { color: white; }
|
39
47
|
header > time { color: darkgrey; }
|
40
48
|
th, td { border-color: grey; }
|
41
49
|
}
|
42
50
|
.footnotes { margin: 0; font-size: small; }
|
43
51
|
</style>
|
44
|
-
<meta name="theme-color" content="#white">
|
45
52
|
<title>{%- if page.title -%}{{ page.title | smartify }} • {{ site.title | smartify }}{%- else -%}{{ site.title | smartify }} • {{ site.description | smartify }}{%- endif -%}</title>
|
46
53
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | smartify }}{% else %}{{ site.description | smartify }}{% endif %}">
|
47
54
|
<meta name="author" content="{{ site.author.name }}">
|
@@ -49,6 +56,6 @@
|
|
49
56
|
<link type="application/atom+xml" rel="alternate" href="{{ '/feed.xml' | relative_url }}" title="{{ site.title | smartify }}">
|
50
57
|
</head>
|
51
58
|
<body>
|
52
|
-
|
59
|
+
{{ content }}
|
53
60
|
</body>
|
54
61
|
</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.
|
7
|
-
<link rel="icon" type="{{ site.
|
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 {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
<h1 itemprop="headline">{{ page.title | smartify }}</h1>
|
40
40
|
</header>
|
41
41
|
<div itemprop="mainContentOfPage" itemscope itemtype="https://schema.org/WebPageElement">
|
42
|
-
|
42
|
+
{{ content }}
|
43
43
|
</div>
|
44
44
|
</article>
|
45
45
|
</main>
|
data/_layouts/home.html
CHANGED
@@ -5,13 +5,13 @@ layout: default
|
|
5
5
|
<h1><a rel="author" href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
|
6
6
|
</header>
|
7
7
|
<main aria-label="Content" itemscope itemtype="https://schema.org/Blog">
|
8
|
-
|
8
|
+
{{ content }}
|
9
9
|
|
10
10
|
{%- if site.posts.size > 0 -%}
|
11
11
|
{%- if page.list_title %}
|
12
12
|
<h2>{{ page.list_title | smartify }}</h2>
|
13
13
|
{%- endif -%}
|
14
|
-
{%- assign date_format = site.date_format | default: "%
|
14
|
+
{%- assign date_format = site.theme_settings.date_format | default: "%Y-%m-%d" %}
|
15
15
|
<ul>
|
16
16
|
{%- for post in site.posts %}
|
17
17
|
<li itemscope itemtype="https://schema.org/BlogPosting">
|
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -8,11 +8,11 @@ layout: default
|
|
8
8
|
<article itemscope itemtype="https://schema.org/BlogPosting">
|
9
9
|
<header>
|
10
10
|
<h1 itemprop="headline">{{ page.title | smartify }}</h1>
|
11
|
-
{%- assign date_format = site.date_format | default: "%
|
11
|
+
{%- assign date_format = site.theme_settings.date_format | default: "%Y-%m-%d" %}
|
12
12
|
<time itemprop="datePublished" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: date_format }}</time>
|
13
13
|
</header>
|
14
14
|
<div itemprop="articleBody">
|
15
|
-
|
15
|
+
{{ content }}
|
16
16
|
</div>
|
17
17
|
</article>
|
18
18
|
</main>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-nix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
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:
|
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
|
@@ -45,8 +60,6 @@ files:
|
|
45
60
|
- _layouts/home.html
|
46
61
|
- _layouts/page.html
|
47
62
|
- _layouts/post.html
|
48
|
-
- feed.xml
|
49
|
-
- sitemap.xml
|
50
63
|
homepage: https://github.com/michaelnordmeyer/jekyll-theme-nix
|
51
64
|
licenses:
|
52
65
|
- MIT
|
@@ -66,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
79
|
- !ruby/object:Gem::Version
|
67
80
|
version: '0'
|
68
81
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
82
|
+
rubygems_version: 3.5.3
|
70
83
|
signing_key:
|
71
84
|
specification_version: 4
|
72
85
|
summary: A very minimalistic, single-author Jekyll theme with almost default browser
|
data/feed.xml
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
---
|
2
|
-
permalink: /feed.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/xml" href="{{ '/feed.xslt' | absolute_url }}"?>
|
9
|
-
{% endif %}
|
10
|
-
<feed xmlns="http://www.w3.org/2005/Atom" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}>
|
11
|
-
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
|
12
|
-
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/>
|
13
|
-
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
14
|
-
<id>{{ page.url | absolute_url | xml_escape }}</id>
|
15
|
-
{%- if site.icon %}
|
16
|
-
<icon>{{ site.icon | absolute_url | xml_escape }}</icon>
|
17
|
-
{%- endif -%}
|
18
|
-
{%- assign title = site.title | default: site.name -%}
|
19
|
-
{%- if page.collection and page.collection != "posts" -%}
|
20
|
-
{%- assign collection = page.collection | capitalize -%}
|
21
|
-
{%- assign title = title | append: site.title_separator | append: collection -%}
|
22
|
-
{%- endif -%}
|
23
|
-
{%- if page.category -%}
|
24
|
-
{%- assign category = page.category | capitalize -%}
|
25
|
-
{%- assign title = title | append: site.title_separator | append: category -%}
|
26
|
-
{%- endif -%}
|
27
|
-
{%- if title %}
|
28
|
-
<title>{{ title | strip_html | normalize_whitespace | smartify }}</title>
|
29
|
-
{%- endif -%}
|
30
|
-
{%- if site.description %}
|
31
|
-
<subtitle>{{ site.description | strip_html | normalize_whitespace | smartify }}</subtitle>
|
32
|
-
{%- endif -%}
|
33
|
-
{%- if site.author %}
|
34
|
-
<author>
|
35
|
-
<name>{{ site.author.name | default: site.author | xml_escape }}</name>
|
36
|
-
{%- if site.author.email %}
|
37
|
-
<email>{{ site.author.email | xml_escape }}</email>
|
38
|
-
{%- endif -%}
|
39
|
-
{%- if site.author.uri %}
|
40
|
-
<uri>{{ site.author.uri | xml_escape }}</uri>
|
41
|
-
{%- endif %}
|
42
|
-
</author>
|
43
|
-
{%- endif -%}
|
44
|
-
{%- comment -%}
|
45
|
-
{%- if page.tags -%}
|
46
|
-
{%- assign posts = site.tags[page.tags] -%}
|
47
|
-
{%- else -%}
|
48
|
-
{%- assign posts = site[page.collection] -%}
|
49
|
-
{%- endif -%}
|
50
|
-
{%- if page.category -%}
|
51
|
-
{%- assign posts = posts | where: "categories", page.category -%}
|
52
|
-
{%- endif -%}
|
53
|
-
{%- endcomment -%}
|
54
|
-
{%- unless posts -%}
|
55
|
-
{%- assign posts = site.posts -%}
|
56
|
-
{%- endunless -%}
|
57
|
-
{%- unless site.show_drafts -%}
|
58
|
-
{%- assign posts = posts | where_exp: "post", "post.draft != true" -%}
|
59
|
-
{%- endunless -%}
|
60
|
-
{%- assign posts = posts | sort: "date" | reverse -%}
|
61
|
-
{%- assign posts_limit = site.feed.posts_limit | default: 10 -%}
|
62
|
-
{%- for post in posts limit: posts_limit %}
|
63
|
-
<entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
|
64
|
-
{%- assign post_title = post.title | strip_html | normalize_whitespace | smartify %}
|
65
|
-
<title>{{ post_title }}</title>
|
66
|
-
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post_title }}" />
|
67
|
-
<published>{{ post.date | date_to_xmlschema }}</published>
|
68
|
-
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
|
69
|
-
<id>{{ post.id | absolute_url | xml_escape }}</id>
|
70
|
-
|
71
|
-
{%- assign post_author = post.author | default: post.authors[0] | default: site.author -%}
|
72
|
-
{%- assign post_author = site.data.authors[post_author] | default: post_author -%}
|
73
|
-
{%- assign post_author_email = post_author.email | default: nil -%}
|
74
|
-
{%- assign post_author_uri = post_author.uri | default: nil -%}
|
75
|
-
{%- assign post_author_name = post_author.name | default: post_author %}
|
76
|
-
<author>
|
77
|
-
<name>{{ post_author_name | default: "" | xml_escape }}</name>
|
78
|
-
{%- if post_author_email %}
|
79
|
-
<email>{{ post_author_email | xml_escape }}</email>
|
80
|
-
{%- endif -%}
|
81
|
-
{%- if post_author_uri %}
|
82
|
-
<uri>{{ post_author_uri | xml_escape }}</uri>
|
83
|
-
{%- endif %}
|
84
|
-
</author>
|
85
|
-
{%- if post.category %}
|
86
|
-
<category term="{{ post.category | xml_escape }}" />
|
87
|
-
{%- elsif post.categories -%}
|
88
|
-
{%- for category in post.categories %}
|
89
|
-
<category term="{{ category | xml_escape }}" />
|
90
|
-
{%- endfor -%}
|
91
|
-
{%- endif %}
|
92
|
-
{%- for tag in post.tags -%}
|
93
|
-
{%- unless post.categories contains tag %}
|
94
|
-
<category term="{{ tag | xml_escape }}" />
|
95
|
-
{%- endunless -%}
|
96
|
-
{%- endfor -%}
|
97
|
-
{%- assign post_summary = post.description | default: post.excerpt -%}
|
98
|
-
{%- if post_summary and post_summary != empty %}
|
99
|
-
<summary>{{ post_summary | strip_html | normalize_whitespace | smartify }}</summary>
|
100
|
-
{%- endif -%}
|
101
|
-
|
102
|
-
{%- assign post_image = post.image.path | default: post.image -%}
|
103
|
-
{%- if post_image -%}
|
104
|
-
{%- unless post_image contains "://" -%}
|
105
|
-
{%- assign post_image = post_image | absolute_url | xml_escape -%}
|
106
|
-
{%- endunless %}
|
107
|
-
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ post_image | xml_escape }}" />
|
108
|
-
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ post_image | xml_escape }}" medium="image" />
|
109
|
-
{%- endif -%}
|
110
|
-
{%- assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only -%}
|
111
|
-
{%- unless excerpt_only %}
|
112
|
-
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"><![CDATA[{{ post.content | smartify }}]]></content>
|
113
|
-
{%- endunless %}
|
114
|
-
</entry>
|
115
|
-
{%- endfor %}
|
116
|
-
</feed>
|
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>
|