jekyll-theme-persephone 0.1.3 → 0.1.4
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 +5 -5
- data/LICENSE.txt +0 -0
- data/README.md +3 -1
- data/_includes/assets.html +0 -0
- data/_includes/comment.html +5 -1
- data/_includes/comments.html +0 -0
- data/_includes/contact.html +0 -0
- data/_includes/footer.html +0 -0
- data/_includes/head.html +0 -0
- data/_includes/header.html +1 -1
- data/_includes/header_nav.html +4 -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/new_comment.html +1 -1
- data/_includes/pagination.html +0 -0
- data/_includes/slides.html +2 -2
- data/_includes/smiley.html +0 -0
- data/_includes/summary.html +0 -0
- data/_includes/title.html +3 -3
- data/_layouts/404.html +0 -0
- data/_layouts/archive.html +0 -0
- data/_layouts/blog.html +28 -22
- data/_layouts/book.html +0 -0
- data/_layouts/chapter.html +0 -0
- data/_layouts/default.html +0 -0
- data/_layouts/home.html +25 -2
- data/_layouts/page.html +0 -0
- data/_layouts/post.html +0 -0
- data/_layouts/slides.html +6 -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 +11 -4
- 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 +4 -4
- data/_layouts/list.html +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3037f89254d74e5c80da6aaa4ab9190d725531a2f93c2f3f6989c1f8a8bbf162
|
4
|
+
data.tar.gz: 11c4962d55301b3b789640d6187f553d8e23dcd30ac4bde96fa122ddef2b389d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9761a2f2d05ce3bcdc0e4b9475f81171142385330bbca4ce25be219c3b56bb73537820de90e5301d98b5b6bbde231d239ba67cfe4719a5b85f9b7cd8a8c8e4d2
|
7
|
+
data.tar.gz: 42cb7e8698b22e44d6e98efa5fb23ade9b3b4c13612d75be353900b779f76659a37794a3543fe7135a1345dc60ba063974066ccadf17dca850902cee1a24f6cf
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -6,7 +6,9 @@ Welcome to your new Jekyll theme! In this directory, you'll find the files you n
|
|
6
6
|
|
7
7
|
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
8
8
|
|
9
|
-
[DEMO](https://erl.im)
|
9
|
+
[DEMO with full functions.](https://erl.im)
|
10
|
+
|
11
|
+
[A simple blog demo](https://en.erl.im)
|
10
12
|
|
11
13
|
## Demo
|
12
14
|
|
data/_includes/assets.html
CHANGED
File without changes
|
data/_includes/comment.html
CHANGED
@@ -10,6 +10,9 @@
|
|
10
10
|
{%- else -%}
|
11
11
|
<span class="comment__author">{{ name }}</span>
|
12
12
|
{%- endif -%}
|
13
|
+
{%- if parent != "" and parent_name -%}
|
14
|
+
<span class="comment__reply_to">@{{ parent_name }}</span>
|
15
|
+
{%- endif -%}
|
13
16
|
<span class="comment__date">{{ date | date: "%Y-%m-%d %H:%M"}}</span>
|
14
17
|
</div>
|
15
18
|
<div class="comment__content">
|
@@ -25,11 +28,12 @@
|
|
25
28
|
{%- for reply in replies -%}
|
26
29
|
{%- assign index = forloop.index | prepend: '-' | prepend: include.index -%}
|
27
30
|
{%- assign parent = reply[1].parent | to_integer -%}
|
31
|
+
{%- assign parent_name=name -%}
|
28
32
|
{%- assign email = reply[1].email -%}
|
29
33
|
{%- assign name = reply[1].name -%}
|
30
34
|
{%- assign url = reply[1].url -%}
|
31
35
|
{%- assign date = reply[1].date -%}
|
32
36
|
{%- assign message = reply[1].message -%}
|
33
|
-
{%- include comment.html index=index parent=parent email=email name=name url=url date=date message=message -%}
|
37
|
+
{%- include comment.html index=index parent=parent email=email name=name url=url date=date message=message parent_name=parent_name -%}
|
34
38
|
{%- endfor -%}
|
35
39
|
</div>
|
data/_includes/comments.html
CHANGED
File without changes
|
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
@@ -4,7 +4,7 @@
|
|
4
4
|
{%- endif -%}
|
5
5
|
<h1>{{ site.title }}</h1>
|
6
6
|
</a>
|
7
|
-
{%- if "
|
7
|
+
{%- if "slides,chapter,book" contains page.layout and site.theme_setting.archive_page -%}
|
8
8
|
{%- assign archive_page = site.pages | where: "path", site.theme_setting.archive_page | first -%}
|
9
9
|
<a href="{{ archive_page.url | relative_url }}" class="sidebar__toggler">
|
10
10
|
<span class="sidebar__toggler_top"></span>
|
data/_includes/header_nav.html
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
{%- if site.theme_setting.nav_pages -%}
|
2
2
|
<nav class="top-nav">
|
3
3
|
{% for page_path in site.theme_setting.nav_pages %}
|
4
|
+
{%- if page_path.url -%}
|
5
|
+
{%- assign my_page = page_path -%}
|
6
|
+
{%- else -%}
|
4
7
|
{%- assign my_page = site.pages | where: "path", page_path | first -%}
|
8
|
+
{%- endif -%}
|
5
9
|
{% if my_page.title %}
|
6
10
|
<a href="{{ my_page.url | relative_url}}" class="nav-link {% if page.url == my_page.url %}active{% endif %}">{{ my_page.title}}</a>
|
7
11
|
{% endif %}
|
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/new_comment.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<form method="POST" action="{{ site.comment.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
|
-
<input name="options[url]" type="hidden" value="{{ page.url |
|
4
|
+
<input name="options[url]" type="hidden" value="{{ page.url | absolute_url }}">
|
5
5
|
<input name="options[replyTo]" type="hidden" value="">
|
6
6
|
<input name="fields[parent]" type="hidden" value="">
|
7
7
|
<div class="comment-left">
|
data/_includes/pagination.html
CHANGED
File without changes
|
data/_includes/slides.html
CHANGED
@@ -41,8 +41,8 @@
|
|
41
41
|
</svg>
|
42
42
|
<span class="slide__control_arrow slide__control_up"></span>
|
43
43
|
</div>
|
44
|
-
{%- for
|
45
|
-
<li class="slide__control {% if
|
44
|
+
{%- for book in site.books limit: count -%}
|
45
|
+
<li class="slide__control {% if forloop.index == 1 %}current{% endif %}"></li>
|
46
46
|
{%- endfor -%}
|
47
47
|
<div class="slide__control__icon slide__control_bottom" id="nextBtn">
|
48
48
|
<svg width="40" height="40">
|
data/_includes/smiley.html
CHANGED
File without changes
|
data/_includes/summary.html
CHANGED
File without changes
|
data/_includes/title.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{%- if page.layout == "chapter" -%}
|
2
2
|
<title>{{ page.title }} - {{ page.book.title }} | {{ site.title }}</title>
|
3
|
-
{%- elsif page.
|
4
|
-
<title>{{ site.title }}</title>
|
5
|
-
{%- else -%}
|
3
|
+
{%- elsif page.title -%}
|
6
4
|
<title>{{ page.title }} | {{ site.title }}</title>
|
5
|
+
{%- else -%}
|
6
|
+
<title>{{ site.title }}</title>
|
7
7
|
{%- endif -%}
|
data/_layouts/404.html
CHANGED
File without changes
|
data/_layouts/archive.html
CHANGED
File without changes
|
data/_layouts/blog.html
CHANGED
@@ -2,28 +2,34 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
{
|
6
|
-
|
5
|
+
{% include header.html %}
|
6
|
+
|
7
|
+
<main class="post__archive" id="postArchive">
|
7
8
|
{%- include header_nav.html -%}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
9
|
+
{%- if site.categories.size > 0 -%}
|
10
|
+
<nav class="blog__categories">
|
11
|
+
<a href="#all" data-category="all" class="category active nav-link">{{ site.theme_setting.lang.category_all | default: "All" }}</a>
|
12
|
+
{%- for category in site.categories %}
|
13
|
+
<a href="#{{ category[0] }}" class="category nav-link" data-category="{{ category[0] }}">{{ category[0] }}</a>
|
14
|
+
{%- endfor %}
|
15
|
+
</nav>
|
16
|
+
{%- endif -%}
|
17
|
+
<div class="post__list archive__list">
|
18
|
+
{%- assign years = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
|
19
|
+
{%- for year in years %}
|
20
|
+
<h3 class="post__list_title">{{ year.name }}</h3>
|
21
|
+
{%- assign posts = year.items %}
|
22
|
+
<ul>
|
23
|
+
{%- for post in posts %}
|
24
|
+
<li class="post__list_item" data-category="{{ post.categories | join: ';' }}" {% if post.img %}data-img="{{ post.img | img_url_prefix }}"{% endif %}>
|
25
|
+
<a href="{{ post.url | relative_url }}">
|
26
|
+
<span class="archive__time">{{ post.date | date: "%Y-%m-%d" }}</span>
|
27
|
+
<span class="archive__title">{{ post.title }}</span>
|
28
|
+
</a>
|
29
|
+
</li>
|
30
|
+
{%- endfor %}
|
31
|
+
</ul>
|
32
|
+
{%- endfor %}
|
33
|
+
</div>
|
28
34
|
</main>
|
29
35
|
{%- include footer.html -%}
|
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
@@ -1,6 +1,29 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
4
|
+
|
5
5
|
{%- include header.html -%}
|
6
|
-
|
6
|
+
<main class="post__archive">
|
7
|
+
{%- include header_nav.html -%}
|
8
|
+
{%- if paginator -%}
|
9
|
+
{%- assign posts=paginator.posts -%}
|
10
|
+
{%- else -%}
|
11
|
+
{%- assign posts=site.posts -%}
|
12
|
+
{%- endif -%}
|
13
|
+
{%- for post in posts -%}
|
14
|
+
<article class="post__entry">
|
15
|
+
<a href="{{ post.url | relative_url }}" class="post__entry__link">
|
16
|
+
<h2>{{ post.title }}</h2>
|
17
|
+
<div class="post__meta">
|
18
|
+
<time>{{ post.date | date: "%Y-%m-%d" }}</time>
|
19
|
+
</div>
|
20
|
+
<div class="post__excerpt">
|
21
|
+
{{ post.excerpt | markdownify | strip_html | truncate: 100 }}
|
22
|
+
</div>
|
23
|
+
<div class="post__more_arrow"></div>
|
24
|
+
</a>
|
25
|
+
</article>
|
26
|
+
{%- endfor -%}
|
27
|
+
{%- include pagination.html -%}
|
28
|
+
</main>
|
29
|
+
{%- include footer.html -%}
|
data/_layouts/page.html
CHANGED
File without changes
|
data/_layouts/post.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
|
@@ -173,10 +173,12 @@ textarea.form-control {
|
|
173
173
|
.comment {
|
174
174
|
margin: 1rem 0;
|
175
175
|
border-radius: 0.35rem;
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
176
|
+
}
|
177
|
+
.comment__list > .comment {
|
178
|
+
padding: 0.5rem 0 0.5rem 0.5rem;
|
179
|
+
}
|
180
|
+
.comment__list > .comment > .comment {
|
181
|
+
margin-left: 2.5rem;
|
180
182
|
}
|
181
183
|
.comment_new {
|
182
184
|
background-color: var(--lighter);
|
@@ -186,6 +188,11 @@ textarea.form-control {
|
|
186
188
|
line-height: 2.5rem;
|
187
189
|
margin-right: 10px;
|
188
190
|
}
|
191
|
+
.comment__reply_to {
|
192
|
+
color: var(--gray);
|
193
|
+
margin-right: 10px;
|
194
|
+
font-size: 0.875rem;
|
195
|
+
}
|
189
196
|
.comment__date {
|
190
197
|
color: var(--light-gray);
|
191
198
|
font-size: 0.875rem;
|
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.4
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -98,9 +98,9 @@ files:
|
|
98
98
|
- _layouts/chapter.html
|
99
99
|
- _layouts/default.html
|
100
100
|
- _layouts/home.html
|
101
|
-
- _layouts/list.html
|
102
101
|
- _layouts/page.html
|
103
102
|
- _layouts/post.html
|
103
|
+
- _layouts/slides.html
|
104
104
|
- _sass/persephone.scss
|
105
105
|
- _sass/persephone/_archive.scss
|
106
106
|
- _sass/persephone/_blog.scss
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.7.8
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: A minimal Jekyll theme.
|
data/_layouts/list.html
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{% include header.html %}
|
6
|
-
|
7
|
-
<main class="post__archive" id="postArchive">
|
8
|
-
{%- include header_nav.html -%}
|
9
|
-
{%- if site.categories.size > 0 -%}
|
10
|
-
<nav class="blog__categories">
|
11
|
-
<a href="#all" data-category="all" class="category active nav-link">{{ site.theme_setting.lang.category_all | default: "All" }}</a>
|
12
|
-
{%- for category in site.categories %}
|
13
|
-
<a href="#{{ category[0] }}" class="category nav-link" data-category="{{ category[0] }}">{{ category[0] }}</a>
|
14
|
-
{%- endfor %}
|
15
|
-
</nav>
|
16
|
-
{%- endif -%}
|
17
|
-
<div class="post__list archive__list">
|
18
|
-
{%- assign years = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
|
19
|
-
{%- for year in years %}
|
20
|
-
<h3 class="post__list_title">{{ year.name }}</h3>
|
21
|
-
{%- assign posts = year.items %}
|
22
|
-
<ul>
|
23
|
-
{%- for post in posts %}
|
24
|
-
<li class="post__list_item" data-category="{{ post.categories | join: ';' }}" {% if post.img %}data-img="{{ post.img | img_url_prefix }}"{% endif %}>
|
25
|
-
<a href="{{ post.url | relative_url }}">
|
26
|
-
<span class="archive__time">{{ post.date | date: "%Y-%m-%d" }}</span>
|
27
|
-
<span class="archive__title">{{ post.title }}</span>
|
28
|
-
</a>
|
29
|
-
</li>
|
30
|
-
{%- endfor %}
|
31
|
-
</ul>
|
32
|
-
{%- endfor %}
|
33
|
-
</div>
|
34
|
-
</main>
|
35
|
-
{%- include footer.html -%}
|