jekyll-theme-plain 0.5.0 → 0.7.0

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: 4c47220729027c892d99ee0a36d1f13b96446dc4eae40a0fe24a96442f1bb061
4
- data.tar.gz: 795b626b81d9f392e7a941128a5ff765d5dcdf14e794b3b13656b79ac8c96a5c
3
+ metadata.gz: 70f527c37f1fcd83cc5d926a394191ba5268447ebfede25f99a44fa5cd477a02
4
+ data.tar.gz: 28a753a37b511579610f8203d9428c89b2af485df69402d37a6ecd628d29f79e
5
5
  SHA512:
6
- metadata.gz: 4fc50b15e43233e995658fab4de112aa620db5449ecaf195c9c6f2cfe389871333cc4dc0941f63cc480158b7ac78f4f81a09d36016181017a71c060c21031161
7
- data.tar.gz: 1db4b9081ce60816125d667fa7578df6ab3bf8b5e56f528f1116f4011de8c7f6709e779683a5e1395e2dbd71074527cb474e3e8014feef3edbe351192214b6d8
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
- ## Templates
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 files =
2
+ assign html_files =
3
3
  site.static_files
4
4
  | where_exp: "file", "file.extname contains '.htm'"
5
5
  -%}
6
-
7
- {%- if files.size > 0 %} <ul>
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
@@ -28,3 +28,5 @@
28
28
  {%- include {{ stylesheet }} -%}
29
29
  {%- endfor %} </style>
30
30
  {%- endif -%}
31
+
32
+ {%- include custom-head.html -%}
@@ -1,8 +1,8 @@
1
1
  {%- if site.pages.size > 0 %} <ul>
2
- {%- for page in site.pages %}
2
+ {%- for p in site.pages %}
3
3
  <li>
4
- <a href="{{- page.url -}}">
5
- {{- page.slug -}}
4
+ <a href="{{- p.url | remove_first: page.url -}}">
5
+ {{- p.slug -}}
6
6
  </a>
7
7
  </li>
8
8
  {%- endfor %}
@@ -1,8 +1,8 @@
1
1
  {%- if site.posts.size > 0 %} <ul>
2
- {%- for post in site.posts %}
2
+ {%- for p in site.posts %}
3
3
  <li>
4
- <a href="{{- post.url | remove_first: page.url -}}">
5
- {{- post.slug -}}
4
+ <a href="{{- p.url | remove_first: page.url -}}">
5
+ {{- p.slug -}}
6
6
  </a>
7
7
  </li>
8
8
  {%- endfor %}
@@ -1,8 +1,8 @@
1
1
  {%- comment -%}
2
- # Whether the page is a post.
2
+ # Whether the page is in the plain layout.
3
3
  {%- endcomment -%}
4
- {%- if page.layout == "post" -%}
5
- {%- assign is_post = true -%}
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 is_post -%}
58
+ {%- if is_plain -%}
59
59
  {%-
60
60
  assign title =
61
61
  canonical_url
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{- content -}}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{- content -}}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{- content -}}
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <pre>
6
+ {{-
7
+ content
8
+ | xml_escape
9
+ | replace: "&apos;", "&#39;"
10
+ -}}
11
+ </pre>
data/_layouts/post.html CHANGED
@@ -1,11 +1,5 @@
1
1
  ---
2
- layout: default
2
+ layout: plain
3
3
  ---
4
4
 
5
- <pre>
6
- {{-
7
- content
8
- | xml_escape
9
- | replace: "&apos;", "&#39;"
10
- -}}
11
- </pre>
5
+ {{- content -}}
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.5.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: github-pages
14
+ name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '230'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
17
+ - - ">="
25
18
  - !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: '1.7'
22
+ version: '5.0'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.7'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
26
  requirements:
45
27
  - - ">="
46
28
  - !ruby/object:Gem::Version
47
- version: '0'
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: '0'
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:
@@ -90,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
70
  - !ruby/object:Gem::Version
91
71
  version: '0'
92
72
  requirements: []
93
- rubygems_version: 3.5.5
73
+ rubygems_version: 3.5.6
94
74
  signing_key:
95
75
  specification_version: 4
96
76
  summary: Plain text-like Jekyll theme for GitHub Pages.
data/_layouts/base.html DELETED
@@ -1 +0,0 @@
1
- default.html
data/_layouts/home.html DELETED
@@ -1 +0,0 @@
1
- default.html
data/_layouts/page.html DELETED
@@ -1 +0,0 @@
1
- default.html
File without changes