jekyll-theme-apollo 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9602e2ca2c4d27ffbdfab4ade73eb3f94bc1f6e2
4
- data.tar.gz: 15b3b0dc382cd0aac5eb11fe5e83e27059cd6026
2
+ SHA256:
3
+ metadata.gz: 3fdd9f670cf538dd4cf36e4ac22d9dc8a51327ba70c99466d458461159a998da
4
+ data.tar.gz: d97e53f845ebadc6d618b73f21d670b25ab1760565f0c551890a6825573e2bb5
5
5
  SHA512:
6
- metadata.gz: b05d0fc39243b0a4584150b85f837e89e7f9aa458b4000cab13def164ce0812d3db95968dd289deba9c6c8394e4c2979dd2891b3d84cd7d080d139c3f8c8ce24
7
- data.tar.gz: 708d2dbb04081c70845f8bc1ea60af618697c1ab58f0dac425aa5cb4c3cc8b0e2e6007474e116ce6edb4d2c30d16a43d705d2c12131421b5354dda76b25b8dce
6
+ metadata.gz: 45b91cb65c5f333ff005a9b807648ffcd382883c9bb38ebede552f16fedd1a502e55ad6362f7b48d1a9b2ba0b2b6a6261e46f3a719c9a6f25db4afd9a032da85
7
+ data.tar.gz: c2626d41d4c1b843a35cad7b13f8d1d06029dc421cfd612e4bf3e81d442c664a8a0c924d068b7780a29ed406f93bc5667b4a9f179ea502f62de474e92771605f
data/LICENSE CHANGED
@@ -1,43 +1,43 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018-present Zigit Zo
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.
22
-
23
- The MIT License (MIT)
24
-
25
- Copyright (c) 2015-2018 Sean Sun
26
-
27
- Permission is hereby granted, free of charge, to any person obtaining a copy
28
- of this software and associated documentation files (the "Software"), to deal
29
- in the Software without restriction, including without limitation the rights
30
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
- copies of the Software, and to permit persons to whom the Software is
32
- furnished to do so, subject to the following conditions:
33
-
34
- The above copyright notice and this permission notice shall be included in all
35
- copies or substantial portions of the Software.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018-present Zigit Zo
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.
22
+
23
+ The MIT License (MIT)
24
+
25
+ Copyright (c) 2015-2018 Sean Sun
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
data/README.md CHANGED
@@ -1,92 +1,109 @@
1
- jekyll-theme-apollo
2
- ===================
3
- Port [hexo-theme-apollo](https://github.com/pinggod/hexo-theme-apollo) to Jekyll.
4
-
5
- Installation
6
- ------------
7
- ~~~ sh
8
- # Node.js + Pug
9
- # https://nodejs.org/en/download/
10
- npm install -g pug
11
-
12
- # Jekyll
13
- jekyll new blog && cd blog
14
- echo gem \"jekyll-theme-apollo\", \"~\> 0.1.0\" >> Gemfile # add theme in `Gemfile`
15
- sed -i "s/minima/jekyll-theme-apollo/g" _config.yml # chage theme in `_config.yml`
16
- bundle install # :coffee:
17
- ~~~
18
-
19
- Customization
20
- -------------
21
- In `_config.yml`:
22
- ~~~ yml
23
- ... # default settings generated by jekyll
24
- # settings listed below are all optional
25
-
26
- # general settings
27
- lang: zh-cn # language, [en, zh-cn]
28
- startyear: "2018" # affect copyright, currently MUST using string
29
- favicon_url: /assets/favicon.png # favicon, default value is `/favicon.ico`
30
- logo_url: /assets/favicon.png # logo
31
-
32
- # navigator
33
- menu:
34
- - title: one
35
- url: /one
36
- - title: two
37
- url: http://two
38
- ...
39
-
40
- # post settings
41
- excerpt_separator: <!--more--> # excerpt indicator
42
-
43
- # valine.js comment
44
- valine:
45
- app_id: your-id
46
- app_key: your-key
47
-
48
- # google analytics
49
- google_analytics: ua-xxxxxxx
50
-
51
- # site feed
52
- plugins:
53
- - jekyll-feed
54
- feed:
55
- path: atom.xml
56
-
57
- ... # continue default settings
58
- ~~~
59
-
60
- Comments
61
- --------
62
- * Comment system is powered by [valine.js](https://valine.js.org)
63
- * Ensure that you have the right `valine.app_id` and `valine.app_key` set in `_config.yml`
64
- * Comment is enabled by default, you can add `comment: false` to the front matter to disable it
65
-
66
- MathJax
67
- -------
68
- MathJax is disabled by default, add `mathjax: true` to the front matter if you want to enable it
69
-
70
- Tip in post
71
- -----------
72
- You can use the [block IAL](https://kramdown.gettalong.org/syntax.html#block-ials) to make a tip. Just add `{:.tip}` before/after a paragraph, like:
73
- ~~~ md
74
- {:.tip}
75
- Big Brother is watching you.
76
-
77
- This is no longer a tip.
78
- ~~~
79
-
80
- Archive
81
- -------
82
- Create a file such as `archive.md`, in anywhere you like, and make the front matter like:
83
- ~~~ yml
84
- ---
85
- layout: archive
86
- ---
87
- ~~~
88
-
89
- See also
90
- ========
91
- 1. [hexo-theme-apollo/doc](https://github.com/pinggod/hexo-theme-apollo/blob/master/doc/)
92
- 2. [jekyll-theme-apollo/_doc](todo://404)
1
+ jekyll-theme-apollo
2
+ ===================
3
+
4
+ Port [hexo-theme-apollo](https://github.com/pinggod/hexo-theme-apollo) to Jekyll.
5
+
6
+ Installation
7
+ ------------
8
+
9
+ ~~~ sh
10
+ # Node.js + Pug
11
+ # https://nodejs.org/en/download/
12
+ npm install -g pug
13
+
14
+ # Jekyll
15
+ jekyll new blog && cd blog
16
+ echo gem \"jekyll-theme-apollo\", \"~\> 0.1.2\" >> Gemfile # add theme in `Gemfile`
17
+ sed -i "s/minima/jekyll-theme-apollo/g" _config.yml # chage theme in `_config.yml`
18
+ bundle install # :coffee:
19
+ ~~~
20
+
21
+ Customization
22
+ -------------
23
+
24
+ In `_config.yml`:
25
+
26
+ ~~~ yml
27
+ ... # default settings generated by jekyll
28
+ # settings listed below are all optional
29
+
30
+ # general settings
31
+ lang: zh-cn # language, [en, zh-cn]
32
+ copyright: <code>MIT License</code> # copyright info, as HTML
33
+ startyear: "2018" # affect footer if `copyright` unset, currently MUST using string
34
+ favicon_url: /assets/favicon.png # favicon, default value is `/favicon.ico`
35
+ logo_url: /assets/favicon.png # logo
36
+
37
+ # navigator
38
+ menu:
39
+ - title: one
40
+ url: /one
41
+ - title: two
42
+ url: http://two
43
+ ...
44
+
45
+ # post settings
46
+ excerpt_separator: <!--more--> # excerpt indicator
47
+
48
+ # valine.js comment
49
+ valine:
50
+ app_id: your-id
51
+ app_key: your-key
52
+
53
+ # google analytics
54
+ google_analytics: ua-xxxxxxx
55
+
56
+ # site feed
57
+ plugins:
58
+ - jekyll-feed
59
+ feed:
60
+ path: atom.xml
61
+
62
+ ... # continue default settings
63
+ ~~~
64
+
65
+ Comments
66
+ --------
67
+
68
+ * Comment system is powered by [valine.js](https://valine.js.org)
69
+ * Ensure that you have the right `valine.app_id` and `valine.app_key` set in `_config.yml`
70
+ * Comment is enabled by default, you can add `comment: false` to the front matter to disable it
71
+
72
+ MathJax
73
+ -------
74
+
75
+ MathJax is disabled by default, add `mathjax: true` to the front matter if you want to enable it
76
+
77
+ Tip in post
78
+ -----------
79
+
80
+ You can use the [block IAL](https://kramdown.gettalong.org/syntax.html#block-ials) to make a tip. Just add `{:.tip}` before/after a paragraph, like:
81
+
82
+ ~~~ md
83
+ {:.tip}
84
+ Big Brother is watching you.
85
+
86
+ This is no longer a tip.
87
+ ~~~
88
+
89
+ Translated article
90
+ ------------------
91
+
92
+ If your article is translated from another source, then you can specify `from: http://orginal-post` in the front matter, it will make a link refer to the `http://orignal-post`.
93
+
94
+ Archive
95
+ -------
96
+
97
+ Create a file such as `archive.md`, in anywhere you like, and make the front matter like:
98
+
99
+ ~~~ yml
100
+ ---
101
+ layout: archive
102
+ ---
103
+ ~~~
104
+
105
+ See also
106
+ --------
107
+
108
+ 1. [hexo-theme-apollo/doc](https://github.com/pinggod/hexo-theme-apollo/blob/master/doc/)
109
+ 2. [jekyll-theme-apollo/_doc](todo://404)
@@ -1,26 +1,26 @@
1
- mixin home()
2
- | {% assign prev = paginator.previous_page_path %}
3
- | {% assign next = paginator.next_page_path %}
4
- .paginator
5
- | {% if paginator.previous_page %}
6
- a.prev(href="{{ prev | relative_url }}")
7
- != "{{ site.data.lang[site.lang].prev | default: 'PREV' }}"
8
- | {% endif %}
9
- | {% if paginator.next_page %}
10
- a.next(href="{{ next | relative_url }}")
11
- != "{{ site.data.lang[site.lang].next | default: 'NEXT' }}"
12
- | {% endif %}
13
-
14
- mixin post()
15
- | {% assign prev = page.previous.url %}
16
- | {% assign next = page.next.url %}
17
- .paginator
18
- //- next/prev adapt for jekyll
19
- | {% if page.previous %}
20
- a.next(href="{{ prev | relative_url }}")
21
- != "{{ site.data.lang[site.lang].next_post | default: 'NEXT' }}"
22
- | {% endif %}
23
- | {% if page.next %}
24
- a.prev(href="{{ next | relative_url }}")
25
- != "{{ site.data.lang[site.lang].prev_post | default: 'PREV' }}"
26
- | {% endif %}
1
+ mixin home()
2
+ | {% assign prev = paginator.previous_page_path %}
3
+ | {% assign next = paginator.next_page_path %}
4
+ .paginator
5
+ | {% if paginator.previous_page %}
6
+ a.prev(href="{{ prev | relative_url }}")
7
+ != "{{ site.data.lang[site.lang].prev | default: 'PREV' }}"
8
+ | {% endif %}
9
+ | {% if paginator.next_page %}
10
+ a.next(href="{{ next | relative_url }}")
11
+ != "{{ site.data.lang[site.lang].next | default: 'NEXT' }}"
12
+ | {% endif %}
13
+
14
+ mixin post()
15
+ | {% assign prev = page.previous.url %}
16
+ | {% assign next = page.next.url %}
17
+ .paginator
18
+ //- next/prev adapt for jekyll
19
+ | {% if page.previous %}
20
+ a.next(href="{{ prev | relative_url }}")
21
+ != "{{ site.data.lang[site.lang].next_post | default: 'NEXT' }}"
22
+ | {% endif %}
23
+ | {% if page.next %}
24
+ a.prev(href="{{ next | relative_url }}")
25
+ != "{{ site.data.lang[site.lang].prev_post | default: 'PREV' }}"
26
+ | {% endif %}
@@ -1,88 +1,80 @@
1
- //- pug/js cannot get on well with liquid/ruby, especially in passing parameters
2
- mixin postInfo(item)
3
- .post-info
4
- != full_date(item.date, 'll')
5
- if item.from && (is_home() || is_post())
6
- a.post-from(href=item.from target="_blank" title=item.from)!= __('translated')
7
- //- todo, currently using copy and paste
8
-
9
- //- Index Page
10
- mixin posts()
11
- | {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
12
- ul.home.post-list
13
- | {% for post in site.posts %}
14
- li.post-list-item
15
- article.post-block
16
- h2.post-title
17
- a.post-title-link(href="{{ post.url | relative_url }}")!= "{{ post.title }}"
18
- .post-info
19
- != "{{ post.date | date: date_format }}"
20
- | {% if post.from %}
21
- | {% if post.layout == "home" or post.layout == "post" %}
22
- a.post-from(href="{{ post.from }}" target="_blank" title="{{ post.from }}")
23
- != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
24
- | {% endif %}
25
- | {% endif %}
26
- .post-content
27
- != "{{ post.excerpt }}"
28
- a.read-more(href="{{ post.url | relative_url }}")
29
- != "{{ site.data.lang[site.lang].more | default: '...more' }}"
30
- | {% endfor %}
31
-
32
- //- Archive Page
33
- mixin postList()
34
- | {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
35
- .archive
36
- | {% assign prev_year = 0 %}
37
- | {% for post in site.posts %}
38
- | {% assign year = post.date | date: "%Y" %}
39
- | {% if year != prev_year %}
40
- h2.archive-year!= "{{ year }}"
41
- | {% assign prev_year = year %}
42
- | {% endif %}
43
- .post-item
44
- .post-info
45
- != "{{ post.date | date: date_format }}"
46
- | {% if post.from %}
47
- | {% if post.layout == "home" or post.layout == "post" %}
48
- a.post-from(href="{{ post.from }}" target="_blank" title="{{ post.from }}")
49
- != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
50
- | {% endif %}
51
- | {% endif %}
52
- a.post-title-link(href="{{ post.url | relative_url }}")!= "{{ post.title }}"
53
- | {% endfor %}
54
-
55
- //- Post Page
56
- mixin post()
57
- | {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
58
- .post
59
- article.post-block
60
- h1.post-title
61
- != "{{ page.title }}"
62
- .post-info
63
- != "{{ page.date | date: date_format }}"
64
- | {% if page.from %}
65
- | {% if page.layout == "home" or page.layout == "post" %}
66
- a.post-from(href="{{ page.from }}" target="_blank" title="{{ page.from }}")
67
- != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
68
- | {% endif %}
69
- | {% endif %}
70
- .post-content
71
- != "{{ content }}"
72
-
73
- //- Page Page
74
- mixin page()
75
- .post
76
- article.post-block
77
- h1.post-title
78
- != "{{ page.title }}"
79
- .post-info
80
- != "󠀠󠀠 "
81
- | {% if page.from %}
82
- | {% if page.layout == "home" or page.layout == "post" %}
83
- a.post-from(href="{{ page.from }}" target="_blank" title="{{ page.from }}")
84
- != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
85
- | {% endif %}
86
- | {% endif %}
87
- .post-content
88
- != "{{ content }}"
1
+ //- pug/js cannot get on well with liquid/ruby, especially in passing parameters
2
+ mixin postInfo(item)
3
+ .post-info
4
+ != full_date(item.date, 'll')
5
+ if item.from && (is_home() || is_post())
6
+ a.post-from(href=item.from target="_blank" title=item.from)!= __('translated')
7
+ //- todo, currently using copy and paste
8
+
9
+ //- Index Page
10
+ mixin posts()
11
+ | {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
12
+ ul.home.post-list
13
+ | {% for post in site.posts %}
14
+ li.post-list-item
15
+ article.post-block
16
+ h2.post-title
17
+ a.post-title-link(href="{{ post.url | relative_url }}")!= "{{ post.title }}"
18
+ .post-info
19
+ != "{{ post.date | date: date_format }}"
20
+ | {% if post.from %}
21
+ a.post-from(href="{{ post.from }}" target="_blank" title="{{ post.from }}")
22
+ != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
23
+ | {% endif %}
24
+ .post-content
25
+ != "{{ post.excerpt }}"
26
+ a.read-more(href="{{ post.url | relative_url }}")
27
+ != "{{ site.data.lang[site.lang].more | default: '...more' }}"
28
+ | {% endfor %}
29
+
30
+ //- Archive Page
31
+ mixin postList()
32
+ | {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
33
+ .archive
34
+ | {% assign prev_year = 0 %}
35
+ | {% for post in site.posts %}
36
+ | {% assign year = post.date | date: "%Y" %}
37
+ | {% if year != prev_year %}
38
+ h2.archive-year!= "{{ year }}"
39
+ | {% assign prev_year = year %}
40
+ | {% endif %}
41
+ .post-item
42
+ .post-info
43
+ != "{{ post.date | date: date_format }}"
44
+ a.post-title-link(href="{{ post.url | relative_url }}")!= "{{ post.title }}"
45
+ | {% endfor %}
46
+
47
+ //- Post Page
48
+ mixin post()
49
+ | {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
50
+ .post
51
+ article.post-block
52
+ h1.post-title
53
+ != "{{ page.title }}"
54
+ .post-info
55
+ != "{{ page.date | date: date_format }}"
56
+ | {% if page.from %}
57
+ | {% if page.layout == "home" or page.layout == "post" %}
58
+ a.post-from(href="{{ page.from }}" target="_blank" title="{{ page.from }}")
59
+ != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
60
+ | {% endif %}
61
+ | {% endif %}
62
+ .post-content
63
+ != "{{ content }}"
64
+
65
+ //- Page Page
66
+ mixin page()
67
+ .post
68
+ article.post-block
69
+ h1.post-title
70
+ != "{{ page.title }}"
71
+ .post-info
72
+ != " "
73
+ | {% if page.from %}
74
+ | {% if page.layout == "home" or page.layout == "post" %}
75
+ a.post-from(href="{{ page.from }}" target="_blank" title="{{ page.from }}")
76
+ != "{{ site.data.lang[site.lang].translated | default: 'Translation · Original Link' }}"
77
+ | {% endif %}
78
+ | {% endif %}
79
+ .post-content
80
+ != "{{ content }}"