jekyll-theme-plain 0.7.0 → 0.8.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/README.md +1 -1
- data/_includes/head.html +2 -5
- data/_includes/post.css +6 -0
- data/_includes/variables.html +14 -11
- data/_layouts/post.html +8 -2
- metadata +2 -3
- data/_includes/plain.css +0 -4
- data/_layouts/plain.html +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a72865e582925043c4472a195ff1e02ced4986d45145ad5821effe5c77c51b5
|
|
4
|
+
data.tar.gz: f79ce66bf86817636ef9bd9e26da58a7daa4909343ce7f76e4d964e6fad4ed54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a27dc552b23ee4df4210f6991f991941a1af0ed112aa731653085cb2cc49afdcf448460dc3ddd53e14aea91dd2b7f691e20417a06b053932cce8adf875ff5d4a
|
|
7
|
+
data.tar.gz: 9b3c891b67289a69acce29d3e3389f3af5abda25e34ef6f549f15c5cfb986365003bfa8e5f51467f789fa0dad65b527963892fdf6e7a5cf8deb4a49748d028dc
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ See the template's [_config.yml](https://github.com/jekyll-theme-plain/blog/blob
|
|
|
26
26
|
## Layouts
|
|
27
27
|
|
|
28
28
|
* [default](_layouts/default.html) (aliases: base, home, page)
|
|
29
|
-
* [
|
|
29
|
+
* [post](_layouts/post.html)
|
|
30
30
|
|
|
31
31
|
## Includes
|
|
32
32
|
|
data/_includes/head.html
CHANGED
|
@@ -8,11 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
{%- if viewport %}
|
|
10
10
|
<meta name="viewport" content="{{- viewport -}}">
|
|
11
|
-
{%- endif
|
|
12
|
-
|
|
13
|
-
{%- if title %}
|
|
11
|
+
{%- endif %}
|
|
14
12
|
<title>{{- title -}}</title>
|
|
15
|
-
{%- endif -%}
|
|
16
13
|
|
|
17
14
|
{%- if canonical_url %}
|
|
18
15
|
<link rel="canonical" href="{{- canonical_url -}}">
|
|
@@ -22,7 +19,7 @@
|
|
|
22
19
|
<link rel="license" href="{{- license_url -}}">
|
|
23
20
|
{%- endif -%}
|
|
24
21
|
|
|
25
|
-
{%- if stylesheets.size > 0 %}
|
|
22
|
+
{%- if stylesheets and stylesheets.size > 0 %}
|
|
26
23
|
<style>
|
|
27
24
|
{%- for stylesheet in stylesheets -%}
|
|
28
25
|
{%- include {{ stylesheet }} -%}
|
data/_includes/post.css
ADDED
data/_includes/variables.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
|
-
# Whether the page is
|
|
2
|
+
# Whether the page is a post.
|
|
3
3
|
{%- endcomment -%}
|
|
4
|
-
{%- if page.layout == "
|
|
5
|
-
{%- assign
|
|
4
|
+
{%- if page.layout == "post" -%}
|
|
5
|
+
{%- assign is_post = true -%}
|
|
6
6
|
{%- endif -%}
|
|
7
7
|
|
|
8
8
|
{%- comment -%}
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
{%- assign default_charset = "utf-8" -%}
|
|
13
13
|
{%- assign default_color_scheme = "light dark" -%}
|
|
14
14
|
{%- assign default_viewport = "width=device-width, initial-scale=1" -%}
|
|
15
|
-
{%- assign default_title =
|
|
15
|
+
{%- assign default_title = nil -%}
|
|
16
16
|
{%- assign default_canonical_url = page.url | absolute_url -%}
|
|
17
|
-
{%- assign default_license_url =
|
|
18
|
-
{%- assign default_stylesheets =
|
|
17
|
+
{%- assign default_license_url = nil -%}
|
|
18
|
+
{%- assign default_stylesheets = nil -%}
|
|
19
19
|
|
|
20
20
|
{%- comment -%}
|
|
21
21
|
# Lang.
|
|
@@ -55,7 +55,14 @@
|
|
|
55
55
|
{%- comment -%}
|
|
56
56
|
# Title.
|
|
57
57
|
{%- endcomment -%}
|
|
58
|
-
{%-
|
|
58
|
+
{%- assign title = page.title -%}
|
|
59
|
+
{%- if title == nil -%}{%- assign title = site.title -%}
|
|
60
|
+
{%- if title == nil -%}{%- assign title = default_title -%}{%- endif -%}{%- endif -%}
|
|
61
|
+
|
|
62
|
+
{%- comment -%}
|
|
63
|
+
# If the title is empty, sets the canonical URL as the title.
|
|
64
|
+
{%- endcomment -%}
|
|
65
|
+
{%- if title.size == 0 -%}
|
|
59
66
|
{%-
|
|
60
67
|
assign title =
|
|
61
68
|
canonical_url
|
|
@@ -64,10 +71,6 @@
|
|
|
64
71
|
| remove_first: "https://"
|
|
65
72
|
| remove_first: "http://"
|
|
66
73
|
-%}
|
|
67
|
-
{%- else -%}
|
|
68
|
-
{%- assign title = page.title -%}
|
|
69
|
-
{%- if title == nil -%}{%- assign title = site.title -%}
|
|
70
|
-
{%- if title == nil -%}{%- assign title = default_title -%}{%- endif -%}{%- endif -%}
|
|
71
74
|
{%- endif -%}
|
|
72
75
|
|
|
73
76
|
{%- comment -%}
|
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.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yuuki
|
|
@@ -42,14 +42,13 @@ files:
|
|
|
42
42
|
- _includes/directory-listing.html
|
|
43
43
|
- _includes/head.html
|
|
44
44
|
- _includes/page-listing.html
|
|
45
|
-
- _includes/plain.css
|
|
46
45
|
- _includes/post-listing.html
|
|
46
|
+
- _includes/post.css
|
|
47
47
|
- _includes/variables.html
|
|
48
48
|
- _layouts/base.html
|
|
49
49
|
- _layouts/default.html
|
|
50
50
|
- _layouts/home.html
|
|
51
51
|
- _layouts/page.html
|
|
52
|
-
- _layouts/plain.html
|
|
53
52
|
- _layouts/post.html
|
|
54
53
|
homepage: https://github.com/jekyll-theme-plain/jekyll-theme-plain
|
|
55
54
|
licenses:
|
data/_includes/plain.css
DELETED