jekyll-theme-plain 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f793a987d354ef1a7dade2cf0cc37aa2dd651ce366977f5b45a98fa75f0ae163
4
- data.tar.gz: f1b532f806b94f58d8ac50079491bd1216973bb92e688f38922cfa5b934ec2cc
3
+ metadata.gz: 70f527c37f1fcd83cc5d926a394191ba5268447ebfede25f99a44fa5cd477a02
4
+ data.tar.gz: 28a753a37b511579610f8203d9428c89b2af485df69402d37a6ecd628d29f79e
5
5
  SHA512:
6
- metadata.gz: e008f833e42b1ca5ff6e0b82a264ac3a63e5826a8255d065846bc145926c312897ad3b7290691eb0804145080f466aba6958eeef7eb421e5c3522babb4f5f1e3
7
- data.tar.gz: 9bc5ce0f7939d9438432ef9009015f8fc3c4ab731855b930456b3af605aca3525b19e51dae5a253f3d4dee9669d5f39b0312bf66034deb3cdd232ccd71026aeb
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,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.6.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
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '230'
20
- type: :runtime
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: '1.7'
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: '1.7'
41
- - !ruby/object:Gem::Dependency
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: '2.5'
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