jekyll-theme-plain 0.2.0 → 0.3.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 +4 -4
- data/_includes/base.css +0 -0
- data/_includes/head.html +14 -58
- data/{_layouts → _includes}/page-list.html +2 -5
- data/{_layouts → _includes}/post-list.html +2 -5
- data/{_layouts/static-page-list.html → _includes/static-file-list.html} +3 -6
- data/_includes/variables.html +82 -0
- data/_layouts/base.html +3 -4
- data/_layouts/post.html +1 -1
- metadata +14 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a56292e0d5c32fb483f906c463994447395af0f2b07ec099251463eece6e9394
|
4
|
+
data.tar.gz: a620d3d5269341278a53fff411a985c8be04c12827c4a9c34c8871c61f73c53e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e63f9a50514023de9f227222d625d7b10b92ed7f3b7fd213adf334af8769d3d6a5932267edae51029b6f4d48c28da238bfeaf426c7b7b4063265662bb739e3
|
7
|
+
data.tar.gz: 2e1afa65d2c77dc1c79aacbc713699afe145378c862f60a98dc0b7d37144aa23c9dafa43906c9bca2694b81a78ab18162ad9210bb8d8a32a118a074e44887f00
|
data/_includes/base.css
ADDED
File without changes
|
data/_includes/head.html
CHANGED
@@ -1,38 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
# Whether the page is a post.
|
3
|
-
{%- endcomment -%}
|
4
|
-
{%- if page.layout == 'post' -%}
|
5
|
-
{%- assign is_post = true -%}
|
6
|
-
{%- endif -%}
|
7
|
-
|
8
|
-
{%- assign charset = page.charset -%}
|
9
|
-
{%- if charset == nil -%}{%- assign charset = site.charset -%}
|
10
|
-
{%- if charset == nil -%}{%- assign charset = 'utf-8' -%}{%- endif -%}{%- endif -%}
|
11
|
-
|
12
|
-
{%- assign color_scheme = page.color_scheme -%}
|
13
|
-
{%- if color_scheme == nil -%}{%- assign color_scheme = site.color_scheme -%}
|
14
|
-
{%- if color_scheme == nil -%}{%- assign color_scheme = 'light dark' -%}{%- endif -%}{%- endif -%}
|
15
|
-
|
16
|
-
{%- assign viewport = page.viewport -%}
|
17
|
-
{%- if viewport == nil -%}{%- assign viewport = site.viewport -%}
|
18
|
-
{%- if viewport == nil -%}{%- assign viewport = 'width=device-width, initial-scale=1' -%}{%- endif -%}{%- endif -%}
|
19
|
-
|
20
|
-
{%- assign canonical = page.canonical -%}
|
21
|
-
{%- if canonical == nil -%}{%- assign canonical = site.canonical -%}
|
22
|
-
{%- if canonical == nil -%}{%- assign canonical = page.url | absolute_url -%}{%- endif -%}{%- endif -%}
|
23
|
-
|
24
|
-
{%- assign license = page.license -%}
|
25
|
-
{%- if license == nil -%}{%- assign license = site.license -%}{%- endif -%}
|
26
|
-
|
27
|
-
{%- assign stylesheets = page.stylesheets -%}
|
28
|
-
{%- if stylesheets == nil -%}
|
29
|
-
{%- if is_post -%}
|
30
|
-
{%- assign stylesheets = 'post.css' | split: ',' -%}
|
31
|
-
{%- else -%}
|
32
|
-
{%- assign stylesheets = site.stylesheets -%}
|
33
|
-
{%- endif -%}
|
34
|
-
{%- endif -%}
|
35
|
-
|
36
1
|
{%- if charset %}
|
37
2
|
<meta charset="{{- charset -}}">
|
38
3
|
{%- endif -%}
|
@@ -43,32 +8,23 @@
|
|
43
8
|
|
44
9
|
{%- if viewport %}
|
45
10
|
<meta name="viewport" content="{{- viewport -}}">
|
46
|
-
{%- endif
|
47
|
-
<title>
|
48
|
-
{%- if is_post -%}
|
49
|
-
{{-
|
50
|
-
canonical
|
51
|
-
| remove_first: 'https://www.'
|
52
|
-
| remove_first: 'http://www.'
|
53
|
-
| remove_first: 'https://'
|
54
|
-
| remove_first: 'http://'
|
55
|
-
| replace: '+', '%2B'
|
56
|
-
| url_decode
|
57
|
-
-}}
|
58
|
-
{%- else -%}
|
59
|
-
{{- page.title | default: site.title -}}
|
60
|
-
{%- endif -%}
|
61
|
-
</title>
|
11
|
+
{%- endif -%}
|
62
12
|
|
63
|
-
{%- if
|
64
|
-
<
|
13
|
+
{%- if title %}
|
14
|
+
<title>{{- title -}}</title>
|
65
15
|
{%- endif -%}
|
66
16
|
|
67
|
-
{%- if
|
68
|
-
<link rel="
|
17
|
+
{%- if canonical_url %}
|
18
|
+
<link rel="canonical" href="{{- canonical_url -}}">
|
69
19
|
{%- endif -%}
|
70
20
|
|
71
|
-
{%- if
|
21
|
+
{%- if license_url %}
|
22
|
+
<link rel="license" href="{{- license_url -}}">
|
23
|
+
{%- endif -%}
|
24
|
+
|
25
|
+
{%- if stylesheets.size > 0 %}
|
72
26
|
<style>
|
73
|
-
{%- for stylesheet in stylesheets
|
74
|
-
|
27
|
+
{%- for stylesheet in stylesheets -%}
|
28
|
+
{%- include {{ stylesheet }} -%}
|
29
|
+
{%- endfor %} </style>
|
30
|
+
{%- endif -%}
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
---
|
4
|
-
|
5
|
-
<ul>
|
6
|
-
{%- assign files = site.static_files | where: "extname", ".html" -%}
|
1
|
+
{%- assign files = site.static_files | where: "extname", ".html" -%}
|
2
|
+
{%- if files.size > 0 %} <ul>
|
7
3
|
{%- for file in files -%}
|
8
4
|
{%- assign path = file.path | remove_first: page.url | remove_first: "/index.html" %}
|
9
5
|
<li>
|
@@ -11,3 +7,4 @@ layout: base
|
|
11
7
|
</li>
|
12
8
|
{%- endfor %}
|
13
9
|
</ul>
|
10
|
+
{%- endif %}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
# Whether the page is a post.
|
3
|
+
{%- endcomment -%}
|
4
|
+
{%- if page.layout == "post" -%}
|
5
|
+
{%- assign is_post = true -%}
|
6
|
+
{%- endif -%}
|
7
|
+
|
8
|
+
{%- assign default_lang = "en" -%}
|
9
|
+
{%- assign default_charset = "utf-8" -%}
|
10
|
+
{%- assign default_color_scheme = "light dark" -%}
|
11
|
+
{%- assign default_viewport = "width=device-width, initial-scale=1" -%}
|
12
|
+
{%- assign default_title = "" -%}
|
13
|
+
{%- assign default_canonical_url = page.url | absolute_url -%}
|
14
|
+
{%- assign default_license_url = false -%}
|
15
|
+
{%- assign default_stylesheets = "" | split: ", " -%}
|
16
|
+
|
17
|
+
{%- comment -%}
|
18
|
+
# Lang.
|
19
|
+
{%- endcomment -%}
|
20
|
+
{%- assign lang = page.lang -%}
|
21
|
+
{%- if lang == nil -%}{%- assign lang = site.lang -%}
|
22
|
+
{%- if lang == nil -%}{%- assign lang = default_lang -%}{%- endif -%}{%- endif -%}
|
23
|
+
|
24
|
+
{%- comment -%}
|
25
|
+
# Charset.
|
26
|
+
{%- endcomment -%}
|
27
|
+
{%- assign charset = page.charset -%}
|
28
|
+
{%- if charset == nil -%}{%- assign charset = site.charset -%}
|
29
|
+
{%- if charset == nil -%}{%- assign charset = default_charset -%}{%- endif -%}{%- endif -%}
|
30
|
+
|
31
|
+
{%- comment -%}
|
32
|
+
# Color scheme.
|
33
|
+
{%- endcomment -%}
|
34
|
+
{%- assign color_scheme = page.color_scheme -%}
|
35
|
+
{%- if color_scheme == nil -%}{%- assign color_scheme = site.color_scheme -%}
|
36
|
+
{%- if color_scheme == nil -%}{%- assign color_scheme = default_color_scheme -%}{%- endif -%}{%- endif -%}
|
37
|
+
|
38
|
+
{%- comment -%}
|
39
|
+
# Viewport.
|
40
|
+
{%- endcomment -%}
|
41
|
+
{%- assign viewport = page.viewport -%}
|
42
|
+
{%- if viewport == nil -%}{%- assign viewport = site.viewport -%}
|
43
|
+
{%- if viewport == nil -%}{%- assign viewport = default_viewport -%}{%- endif -%}{%- endif -%}
|
44
|
+
|
45
|
+
{%- comment -%}
|
46
|
+
# Canonical url.
|
47
|
+
{%- endcomment -%}
|
48
|
+
{%- assign canonical_url = page.canonical_url -%}
|
49
|
+
{%- if canonical_url == nil -%}{%- assign canonical_url = site.canonical_url -%}
|
50
|
+
{%- if canonical_url == nil -%}{%- assign canonical_url = default_canonical_url -%}{%- endif -%}{%- endif -%}
|
51
|
+
|
52
|
+
{%- comment -%}
|
53
|
+
# Title.
|
54
|
+
{%- endcomment -%}
|
55
|
+
{%- if is_post -%}
|
56
|
+
{%-
|
57
|
+
assign title =
|
58
|
+
canonical_url
|
59
|
+
| remove_first: "https://www."
|
60
|
+
| remove_first: "http://www."
|
61
|
+
| remove_first: "https://"
|
62
|
+
| remove_first: "http://"
|
63
|
+
-%}
|
64
|
+
{%- else -%}
|
65
|
+
{%- assign title = page.title -%}
|
66
|
+
{%- if title == nil -%}{%- assign title = site.title -%}
|
67
|
+
{%- if title == nil -%}{%- assign title = default_title -%}{%- endif -%}{%- endif -%}
|
68
|
+
{%- endif -%}
|
69
|
+
|
70
|
+
{%- comment -%}
|
71
|
+
# License url.
|
72
|
+
{%- endcomment -%}
|
73
|
+
{%- assign license_url = page.license_url -%}
|
74
|
+
{%- if license_url == nil -%}{%- assign license_url = site.license_url -%}
|
75
|
+
{%- if license_url == nil -%}{%- assign license_url = default_license_url -%}{%- endif -%}{%- endif -%}
|
76
|
+
|
77
|
+
{%- comment -%}
|
78
|
+
# Stylesheets.
|
79
|
+
{%- endcomment -%}
|
80
|
+
{%- assign stylesheets = page.stylesheets -%}
|
81
|
+
{%- if stylesheets == nil -%}{%- assign stylesheets = site.stylesheets -%}
|
82
|
+
{%- if stylesheets == nil -%}{%- assign stylesheets = default_stylesheets -%}{%- endif -%}{%- endif -%}
|
data/_layouts/base.html
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
{%-
|
2
|
-
{%- if lang == nil -%}{%- assign lang = site.lang -%}
|
3
|
-
{%- if lang == nil -%}{%- assign lang = 'en' -%}{%- endif -%}{%- endif -%}
|
1
|
+
{%- include variables.html -%}
|
4
2
|
|
5
3
|
<!DOCTYPE html>
|
6
4
|
<html {%- if lang %} lang="{{- lang -}}"{%- endif -%}>
|
7
|
-
<head>{
|
5
|
+
<head>{%- include head.html %}
|
6
|
+
</head>
|
8
7
|
<body>
|
9
8
|
{{ content }} </body>
|
10
9
|
</html>
|
data/_layouts/post.html
CHANGED
metadata
CHANGED
@@ -1,73 +1,60 @@
|
|
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.3.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-
|
11
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: github-pages
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '228'
|
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: '
|
26
|
+
version: '228'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: webrick
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
34
|
-
type: :
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.16'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '12.0'
|
48
|
-
type: :development
|
33
|
+
version: '1.7'
|
34
|
+
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '1.7'
|
55
41
|
description:
|
56
42
|
email:
|
57
|
-
- yuuki@yuukikonno.com
|
58
43
|
executables: []
|
59
44
|
extensions: []
|
60
45
|
extra_rdoc_files: []
|
61
46
|
files:
|
62
47
|
- LICENSE
|
63
48
|
- README.md
|
49
|
+
- _includes/base.css
|
64
50
|
- _includes/head.html
|
51
|
+
- _includes/page-list.html
|
52
|
+
- _includes/post-list.html
|
65
53
|
- _includes/post.css
|
54
|
+
- _includes/static-file-list.html
|
55
|
+
- _includes/variables.html
|
66
56
|
- _layouts/base.html
|
67
|
-
- _layouts/page-list.html
|
68
|
-
- _layouts/post-list.html
|
69
57
|
- _layouts/post.html
|
70
|
-
- _layouts/static-page-list.html
|
71
58
|
homepage: https://github.com/jekyll-theme-plain/jekyll-theme-plain
|
72
59
|
licenses:
|
73
60
|
- CC0-1.0
|