jekyll-theme-plain 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -1
- data/_includes/custom-head.html +0 -0
- data/_includes/directory-listing.html +3 -4
- data/_includes/head.html +2 -0
- data/_includes/page-listing.html +3 -3
- data/_includes/post-listing.html +3 -3
- data/_includes/variables.html +4 -4
- data/_layouts/plain.html +11 -0
- data/_layouts/post.html +2 -8
- metadata +13 -33
- /data/_includes/{post.css → plain.css} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70f527c37f1fcd83cc5d926a394191ba5268447ebfede25f99a44fa5cd477a02
|
4
|
+
data.tar.gz: 28a753a37b511579610f8203d9428c89b2af485df69402d37a6ecd628d29f79e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95661246204f2f3f132354c605fe0750f82f396a317c5a9becba8e8a71fcb344b3acbba023958339c3ff6b6085fc2aeb5ad1d641f7251b758e2aa17709445b6b
|
7
|
+
data.tar.gz: 4cfef2ec3dbb8826163fc8c86274d9cab56ce65b0e466545f6a0bf6b34850d2d88da5814754bad3a4781f99da8837807e4c7a13272f0e2e35dda8d15fad9c738
|
data/README.md
CHANGED
@@ -2,8 +2,36 @@
|
|
2
2
|
|
3
3
|
Plain is a plain text-like Jekyll theme for GitHub Pages.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
### Templates
|
8
|
+
|
9
|
+
You can use the following templates:
|
6
10
|
|
7
11
|
* [blog](https://github.com/jekyll-theme-plain/blog)
|
8
12
|
* [directory-listing](https://github.com/jekyll-theme-plain/directory-listing)
|
9
13
|
* [single-page](https://github.com/jekyll-theme-plain/single-page)
|
14
|
+
|
15
|
+
### Manual setup
|
16
|
+
|
17
|
+
<details>
|
18
|
+
<summary>[show]</summary>
|
19
|
+
|
20
|
+
To set up manually, add the following to your `_config.yml`:
|
21
|
+
|
22
|
+
remote_theme: jekyll-theme-plain/jekyll-theme-plain
|
23
|
+
|
24
|
+
See the template's [_config.yml](https://github.com/jekyll-theme-plain/blog/blob/main/_config.yml) for options.
|
25
|
+
|
26
|
+
## Layouts
|
27
|
+
|
28
|
+
* [default](_layouts/default.html) (aliases: base, home, page)
|
29
|
+
* [plain](_layouts/plain.html) (alias: post)
|
30
|
+
|
31
|
+
## Includes
|
32
|
+
|
33
|
+
* [directory-listing.html](_includes/directory-listing.html)
|
34
|
+
* [page-listing.html](_includes/page-listing.html)
|
35
|
+
* [post-listing.html](_includes/post-listing.html)
|
36
|
+
|
37
|
+
</details>
|
File without changes
|
@@ -1,11 +1,10 @@
|
|
1
1
|
{%-
|
2
|
-
assign
|
2
|
+
assign html_files =
|
3
3
|
site.static_files
|
4
4
|
| where_exp: "file", "file.extname contains '.htm'"
|
5
5
|
-%}
|
6
|
-
|
7
|
-
|
8
|
-
{%- for file in files -%}
|
6
|
+
{%- if html_files.size > 0 %} <ul>
|
7
|
+
{%- for file in html_files -%}
|
9
8
|
{%-
|
10
9
|
assign path =
|
11
10
|
file.path
|
data/_includes/head.html
CHANGED
data/_includes/page-listing.html
CHANGED
data/_includes/post-listing.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{%- if site.posts.size > 0 %} <ul>
|
2
|
-
{%- for
|
2
|
+
{%- for p in site.posts %}
|
3
3
|
<li>
|
4
|
-
<a href="{{-
|
5
|
-
{{-
|
4
|
+
<a href="{{- p.url | remove_first: page.url -}}">
|
5
|
+
{{- p.slug -}}
|
6
6
|
</a>
|
7
7
|
</li>
|
8
8
|
{%- endfor %}
|
data/_includes/variables.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{%- comment -%}
|
2
|
-
# Whether the page is
|
2
|
+
# Whether the page is in the plain layout.
|
3
3
|
{%- endcomment -%}
|
4
|
-
{%- if page.layout == "post" -%}
|
5
|
-
{%- assign
|
4
|
+
{%- if page.layout == "plain" or page.layout == "post" -%}
|
5
|
+
{%- assign is_plain = true -%}
|
6
6
|
{%- endif -%}
|
7
7
|
|
8
8
|
{%- comment -%}
|
@@ -55,7 +55,7 @@
|
|
55
55
|
{%- comment -%}
|
56
56
|
# Title.
|
57
57
|
{%- endcomment -%}
|
58
|
-
{%- if
|
58
|
+
{%- if is_plain -%}
|
59
59
|
{%-
|
60
60
|
assign title =
|
61
61
|
canonical_url
|
data/_layouts/plain.html
ADDED
data/_layouts/post.html
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-plain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yuuki
|
@@ -11,47 +11,25 @@ cert_chain: []
|
|
11
11
|
date: 2024-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '230'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: webrick
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
19
|
+
version: '3.5'
|
20
|
+
- - "<"
|
32
21
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
22
|
+
version: '5.0'
|
34
23
|
type: :runtime
|
35
24
|
prerelease: false
|
36
25
|
version_requirements: !ruby/object:Gem::Requirement
|
37
26
|
requirements:
|
38
|
-
- - "
|
27
|
+
- - ">="
|
39
28
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
-
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '2.5'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
29
|
+
version: '3.5'
|
30
|
+
- - "<"
|
53
31
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
32
|
+
version: '5.0'
|
55
33
|
description:
|
56
34
|
email:
|
57
35
|
executables: []
|
@@ -60,16 +38,18 @@ extra_rdoc_files: []
|
|
60
38
|
files:
|
61
39
|
- LICENSE
|
62
40
|
- README.md
|
41
|
+
- _includes/custom-head.html
|
63
42
|
- _includes/directory-listing.html
|
64
43
|
- _includes/head.html
|
65
44
|
- _includes/page-listing.html
|
45
|
+
- _includes/plain.css
|
66
46
|
- _includes/post-listing.html
|
67
|
-
- _includes/post.css
|
68
47
|
- _includes/variables.html
|
69
48
|
- _layouts/base.html
|
70
49
|
- _layouts/default.html
|
71
50
|
- _layouts/home.html
|
72
51
|
- _layouts/page.html
|
52
|
+
- _layouts/plain.html
|
73
53
|
- _layouts/post.html
|
74
54
|
homepage: https://github.com/jekyll-theme-plain/jekyll-theme-plain
|
75
55
|
licenses:
|
File without changes
|