jekyll-theme-plain 0.3.0 → 0.5.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: a56292e0d5c32fb483f906c463994447395af0f2b07ec099251463eece6e9394
4
- data.tar.gz: a620d3d5269341278a53fff411a985c8be04c12827c4a9c34c8871c61f73c53e
3
+ metadata.gz: 4c47220729027c892d99ee0a36d1f13b96446dc4eae40a0fe24a96442f1bb061
4
+ data.tar.gz: 795b626b81d9f392e7a941128a5ff765d5dcdf14e794b3b13656b79ac8c96a5c
5
5
  SHA512:
6
- metadata.gz: b4e63f9a50514023de9f227222d625d7b10b92ed7f3b7fd213adf334af8769d3d6a5932267edae51029b6f4d48c28da238bfeaf426c7b7b4063265662bb739e3
7
- data.tar.gz: 2e1afa65d2c77dc1c79aacbc713699afe145378c862f60a98dc0b7d37144aa23c9dafa43906c9bca2694b81a78ab18162ad9210bb8d8a32a118a074e44887f00
6
+ metadata.gz: 4fc50b15e43233e995658fab4de112aa620db5449ecaf195c9c6f2cfe389871333cc4dc0941f63cc480158b7ac78f4f81a09d36016181017a71c060c21031161
7
+ data.tar.gz: 1db4b9081ce60816125d667fa7578df6ab3bf8b5e56f528f1116f4011de8c7f6709e779683a5e1395e2dbd71074527cb474e3e8014feef3edbe351192214b6d8
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- # [Plain](https://jekyll-theme-plain.github.io/)
1
+ # Plain
2
2
 
3
3
  Plain is a plain text-like Jekyll theme for GitHub Pages.
4
4
 
5
- ## Usage
5
+ ## Templates
6
6
 
7
- Copy the [_config.yml](_config.yml) to your repo and edit it.
7
+ * [blog](https://github.com/jekyll-theme-plain/blog)
8
+ * [directory-listing](https://github.com/jekyll-theme-plain/directory-listing)
9
+ * [single-page](https://github.com/jekyll-theme-plain/single-page)
@@ -0,0 +1,22 @@
1
+ {%-
2
+ assign files =
3
+ site.static_files
4
+ | where_exp: "file", "file.extname contains '.htm'"
5
+ -%}
6
+
7
+ {%- if files.size > 0 %} <ul>
8
+ {%- for file in files -%}
9
+ {%-
10
+ assign path =
11
+ file.path
12
+ | remove_first: page.url
13
+ | remove_first: "/index.html"
14
+ %}
15
+ <li>
16
+ <a href="{{- path | append: "/" -}}">
17
+ {{- path -}}
18
+ </a>
19
+ </li>
20
+ {%- endfor %}
21
+ </ul>
22
+ {%- endif %}
@@ -1,7 +1,9 @@
1
1
  {%- if site.pages.size > 0 %} <ul>
2
2
  {%- for page in site.pages %}
3
3
  <li>
4
- <a href="{{- page.url -}}">{{- page.slug -}}</a>
4
+ <a href="{{- page.url -}}">
5
+ {{- page.slug -}}
6
+ </a>
5
7
  </li>
6
8
  {%- endfor %}
7
9
  </ul>
@@ -1,7 +1,9 @@
1
1
  {%- if site.posts.size > 0 %} <ul>
2
2
  {%- for post in site.posts %}
3
3
  <li>
4
- <a href="{{- post.url | remove_first: page.url -}}">{{- post.slug -}}</a>
4
+ <a href="{{- post.url | remove_first: page.url -}}">
5
+ {{- post.slug -}}
6
+ </a>
5
7
  </li>
6
8
  {%- endfor %}
7
9
  </ul>
data/_includes/post.css CHANGED
@@ -1,10 +1,4 @@
1
1
 
2
2
  pre {
3
- word-wrap: break-word;
4
- overflow-wrap: break-word;
5
- white-space: -moz-pre-wrap;
6
- white-space: -pre-wrap;
7
- white-space: -o-pre-wrap;
8
3
  white-space: pre-wrap;
9
- white-space: break-spaces;
10
4
  }
@@ -5,6 +5,9 @@
5
5
  {%- assign is_post = true -%}
6
6
  {%- endif -%}
7
7
 
8
+ {%- comment -%}
9
+ # Default values.
10
+ {%- endcomment -%}
8
11
  {%- assign default_lang = "en" -%}
9
12
  {%- assign default_charset = "utf-8" -%}
10
13
  {%- assign default_color_scheme = "light dark" -%}
@@ -0,0 +1 @@
1
+ default.html
@@ -0,0 +1,10 @@
1
+ {%- include variables.html -%}
2
+
3
+ <!DOCTYPE html>
4
+ <html {%- if lang %} lang="{{- lang -}}"{%- endif -%}>
5
+ <head>
6
+ {%- include head.html %}
7
+ </head>
8
+ <body>
9
+ {{ content }} </body>
10
+ </html>
@@ -0,0 +1 @@
1
+ default.html
@@ -0,0 +1 @@
1
+ default.html
data/_layouts/post.html CHANGED
@@ -1,5 +1,11 @@
1
1
  ---
2
- layout: base
2
+ layout: default
3
3
  ---
4
4
 
5
- <pre>{{- content | xml_escape | replace: "&apos;", "&#39;" -}}</pre>
5
+ <pre>
6
+ {{-
7
+ content
8
+ | xml_escape
9
+ | replace: "&apos;", "&#39;"
10
+ -}}
11
+ </pre>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-plain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '228'
19
+ version: '230'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '228'
26
+ version: '230'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: webrick
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
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: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description:
42
56
  email:
43
57
  executables: []
@@ -46,14 +60,16 @@ extra_rdoc_files: []
46
60
  files:
47
61
  - LICENSE
48
62
  - README.md
49
- - _includes/base.css
63
+ - _includes/directory-listing.html
50
64
  - _includes/head.html
51
- - _includes/page-list.html
52
- - _includes/post-list.html
65
+ - _includes/page-listing.html
66
+ - _includes/post-listing.html
53
67
  - _includes/post.css
54
- - _includes/static-file-list.html
55
68
  - _includes/variables.html
56
69
  - _layouts/base.html
70
+ - _layouts/default.html
71
+ - _layouts/home.html
72
+ - _layouts/page.html
57
73
  - _layouts/post.html
58
74
  homepage: https://github.com/jekyll-theme-plain/jekyll-theme-plain
59
75
  licenses:
@@ -77,5 +93,5 @@ requirements: []
77
93
  rubygems_version: 3.5.5
78
94
  signing_key:
79
95
  specification_version: 4
80
- summary: A plain text-like Jekyll theme for GitHub Pages
96
+ summary: Plain text-like Jekyll theme for GitHub Pages.
81
97
  test_files: []
data/_includes/base.css DELETED
File without changes
@@ -1,10 +0,0 @@
1
- {%- assign files = site.static_files | where: "extname", ".html" -%}
2
- {%- if files.size > 0 %} <ul>
3
- {%- for file in files -%}
4
- {%- assign path = file.path | remove_first: page.url | remove_first: "/index.html" %}
5
- <li>
6
- <a href="{{- path | append: "/" -}}">{{- path -}}</a>
7
- </li>
8
- {%- endfor %}
9
- </ul>
10
- {%- endif %}
data/_layouts/base.html DELETED
@@ -1,9 +0,0 @@
1
- {%- include variables.html -%}
2
-
3
- <!DOCTYPE html>
4
- <html {%- if lang %} lang="{{- lang -}}"{%- endif -%}>
5
- <head>{%- include head.html %}
6
- </head>
7
- <body>
8
- {{ content }} </body>
9
- </html>