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.
Files changed (67) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +0 -0
  3. data/README.md +8 -6
  4. data/_includes/assets.html +2 -2
  5. data/_includes/comment/disqus.html +14 -0
  6. data/_includes/{comment.html → comment/static/comment.html} +1 -1
  7. data/_includes/comment/static/comments.html +18 -0
  8. data/_includes/{new_comment.html → comment/static/new_comment.html} +1 -1
  9. data/_includes/comments.html +6 -18
  10. data/_includes/contact.html +0 -0
  11. data/_includes/footer.html +0 -0
  12. data/_includes/head.html +0 -0
  13. data/_includes/header.html +0 -0
  14. data/_includes/header_nav.html +0 -0
  15. data/_includes/icons/ellipsis.html +0 -0
  16. data/_includes/icons/facebook.html +0 -0
  17. data/_includes/icons/github.html +0 -0
  18. data/_includes/icons/instagram.html +0 -0
  19. data/_includes/icons/left.html +0 -0
  20. data/_includes/icons/link.html +0 -0
  21. data/_includes/icons/linkedin.html +0 -0
  22. data/_includes/icons/mail.html +0 -0
  23. data/_includes/icons/right.html +0 -0
  24. data/_includes/icons/rss.html +0 -0
  25. data/_includes/icons/smile.html +0 -0
  26. data/_includes/icons/twitter.html +0 -0
  27. data/_includes/icons/user.html +0 -0
  28. data/_includes/icons/weibo.html +0 -0
  29. data/_includes/icons.html +0 -0
  30. data/_includes/loading.html +0 -0
  31. data/_includes/pagination.html +0 -0
  32. data/_includes/slides.html +0 -0
  33. data/_includes/smiley.html +0 -0
  34. data/_includes/summary.html +0 -0
  35. data/_includes/title.html +0 -0
  36. data/_layouts/404.html +0 -0
  37. data/_layouts/archive.html +0 -0
  38. data/_layouts/blog.html +0 -0
  39. data/_layouts/book.html +0 -0
  40. data/_layouts/chapter.html +0 -0
  41. data/_layouts/default.html +0 -0
  42. data/_layouts/home.html +0 -0
  43. data/_layouts/page.html +0 -0
  44. data/_layouts/post.html +0 -0
  45. data/_layouts/slides.html +0 -0
  46. data/_sass/persephone/_archive.scss +0 -0
  47. data/_sass/persephone/_blog.scss +0 -0
  48. data/_sass/persephone/_book.scss +0 -0
  49. data/_sass/persephone/_chapter.scss +0 -0
  50. data/_sass/persephone/_comments.scss +0 -0
  51. data/_sass/persephone/_common.scss +0 -0
  52. data/_sass/persephone/_content.scss +0 -0
  53. data/_sass/persephone/_error.scss +0 -0
  54. data/_sass/persephone/_header.scss +0 -0
  55. data/_sass/persephone/_keyframes.scss +0 -0
  56. data/_sass/persephone/_list.scss +0 -0
  57. data/_sass/persephone/_minxins.scss +0 -0
  58. data/_sass/persephone/_post.scss +0 -0
  59. data/_sass/persephone/_slides.scss +0 -0
  60. data/_sass/persephone/_summary.scss +0 -0
  61. data/_sass/persephone/_variables.scss +0 -0
  62. data/_sass/persephone.scss +0 -0
  63. data/assets/css/tomorrow.css +0 -0
  64. data/assets/js/highlight.js +0 -0
  65. data/assets/js/main.js +0 -0
  66. data/assets/main.scss +0 -0
  67. metadata +7 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 2b0faa111b24835036ae6926ed762e99fb3c58666b9e08594be04ca4d79eb9c2
4
- data.tar.gz: c6ddd5da65105f71b36dd6cc98d8da366185f07ac87171a1899a68f6c7bb47da
2
+ SHA1:
3
+ metadata.gz: d5f615d1f6b3bd1aeef0798dacd6c2bab80ad51e
4
+ data.tar.gz: 61901353d6eb50d36177d30d2de73a6b336ae85a
5
5
  SHA512:
6
- metadata.gz: 31e1c3139fc83012aca0ceff257457c7dae63de2700a3919f65336c571628a735093c27482f61662e62552cfdd4f9b353fac34825b992df6120d97a85dad02b5
7
- data.tar.gz: 8af591fd7153374dc23f750cefd70695fd397cbaa425af9d12ce6515296ac105a154059ee40ab508fec5baf17e811eb47ccf4044d6b26ecfc5bf214e9b930d8c
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
- | ![blog layout](/screenshots/blog.png) | ![list layout](/screenshots/list.png) |
15
+ | ![home layout](/screenshots/home.png) | ![blog layout](/screenshots/blog.png) |
16
16
  | -- | -- |
17
- | `layout: blog` | `layout: list` [Demo](https://erl.im/blog) |
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) | ![home layout](/screenshots/home.png) |
21
- | `layout: archive` [Demo](https://erl.im/archive) | <strong style="color: red">*</strong> `layout: home` [Demo](https://erl.im) |
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 <strong style="color: red">*</strong> relied on a jekyll books generator plugin: [`jekyll-books`](https://github.com/erlzhang/jekyll-books)
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
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
51
+ - [Settings](/docs/settings.md)
52
+ - [Layouts](/docs/layouts.md)
53
+ - [`jekyll-books` generator](/docs/books.md)
52
54
 
53
55
  ## Contributing
54
56
 
@@ -1,5 +1,5 @@
1
- <link rel="stylesheet" href="{{ "/assets/main.css" | asset_version }}" />
2
- <script src="{{ "/assets/js/main.js" | asset_version }}" defer></script>
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 }}">
@@ -1,18 +1,6 @@
1
- <div id="commentContainer" class="comment-container">
2
- {%- include 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.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 -%}
File without changes
File without changes
data/_includes/head.html 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
File without changes
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/_includes/icons.html CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/_includes/title.html CHANGED
File without changes
data/_layouts/404.html CHANGED
File without changes
File without changes
data/_layouts/blog.html CHANGED
File without changes
data/_layouts/book.html CHANGED
File without changes
File without changes
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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/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.5
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-07 00:00:00.000000000 Z
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.7.8
147
+ rubygems_version: 2.5.2.1
146
148
  signing_key:
147
149
  specification_version: 4
148
150
  summary: A minimal Jekyll theme.