jekyll-theme-persephone 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE.txt +0 -0
- data/README.md +8 -6
- data/_includes/assets.html +2 -2
- data/_includes/comment/disqus.html +14 -0
- data/_includes/{comment.html → comment/static/comment.html} +1 -1
- data/_includes/comment/static/comments.html +18 -0
- data/_includes/{new_comment.html → comment/static/new_comment.html} +1 -1
- data/_includes/comments.html +6 -18
- data/_includes/contact.html +0 -0
- data/_includes/footer.html +0 -0
- data/_includes/head.html +0 -0
- data/_includes/header.html +0 -0
- data/_includes/header_nav.html +0 -0
- data/_includes/icons/ellipsis.html +0 -0
- data/_includes/icons/facebook.html +0 -0
- data/_includes/icons/github.html +0 -0
- data/_includes/icons/instagram.html +0 -0
- data/_includes/icons/left.html +0 -0
- data/_includes/icons/link.html +0 -0
- data/_includes/icons/linkedin.html +0 -0
- data/_includes/icons/mail.html +0 -0
- data/_includes/icons/right.html +0 -0
- data/_includes/icons/rss.html +0 -0
- data/_includes/icons/smile.html +0 -0
- data/_includes/icons/twitter.html +0 -0
- data/_includes/icons/user.html +0 -0
- data/_includes/icons/weibo.html +0 -0
- data/_includes/icons.html +0 -0
- data/_includes/loading.html +0 -0
- data/_includes/pagination.html +0 -0
- data/_includes/slides.html +0 -0
- data/_includes/smiley.html +0 -0
- data/_includes/summary.html +0 -0
- data/_includes/title.html +0 -0
- data/_layouts/404.html +0 -0
- data/_layouts/archive.html +0 -0
- data/_layouts/blog.html +0 -0
- data/_layouts/book.html +0 -0
- data/_layouts/chapter.html +0 -0
- data/_layouts/default.html +0 -0
- data/_layouts/home.html +0 -0
- data/_layouts/page.html +0 -0
- data/_layouts/post.html +0 -0
- data/_layouts/slides.html +0 -0
- data/_sass/persephone/_archive.scss +0 -0
- data/_sass/persephone/_blog.scss +0 -0
- data/_sass/persephone/_book.scss +0 -0
- data/_sass/persephone/_chapter.scss +0 -0
- data/_sass/persephone/_comments.scss +0 -0
- data/_sass/persephone/_common.scss +0 -0
- data/_sass/persephone/_content.scss +0 -0
- data/_sass/persephone/_error.scss +0 -0
- data/_sass/persephone/_header.scss +0 -0
- data/_sass/persephone/_keyframes.scss +0 -0
- data/_sass/persephone/_list.scss +0 -0
- data/_sass/persephone/_minxins.scss +0 -0
- data/_sass/persephone/_post.scss +0 -0
- data/_sass/persephone/_slides.scss +0 -0
- data/_sass/persephone/_summary.scss +0 -0
- data/_sass/persephone/_variables.scss +0 -0
- data/_sass/persephone.scss +0 -0
- data/assets/css/tomorrow.css +0 -0
- data/assets/js/highlight.js +0 -0
- data/assets/js/main.js +0 -0
- data/assets/main.scss +0 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d5f615d1f6b3bd1aeef0798dacd6c2bab80ad51e
|
4
|
+
data.tar.gz: 61901353d6eb50d36177d30d2de73a6b336ae85a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca0c72c62f6d60f33496030d1cba26e30f6c7414add95909de20980b3e2a0a941cae0d25f4647d1e587982d4207849d1a2600f62c2c5fa7658a116bbab529997
|
7
|
+
data.tar.gz: a02e70711d2dd7396029cfc91d89669efef7bfc357d2189c594ecf23755340a6f0f7b742608f0d3148c048e8cc83142c9de0482ccc23f28b9cf7721ceac31d80
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -12,17 +12,17 @@ To experiment with this code, add some sample content and run `bundle exec jekyl
|
|
12
12
|
|
13
13
|
## Demo
|
14
14
|
|
15
|
-
| ![
|
15
|
+
| ![home layout](/screenshots/home.png) | ![blog layout](/screenshots/blog.png) |
|
16
16
|
| -- | -- |
|
17
|
-
| `layout:
|
17
|
+
| `layout: home` [Demo](https://en.erl.im/blog/) | `layout: blog` [Demo](https://erl.im/blog) |
|
18
18
|
| ![post layout](/screenshots/post.png) | ![page layout](/screenshots/page.png) |
|
19
19
|
| `layout: post` [Demo](https://erl.im/the-jekyll-comment-system) | `layout: page` [Demo](https://erl.im/about) |
|
20
|
-
| ![archive layout](/screenshots/archive.png) | ![
|
21
|
-
| `layout: archive` [Demo](https://erl.im/archive) | <strong style="color: red">*</strong> `layout:
|
20
|
+
| ![archive layout](/screenshots/archive.png) | ![slides layout](/screenshots/slides.png) |
|
21
|
+
| `layout: archive` [Demo](https://erl.im/archive) | <strong style="color: red">*</strong> `layout: slides` [Demo](https://erl.im) |
|
22
22
|
| ![book layout](/screenshots/book.png) | ![chapter layout](/screenshots/chapter.png) |
|
23
23
|
| <strong style="color: red">*</strong> `layout: book` [Demo](https://erl.im/corner) | <strong style="color: red">*</strong> `layout: chapter` [Demo](https://erl.im/corner/1) |
|
24
24
|
|
25
|
-
The layout with red
|
25
|
+
The layout with red * relied on a jekyll books generator plugin: [`jekyll-books`](https://github.com/erlzhang/jekyll-books)
|
26
26
|
|
27
27
|
## Installation
|
28
28
|
|
@@ -48,7 +48,9 @@ Or install it yourself as:
|
|
48
48
|
|
49
49
|
## Usage
|
50
50
|
|
51
|
-
|
51
|
+
- [Settings](/docs/settings.md)
|
52
|
+
- [Layouts](/docs/layouts.md)
|
53
|
+
- [`jekyll-books` generator](/docs/books.md)
|
52
54
|
|
53
55
|
## Contributing
|
54
56
|
|
data/_includes/assets.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<link rel="stylesheet" href="{{ "/assets/main.css" |
|
2
|
-
<script src="{{ "/assets/js/main.js" |
|
1
|
+
<link rel="stylesheet" href="{{ "/assets/main.css?v=0.1.6" | relative_url }}" />
|
2
|
+
<script src="{{ "/assets/js/main.js?v=0.1.6" | relative_url }}" defer></script>
|
3
3
|
{%- if "chapter,post,page" contains page.layout -%}
|
4
4
|
{%- if site.theme_setting.code or page.code -%}
|
5
5
|
<link rel="stylesheet" href="{{ "/assets/css/tomorrow.css" | relative_url }}" />
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div id="disqus_thread"></div>
|
2
|
+
<script>
|
3
|
+
var disqus_config = function () {
|
4
|
+
this.page.url = "{{ page.url | absolute_url }}";
|
5
|
+
this.page.identifier = "{{ page.slug }}";
|
6
|
+
};
|
7
|
+
(function() { // DON'T EDIT BELOW THIS LINE
|
8
|
+
var d = document, s = d.createElement('script');
|
9
|
+
s.src = 'https://{{ site.comment.disqus.name }}.disqus.com/embed.js';
|
10
|
+
s.setAttribute('data-timestamp', +new Date());
|
11
|
+
(d.head || d.body).appendChild(s);
|
12
|
+
})();
|
13
|
+
</script>
|
14
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
@@ -34,6 +34,6 @@
|
|
34
34
|
{%- assign url = reply[1].url -%}
|
35
35
|
{%- assign date = reply[1].date -%}
|
36
36
|
{%- assign message = reply[1].message -%}
|
37
|
-
{%- include comment.html index=index parent=parent email=email name=name url=url date=date message=message parent_name=parent_name -%}
|
37
|
+
{%- include comment/static/comment.html index=index parent=parent email=email name=name url=url date=date message=message parent_name=parent_name -%}
|
38
38
|
{%- endfor -%}
|
39
39
|
</div>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div id="commentContainer" class="comment-container">
|
2
|
+
{%- include comment/static/new_comment.html -%}
|
3
|
+
<div class="comment__list" id="commentsList">
|
4
|
+
{%- if site.data.comments[page.slug] -%}
|
5
|
+
{%- assign comments = site.data.comments[page.slug] | sort | where_exp: 'comment', 'comment[1].parent == ""' -%}
|
6
|
+
{%- for comment in comments -%}
|
7
|
+
{%- assign index = forloop.index -%}
|
8
|
+
{%- assign email = comment[1].email -%}
|
9
|
+
{%- assign name = comment[1].name -%}
|
10
|
+
{%- assign url = comment[1].url -%}
|
11
|
+
{%- assign date = comment[1].date -%}
|
12
|
+
{%- assign message = comment[1].message -%}
|
13
|
+
{%- assign parent = comment[1].parent -%}
|
14
|
+
{% include comment/static/comment.html index=index email=email name=name url=url date=date message=message -%}
|
15
|
+
{%- endfor -%}
|
16
|
+
{%- endif -%}
|
17
|
+
</div>
|
18
|
+
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<form method="POST" action="{{ site.comment.postUrl }}" class="comment__form clearfix" id="newComment">
|
1
|
+
<form method="POST" action="{{ site.comment.static.postUrl }}" class="comment__form clearfix" id="newComment">
|
2
2
|
<input name="options[slug]" type="hidden" value="{{ page.slug }}">
|
3
3
|
<input name="options[title]" type="hidden" value="{{ page.title }}">
|
4
4
|
<input name="options[url]" type="hidden" value="{{ page.url | absolute_url }}">
|
data/_includes/comments.html
CHANGED
@@ -1,18 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
{%- assign index = forloop.index -%}
|
8
|
-
{%- assign email = comment[1].email -%}
|
9
|
-
{%- assign name = comment[1].name -%}
|
10
|
-
{%- assign url = comment[1].url -%}
|
11
|
-
{%- assign date = comment[1].date -%}
|
12
|
-
{%- assign message = comment[1].message -%}
|
13
|
-
{%- assign parent = comment[1].parent -%}
|
14
|
-
{% include comment.html index=index email=email name=name url=url date=date message=message -%}
|
15
|
-
{%- endfor -%}
|
16
|
-
{%- endif -%}
|
17
|
-
</div>
|
18
|
-
</div>
|
1
|
+
{%- case site.comment.provider -%}
|
2
|
+
{%- when 'static' -%}
|
3
|
+
{% include comment/static/comments.html %}
|
4
|
+
{%- when 'disqus' -%}
|
5
|
+
{% include comment/disqus.html %}
|
6
|
+
{%- endcase -%}
|
data/_includes/contact.html
CHANGED
File without changes
|
data/_includes/footer.html
CHANGED
File without changes
|
data/_includes/head.html
CHANGED
File without changes
|
data/_includes/header.html
CHANGED
File without changes
|
data/_includes/header_nav.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/_includes/icons/github.html
CHANGED
File without changes
|
File without changes
|
data/_includes/icons/left.html
CHANGED
File without changes
|
data/_includes/icons/link.html
CHANGED
File without changes
|
File without changes
|
data/_includes/icons/mail.html
CHANGED
File without changes
|
data/_includes/icons/right.html
CHANGED
File without changes
|
data/_includes/icons/rss.html
CHANGED
File without changes
|
data/_includes/icons/smile.html
CHANGED
File without changes
|
File without changes
|
data/_includes/icons/user.html
CHANGED
File without changes
|
data/_includes/icons/weibo.html
CHANGED
File without changes
|
data/_includes/icons.html
CHANGED
File without changes
|
data/_includes/loading.html
CHANGED
File without changes
|
data/_includes/pagination.html
CHANGED
File without changes
|
data/_includes/slides.html
CHANGED
File without changes
|
data/_includes/smiley.html
CHANGED
File without changes
|
data/_includes/summary.html
CHANGED
File without changes
|
data/_includes/title.html
CHANGED
File without changes
|
data/_layouts/404.html
CHANGED
File without changes
|
data/_layouts/archive.html
CHANGED
File without changes
|
data/_layouts/blog.html
CHANGED
File without changes
|
data/_layouts/book.html
CHANGED
File without changes
|
data/_layouts/chapter.html
CHANGED
File without changes
|
data/_layouts/default.html
CHANGED
File without changes
|
data/_layouts/home.html
CHANGED
File without changes
|
data/_layouts/page.html
CHANGED
File without changes
|
data/_layouts/post.html
CHANGED
File without changes
|
data/_layouts/slides.html
CHANGED
File without changes
|
File without changes
|
data/_sass/persephone/_blog.scss
CHANGED
File without changes
|
data/_sass/persephone/_book.scss
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/_sass/persephone/_list.scss
CHANGED
File without changes
|
File without changes
|
data/_sass/persephone/_post.scss
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/_sass/persephone.scss
CHANGED
File without changes
|
data/assets/css/tomorrow.css
CHANGED
File without changes
|
data/assets/js/highlight.js
CHANGED
File without changes
|
data/assets/js/main.js
CHANGED
File without changes
|
data/assets/main.scss
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-persephone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- erlzhang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -62,7 +62,10 @@ files:
|
|
62
62
|
- LICENSE.txt
|
63
63
|
- README.md
|
64
64
|
- _includes/assets.html
|
65
|
-
- _includes/comment.html
|
65
|
+
- _includes/comment/disqus.html
|
66
|
+
- _includes/comment/static/comment.html
|
67
|
+
- _includes/comment/static/comments.html
|
68
|
+
- _includes/comment/static/new_comment.html
|
66
69
|
- _includes/comments.html
|
67
70
|
- _includes/contact.html
|
68
71
|
- _includes/footer.html
|
@@ -85,7 +88,6 @@ files:
|
|
85
88
|
- _includes/icons/user.html
|
86
89
|
- _includes/icons/weibo.html
|
87
90
|
- _includes/loading.html
|
88
|
-
- _includes/new_comment.html
|
89
91
|
- _includes/pagination.html
|
90
92
|
- _includes/slides.html
|
91
93
|
- _includes/smiley.html
|
@@ -142,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
144
|
version: '0'
|
143
145
|
requirements: []
|
144
146
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.5.2.1
|
146
148
|
signing_key:
|
147
149
|
specification_version: 4
|
148
150
|
summary: A minimal Jekyll theme.
|