jekyll-theme-persephone 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/assets.html +14 -0
  5. data/_includes/comment.html +35 -0
  6. data/_includes/comments.html +18 -0
  7. data/_includes/contact.html +7 -0
  8. data/_includes/footer.html +5 -0
  9. data/_includes/head.html +10 -0
  10. data/_includes/header.html +24 -0
  11. data/_includes/header_nav.html +10 -0
  12. data/_includes/icons.html +42 -0
  13. data/_includes/icons/ellipsis.html +5 -0
  14. data/_includes/icons/facebook.html +2 -0
  15. data/_includes/icons/github.html +3 -0
  16. data/_includes/icons/instagram.html +5 -0
  17. data/_includes/icons/left.html +3 -0
  18. data/_includes/icons/link.html +4 -0
  19. data/_includes/icons/linkedin.html +5 -0
  20. data/_includes/icons/mail.html +4 -0
  21. data/_includes/icons/right.html +3 -0
  22. data/_includes/icons/rss.html +5 -0
  23. data/_includes/icons/smile.html +6 -0
  24. data/_includes/icons/twitter.html +3 -0
  25. data/_includes/icons/user.html +4 -0
  26. data/_includes/icons/weibo.html +3 -0
  27. data/_includes/loading.html +4 -0
  28. data/_includes/new_comment.html +50 -0
  29. data/_includes/pagination.html +29 -0
  30. data/_includes/slides.html +53 -0
  31. data/_includes/smiley.html +12 -0
  32. data/_includes/summary.html +30 -0
  33. data/_includes/title.html +7 -0
  34. data/_layouts/404.html +8 -0
  35. data/_layouts/archive.html +33 -0
  36. data/_layouts/blog.html +29 -0
  37. data/_layouts/book.html +28 -0
  38. data/_layouts/chapter.html +32 -0
  39. data/_layouts/default.html +7 -0
  40. data/_layouts/home.html +6 -0
  41. data/_layouts/list.html +33 -0
  42. data/_layouts/page.html +17 -0
  43. data/_layouts/post.html +42 -0
  44. data/_sass/persephone.scss +29 -0
  45. data/_sass/persephone/_archive.scss +140 -0
  46. data/_sass/persephone/_blog.scss +190 -0
  47. data/_sass/persephone/_book.scss +120 -0
  48. data/_sass/persephone/_chapter.scss +192 -0
  49. data/_sass/persephone/_comments.scss +208 -0
  50. data/_sass/persephone/_common.scss +110 -0
  51. data/_sass/persephone/_content.scss +278 -0
  52. data/_sass/persephone/_error.scss +16 -0
  53. data/_sass/persephone/_header.scss +140 -0
  54. data/_sass/persephone/_keyframes.scss +11 -0
  55. data/_sass/persephone/_list.scss +105 -0
  56. data/_sass/persephone/_minxins.scss +68 -0
  57. data/_sass/persephone/_post.scss +169 -0
  58. data/_sass/persephone/_slides.scss +264 -0
  59. data/_sass/persephone/_summary.scss +101 -0
  60. data/_sass/persephone/_variables.scss +15 -0
  61. data/assets/css/tomorrow.css +72 -0
  62. data/assets/js/highlight.js +2 -0
  63. data/assets/js/main.js +161 -0
  64. data/assets/main.scss +4 -0
  65. metadata +149 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: de841eb6821218331f8ca2079855b3f663377c47
4
+ data.tar.gz: adcc1602a354b762bc6d4e2b75632f8694b48ee3
5
+ SHA512:
6
+ metadata.gz: f90fb7d2a5bdc82967171198178953a4e4d83ca28d114f2e6e413ac44d8eb8066ffb5a01b023490fa61faafe91ef59e4b951d9b6f0538bafebac633713083b03
7
+ data.tar.gz: 59ae0a2e826573241f15b448bb34d1e547413b34a5663271e2e2805325263b7011b9df7a564b3087881dbd18c26faffd78b96ab6c99974447f94d193df307d2f
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 zhangshiyu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # jekyll-theme-persephone
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "jekyll-theme-persephone"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-persephone
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-persephone
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/erlzhang/jekyll-theme-persephone. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-persephone.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
@@ -0,0 +1,14 @@
1
+ <link rel="stylesheet" href="{{ "/assets/main.css" | asset_version }}" />
2
+ <script src="{{ "/assets/js/main.js" | asset_version }}" defer></script>
3
+ {%- if "chapter,post,page" contains page.layout -%}
4
+ {%- if site.theme_setting.code or page.code -%}
5
+ <link rel="stylesheet" href="{{ "/assets/css/tomorrow.css" | relative_url }}" />
6
+ <script src="{{ "/assets/js/highlight.js" | relative_url }}"></script>
7
+ {%- endif -%}
8
+ {%- if site.theme_setting.math or page.math -%}
9
+ <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
10
+ {%- endif -%}
11
+ {%- if site.theme_setting.mermaid or page.mermaid -%}
12
+ <script src="https://unpkg.com/mermaid@7.1.0/dist/mermaid.min.js" defer></script>
13
+ {%- endif -%}
14
+ {%- endif -%}
@@ -0,0 +1,35 @@
1
+ <div class="comment" id="comment-{{index}}">
2
+ <div class="comment-main clearfix">
3
+ <div class="comment-left">
4
+ <div class="comment__avatar"><img src="https://www.gravatar.com/avatar/{{ email }}?d=mm&s=45"></div>
5
+ </div>
6
+ <div class="comment-right">
7
+ <div class="comment__meta">
8
+ {%- if url and url != "" -%}
9
+ <a class="comment__author" href="{% if url contains "http" -%}{{ url }}{% else %}{{ url | prepend: "http://" }}{% endif %}" target="_blank" rel="nofollow">{{ name }}</a>
10
+ {%- else -%}
11
+ <span class="comment__author">{{ name }}</span>
12
+ {%- endif -%}
13
+ <span class="comment__date">{{ date | date: "%Y-%m-%d %H:%M"}}</span>
14
+ </div>
15
+ <div class="comment__content">
16
+ {{ message | smiley | markdownify }}
17
+ </div>
18
+ <div class="comment__reply">
19
+ <a href="#commentContainer" class="reply-btn" data-reply-to="{{ index }}" data-reply-id="{{ email }}">{{ site.theme_setting.lang.comment.reply | default: "Reply" }}</a>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ {%- capture i -%}{{ include.index }}{% endcapture -%}
24
+ {%- assign replies = site.data.comments[page.slug] | sort | where_exp: 'comment', 'comment[1].parent == i' -%}
25
+ {%- for reply in replies -%}
26
+ {%- assign index = forloop.index | prepend: '-' | prepend: include.index -%}
27
+ {%- assign parent = reply[1].parent | to_integer -%}
28
+ {%- assign email = reply[1].email -%}
29
+ {%- assign name = reply[1].name -%}
30
+ {%- assign url = reply[1].url -%}
31
+ {%- assign date = reply[1].date -%}
32
+ {%- assign message = reply[1].message -%}
33
+ {%- include comment.html index=index parent=parent email=email name=name url=url date=date message=message -%}
34
+ {%- endfor -%}
35
+ </div>
@@ -0,0 +1,18 @@
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>
@@ -0,0 +1,7 @@
1
+ <aside class="post__contact">
2
+ {%- assign about_page_path = site.theme_setting.about_page | default: "index.md" %}
3
+ {%- assign about_page = site.pages | where: "path", about_page_path | first -%}
4
+ <h4><a href="{{ about_page.url | relative_url }}">{{ site.author | default: site.title }}</a></h4>
5
+ {{ site.description | markdownify }}
6
+ {%- include icons.html -%}
7
+ </aside>
@@ -0,0 +1,5 @@
1
+ <footer class="site-footer">
2
+ © {{ site.time | date: "%Y" }}
3
+ <a href="{{ "/" | relative_url }}">{{ site.title }}</a>
4
+ All rights reversed.
5
+ </footer>
@@ -0,0 +1,10 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <meta name="author" content="{{ site.author.name }}">
5
+ {%- include title.html -%}
6
+ {{ site.head_code }}
7
+ <meta name="keywords" content="{{ page.keywords }}">
8
+ <meta name="description" content="{{ page.description }}">
9
+ {%- include assets.html -%}
10
+ </head>
@@ -0,0 +1,24 @@
1
+ <a href="{{ "/" | relative_url }}" class="logo">
2
+ {%- if site.logo -%}
3
+ <img src="{{ site.logo | img_url_prefix }}" class="logo_img">
4
+ {%- endif -%}
5
+ <h1>{{ site.title }}</h1>
6
+ </a>
7
+ {%- if "home,chapter,book" contains page.layout and site.theme_setting.archive_page -%}
8
+ {%- assign archive_page = site.pages | where: "path", site.theme_setting.archive_page | first -%}
9
+ <a href="{{ archive_page.url | relative_url }}" class="sidebar__toggler">
10
+ <span class="sidebar__toggler_top"></span>
11
+ <span class="sidebar__toggler_middle"></span>
12
+ <span class="sidebar__toggler_bottom"></span>
13
+ </a>
14
+ {%- endif %}
15
+ {%- if page.layout == "chapter" -%}
16
+ <div class="book-header" role="navigation">
17
+ <a href="#" id="summaryToggler" class="summary__toggler">
18
+ {% include icons/ellipsis.html%}
19
+ </a>
20
+ <h1>
21
+ {{ page.title }} - {{ page.book.title }}
22
+ </h1>
23
+ </div>
24
+ {%- endif -%}
@@ -0,0 +1,10 @@
1
+ {%- if site.theme_setting.nav_pages -%}
2
+ <nav class="top-nav">
3
+ {% for page_path in site.theme_setting.nav_pages %}
4
+ {%- assign my_page = site.pages | where: "path", page_path | first -%}
5
+ {% if my_page.title %}
6
+ <a href="{{ my_page.url | relative_url}}" class="nav-link {% if page.url == my_page.url %}active{% endif %}">{{ my_page.title}}</a>
7
+ {% endif %}
8
+ {% endfor %}
9
+ </nav>
10
+ {%- endif -%}
@@ -0,0 +1,42 @@
1
+ <div class="icon__list">
2
+ {%- if site.email -%}
3
+ <a href="mailto:{{ site.email }}" class="icon__link" target="_blank">
4
+ {%- include icons/mail.html -%}
5
+ </a>
6
+ {%- endif -%}
7
+ {%- if site.social.github -%}
8
+ <a href="https://github.com/{{ site.social.github | cgi_escape | escape }}" class="icon__link" target="_blank">
9
+ {%- include icons/github.html -%}
10
+ </a>
11
+ {%- endif -%}
12
+ {%- if site.social.twitter -%}
13
+ <a href="https://twitter.com/{{ site.social.twitter | cgi_escape | escape }}" class="icon__link" target="_blank">
14
+ {%- include icons/twitter.html -%}
15
+ </a>
16
+ {%- endif -%}
17
+ {%- if site.social.facebook -%}
18
+ <a href="https://www.facebook.com/{{ site.social.facebook | cgi_escape | escape }}" class="icon__link" target="_blank">
19
+ {%- include icons/facebook.html -%}
20
+ </a>
21
+ {%- endif -%}
22
+ {%- if site.social.instagram -%}
23
+ <a href="https://www.instagram.com/{{ site.social.instagram | cgi_escape | escape }}" class="icon__link">
24
+ {%- include icons/instagram.html -%}
25
+ </a>
26
+ {%- endif -%}
27
+ {%- if site.social.linkedin -%}
28
+ <a href="https://www.linkedin.com/in/{{ site.social.linkedin | cgi_escape | escape }}" class="icon__link">
29
+ {%- include icons/linkedin.html -%}
30
+ </a>
31
+ {%- endif -%}
32
+ {%- if site.social.weibo -%}
33
+ <a href="https://weibo.com/{{ site.social.weibo | cgi_escape | escape }}" class="icon__link">
34
+ {%- include icons/weibo.html -%}
35
+ </a>
36
+ {%- endif -%}
37
+ {%- if site.rss -%}
38
+ <a href="{{ site.rss | relative_url }}" class="icon__link">
39
+ {%- include icons/rss.html -%}
40
+ </a>
41
+ {%- endif -%}
42
+ </div>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
+ <circle cx="12" cy="12" r="1"></circle>
3
+ <circle cx="19" cy="12" r="1"></circle>
4
+ <circle cx="5" cy="12" r="1"></circle>
5
+ </svg>
@@ -0,0 +1,2 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke">
2
+ <path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 64 64" class="icon__fill">
2
+ <path stroke-width="0" d="M32 0 C14 0 0 14 0 32 0 53 19 62 22 62 24 62 24 61 24 60 L24 55 C17 57 14 53 13 50 13 50 13 49 11 47 10 46 6 44 10 44 13 44 15 48 15 48 18 52 22 51 24 50 24 48 26 46 26 46 18 45 12 42 12 31 12 27 13 24 15 22 15 22 13 18 15 13 15 13 20 13 24 17 27 15 37 15 40 17 44 13 49 13 49 13 51 20 49 22 49 22 51 24 52 27 52 31 52 42 45 45 38 46 39 47 40 49 40 52 L40 60 C40 61 40 62 42 62 45 62 64 53 64 32 64 14 50 0 32 0 Z" />
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke">
2
+ <rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect>
3
+ <path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path>
4
+ <line x1="17.5" y1="6.5" x2="17.5" y2="6.5"></line>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
2
+ <path d="M20 30 L8 16 20 2" />
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
2
+ <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
3
+ <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke__icon">
2
+ <path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
3
+ <rect x="2" y="9" width="4" height="12"></rect>
4
+ <circle cx="4" cy="4" r="2"></circle>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
2
+ <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
3
+ <polyline points="22,6 12,13 2,6"></polyline>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
2
+ <path d="M12 30 L24 16 12 2" />
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
2
+ <path d="M4 11a9 9 0 0 1 9 9"></path>
3
+ <path d="M4 4a16 16 0 0 1 16 16"></path>
4
+ <circle cx="5" cy="19" r="1"></circle>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon__stroke">
2
+ <circle cx="12" cy="12" r="10"></circle>
3
+ <path d="M8 14s1.5 2 4 2 4-2 4-2"></path>
4
+ <line x1="9" y1="9" x2="9.01" y2="9"></line>
5
+ <line x1="15" y1="9" x2="15.01" y2="9"></line>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg class="icon__stroke" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
2
+ <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
3
+ <circle cx="12" cy="7" r="4"></circle>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 1024 1024" class="icon__fill">
2
+ <path d="M385.718857 733.696c16.018286-26.294857 7.424-56.576-19.419428-67.986286-25.709714-10.861714-60.013714 0.585143-75.995429 25.709715-16.566857 25.709714-8.557714 55.990857 17.152 67.986285 26.294857 11.995429 61.696 0.585143 78.299429-25.709714z m53.723429-69.12c5.705143-10.276571 2.304-21.723429-8.009143-25.709714a24.941714 24.941714 0 0 0-28.562286 10.861714c-5.705143 10.276571-2.852571 21.138286 7.424 25.709714a24.356571 24.356571 0 0 0 29.147429-10.861714z m99.401143 61.147429c-34.304 77.714286-133.705143 119.990857-218.294858 92.562285-81.700571-26.294857-116.004571-106.861714-80.566857-179.419428 35.437714-70.838857 126.281143-110.848 206.848-90.294857 84.004571 21.723429 126.281143 100.571429 92.013715 177.152z m178.285714-91.428572c-10.861714-111.433143-157.147429-188.013714-326.838857-171.446857-169.728 17.152-297.728 120.576-286.866286 232.009143s157.147429 188.013714 326.838857 171.446857c169.728-17.152 297.728-120.576 286.866286-232.009143z m176.018286 2.267429c0 128.585143-185.161143 290.304-463.433143 290.304C217.161143 926.866286 0 824.027429 0 654.299429c0-88.576 55.990857-190.866286 152.576-287.414858 129.133714-129.133714 279.442286-187.428571 336.018286-130.852571 25.161143 24.576 27.428571 67.986286 11.446857 119.442286-8.009143 26.294857 24.576 11.446857 24.576 11.995428 104.009143-43.995429 194.852571-46.299429 227.986286 1.133715 17.700571 25.161143 16.018286 60.562286 0 101.705142-7.424 18.870857 2.304 21.723429 16.566857 26.294858 58.843429 18.285714 124.013714 62.281143 124.013714 139.995428z m-42.276572-356.571429a131.401143 131.401143 0 0 1 27.428572 129.133714 33.572571 33.572571 0 1 1-64-20.553142c6.838857-21.723429 2.304-45.714286-13.714286-63.414858s-39.424-24.576-61.147429-20.004571c-18.285714 3.986286-36.571429-7.424-40.009143-25.709714a33.462857 33.462857 0 0 1 25.709715-40.009143 130.669714 130.669714 0 0 1 125.696 40.557714z m103.424-93.147428c67.437714 74.276571 85.138286 175.981714 56.576 265.142857-6.838857 20.553143-28.562286 32-49.152 25.161143s-32-28.562286-25.709714-49.152c20.553143-63.414857 8.009143-136.009143-40.009143-188.562286a192.804571 192.804571 0 0 0-183.442286-59.428572c-21.138286 4.571429-42.276571-9.142857-46.848-30.281142s9.142857-41.728 30.281143-46.299429c92.013714-19.419429 190.866286 8.557714 258.304 83.419429z" stroke-width="0"></path>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <div class="loading" id="loading">
2
+ <div class="loading__icon">
3
+ </div>
4
+ </div>
@@ -0,0 +1,50 @@
1
+ <form method="POST" action="{{ site.comment.postUrl }}" class="comment__form clearfix" id="newComment">
2
+ <input name="options[slug]" type="hidden" value="{{ page.slug }}">
3
+ <input name="options[title]" type="hidden" value="{{ page.title }}">
4
+ <input name="options[url]" type="hidden" value="{{ page.url | prepend: site.baseurl }}">
5
+ <input name="options[replyTo]" type="hidden" value="">
6
+ <input name="fields[parent]" type="hidden" value="">
7
+ <div class="comment-left">
8
+ <div class="comment__avatar">
9
+ <img src="https://www.gravatar.com/avatar/?d=mm&s=54" id="visitorAvatar"/>
10
+ </div>
11
+ </div>
12
+ <div class="comment-right new-comment-right">
13
+ <div class="comment__box">
14
+ <div class="comment__box_top hide" id="visitorInfo">
15
+ <div class="input-group">
16
+ <input type="text" name="fields[name]" placeholder="*{{ site.theme_setting.lang.comment.user | default: 'Name' }}" class="form-control form-control-name" required autocomplete="true">
17
+ <label class="input-label">
18
+ {%- include icons/user.html -%}
19
+ </label>
20
+ </div>
21
+ <div class="input-group">
22
+ <input type="text" placeholder="*{{ site.theme_setting.lang.comment.email | default: 'Email' }}" class="form-control" type="email" required name="fields[email]" autocomplete="true">
23
+ <label class="input-label">
24
+ {%- include icons/mail.html -%}
25
+ </label>
26
+ </div>
27
+ <div class="input-group">
28
+ <input type="text" placeholder="{{ site.theme_setting.lang.comment.url | default: 'Your Site' }}" class="form-control" type="url" name="fields[url]" autocomplete="true">
29
+ <label class="input-label">
30
+ {%- include icons/link.html -%}
31
+ </label>
32
+ </div>
33
+ </div>
34
+ <div class="comment__box_center">
35
+ <textarea name="fields[message]" class="form-control message-text" placeholder="{{ site.theme_setting.lang.comment.message | default: 'Something to say...' }}"></textarea>
36
+ <span class="message-arrow"></span>
37
+ </div>
38
+ <div class="comment__box_bottom">
39
+ {%- if site.smiley.enabled --%}
40
+ {%- include smiley.html -%}
41
+ {%- endif --%}
42
+ <div class="comment__hint" id="commentHint">
43
+ </div>
44
+ <button type="submit" class="submit-btn" id="submitBtn">
45
+ enmmm..
46
+ </button>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </form>
@@ -0,0 +1,29 @@
1
+ <div class="paginiation">
2
+ {%- if paginator.previous_page -%}
3
+ <li>
4
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagi__icon prev" id="btnPrev">
5
+ <svg width="40" height="40">
6
+ <circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
7
+ </svg>
8
+ <span class="pagi__icon_arrow"></span>
9
+ </a>
10
+ </li>
11
+ {%- endif -%}
12
+ {%- if paginator.page_trail -%}
13
+ {%- for trail in paginator.page_trail -%}
14
+ <li>
15
+ <a href="{{ trail.path | prepend: site.baseurl }}" title="{{trail.title}}" class="pagi__link{% if page.url == trail.path %} active{% endif %}">{{ trail.num }}</a>
16
+ </li>
17
+ {%- endfor -%}
18
+ {%- endif -%}
19
+ {%- if paginator.next_page -%}
20
+ <li>
21
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagi__icon next" id="btnNext">
22
+ <svg width="40" height="40">
23
+ <circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
24
+ </svg>
25
+ <span class="pagi__icon_arrow"></span>
26
+ </a>
27
+ </li>
28
+ {%- endif -%}
29
+ </div>
@@ -0,0 +1,53 @@
1
+ <main class="slide" id="sectionContainer">
2
+ {%- assign count = site.theme_setting.slides_count | default: 4 -%}
3
+ {%- for book in site.books limit: count -%}
4
+ {%- assign is_odd = forloop.index | modulo: 2 -%}
5
+ <div class="slide__section">
6
+ {%- if is_odd == 1 -%}
7
+ <div class="slide__img">
8
+ <a href="{{ book.url | relative_url }}" class="slide__link" title="{{ book.title }}"></a>
9
+ <div class="slide__img_placehold"></div>
10
+ <img src="{{ book.img | img_url_prefix }}" class="slide__img_entity" alt="{{ book.title }}">
11
+ </div>
12
+ {%- endif -%}
13
+ <div class="slide__text {% if is_odd == 1 %}slide__text_right{% else %}slide__text_left{% endif %}">
14
+ <a href="{{ book.url | relative_url }}" class="slide__link" title="{{ book.title }}"></a>
15
+ <div class="slide__title">
16
+ <div class="slide__title_inner">
17
+ <h2 class="slide__title_text">{{ book.title }}</h2>
18
+ </div>
19
+ </div>
20
+ <div class="slide__time">
21
+ <div class="slide__time_inner">
22
+ <p class="slide__time_text">{{ book.date }}</p>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ {%- if is_odd == 0 -%}
27
+ <div class="slide__img">
28
+ <a href="{{ book.url | relative_url }}" class="slide__link" title="{{ book.title }}"></a>
29
+ <div class="slide__img_placehold"></div>
30
+ <img src="{{ book.img | img_url_prefix }}" alt="{{ book.title }}">
31
+ </div>
32
+ {%- endif -%}
33
+ </div>
34
+ {%- endfor -%}
35
+ </main>
36
+
37
+ <ul class="slide__controls">
38
+ <div class="slide__control__icon slide__control_top" id="prevBtn">
39
+ <svg width="40" height="40">
40
+ <circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
41
+ </svg>
42
+ <span class="slide__control_arrow slide__control_up"></span>
43
+ </div>
44
+ {%- for i in (1..count) -%}
45
+ <li class="slide__control {% if i == 1 %}current{% endif %}"></li>
46
+ {%- endfor -%}
47
+ <div class="slide__control__icon slide__control_bottom" id="nextBtn">
48
+ <svg width="40" height="40">
49
+ <circle class="circle-progress" r="18" cy="20" cx="20" stroke-linejoin="round" stroke-linecap="round" />
50
+ </svg>
51
+ <span class="slide__control_arrow slide__control_down"></span>
52
+ </div>
53
+ </ul>