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 +5 -5
- data/LICENSE +43 -43
- data/README.md +109 -92
- data/_includes/mixins/paginator.pug +26 -26
- data/_includes/mixins/post.pug +80 -88
- data/_includes/partial/comment.pug +16 -16
- data/_includes/partial/copyright.pug +12 -10
- data/_includes/partial/head.pug +14 -14
- data/_includes/partial/layout.pug +18 -18
- data/_includes/partial/nav.pug +16 -16
- data/_includes/partial/scripts.pug +12 -12
- data/_layouts/archive.pug +12 -12
- data/_layouts/home.pug +12 -12
- data/_layouts/page.pug +19 -19
- data/_layouts/post.pug +19 -19
- data/_sass/_partial/archive-post-list.scss +26 -26
- data/_sass/_partial/base.scss +79 -79
- data/_sass/_partial/copyright.scss +16 -16
- data/_sass/_partial/footer.scss +21 -21
- data/_sass/_partial/header.scss +25 -25
- data/_sass/_partial/highlight.scss +66 -66
- data/_sass/_partial/home-post-list.scss +23 -23
- data/_sass/_partial/mq.scss +48 -48
- data/_sass/_partial/normalize.scss +424 -424
- data/_sass/_partial/post.scss +265 -265
- data/_sass/apollo.scss +20 -20
- data/assets/fonts/sourcesanspro.woff +0 -0
- data/assets/fonts/sourcesanspro.woff2 +0 -0
- data/assets/styles/apollo.scss +4 -4
- metadata +4 -4
@@ -1,16 +1,16 @@
|
|
1
|
-
| {% if site.valine and page.comment != false %}
|
2
|
-
#comments
|
3
|
-
script(src="//cdn1.lncld.net/static/js/3.0.4/av-min.js")
|
4
|
-
script(src="//unpkg.com/valine/dist/Valine.min.js")
|
5
|
-
script.
|
6
|
-
new Valine({
|
7
|
-
el: "#comments",
|
8
|
-
notify: false,
|
9
|
-
verify: true,
|
10
|
-
app_id: "{{ site.valine.app_id }}",
|
11
|
-
app_key: "{{ site.valine.app_key }}",
|
12
|
-
placeholder: "{{ site.valine.placeholder | default: '¯\\_(ツ)_/¯' }}",
|
13
|
-
path: window.location.pathname,
|
14
|
-
avatar: "hide"
|
15
|
-
});
|
16
|
-
| {% endif %}
|
1
|
+
| {% if site.valine and page.comment != false %}
|
2
|
+
#comments
|
3
|
+
script(src="//cdn1.lncld.net/static/js/3.0.4/av-min.js")
|
4
|
+
script(src="//unpkg.com/valine/dist/Valine.min.js")
|
5
|
+
script.
|
6
|
+
new Valine({
|
7
|
+
el: "#comments",
|
8
|
+
notify: false,
|
9
|
+
verify: true,
|
10
|
+
app_id: "{{ site.valine.app_id }}",
|
11
|
+
app_key: "{{ site.valine.app_key }}",
|
12
|
+
placeholder: "{{ site.valine.placeholder | default: '¯\\_(ツ)_/¯' }}",
|
13
|
+
path: window.location.pathname,
|
14
|
+
avatar: "hide"
|
15
|
+
});
|
16
|
+
| {% endif %}
|
@@ -1,10 +1,12 @@
|
|
1
|
-
.copyright
|
2
|
-
|
3
|
-
|
4
|
-
| {%
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
1
|
+
.copyright
|
2
|
+
| {% if site.copyright %}
|
3
|
+
| {{ site.copyright | escaped }}
|
4
|
+
| {% else %}
|
5
|
+
| {% assign currentYear = site.time | date: "%Y" %}
|
6
|
+
| {% if site.startyear and site.startyear != currentYear %}
|
7
|
+
| {% assign year = site.startyear | append: " - " | append: currentYear %}
|
8
|
+
| {% else %}
|
9
|
+
| {% assign year = currentYear %}
|
10
|
+
| {% endif %}
|
11
|
+
p © {{ year }} #[a(href="{{ site.url | relavtive_url }}")!= "{{ site.author | default: site.title }}"], powered by #[a(href="https://jekyllrb.com", target="_blank") Jekyll] and #[a(href="https://github.com/2-70/jekyll-theme-apollo", target="_blank") jekyll-theme-apollo].
|
12
|
+
| {% endif %}
|
data/_includes/partial/head.pug
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
meta(charset="utf-8")
|
2
|
-
meta(name="X-UA-Compatible", content="IE=edge")
|
3
|
-
|
4
|
-
title
|
5
|
-
block site_title
|
6
|
-
= "{{ site.title }}"
|
7
|
-
block description
|
8
|
-
meta(name="description", content= "{{ site.description | default: 'A Blog Powered by Jekyll' }}")
|
9
|
-
|
10
|
-
meta(name="viewport", content="width=device-width, initial-scale=1")
|
11
|
-
link(rel="icon", href="{{ site.favicon_url | default: '/favicon.ico' }}")
|
12
|
-
link(rel="stylesheet", href="{{ '/assets/styles/apollo.css' | relative_url }}")
|
13
|
-
|
14
|
-
link(rel="search", type="application/opensearchdescription+xml", href="{{ '/
|
1
|
+
meta(charset="utf-8")
|
2
|
+
meta(name="X-UA-Compatible", content="IE=edge")
|
3
|
+
|
4
|
+
title
|
5
|
+
block site_title
|
6
|
+
= "{{ site.title }}"
|
7
|
+
block description
|
8
|
+
meta(name="description", content= "{{ site.description | default: 'A Blog Powered by Jekyll' }}")
|
9
|
+
|
10
|
+
meta(name="viewport", content="width=device-width, initial-scale=1")
|
11
|
+
link(rel="icon", href="{{ site.favicon_url | default: '/favicon.ico' }}")
|
12
|
+
link(rel="stylesheet", href="{{ '/assets/styles/apollo.css' | relative_url }}")
|
13
|
+
|
14
|
+
link(rel="search", type="application/opensearchdescription+xml", href="{{ site.feed.path | default: '/feed.xml' | relative_url }}", title="{{ site.title }}")
|
@@ -1,18 +1,18 @@
|
|
1
|
-
doctype
|
2
|
-
html(lang="{{ site.lang | default: en }}")
|
3
|
-
head
|
4
|
-
include head
|
5
|
-
body
|
6
|
-
.wrap
|
7
|
-
header
|
8
|
-
| {% if site.logo_url %}
|
9
|
-
a.logo-link(href="{{ site.url | default: '/' }}")
|
10
|
-
img(src="{{ site.logo_url }}" alt="logo")
|
11
|
-
| {% endif %}
|
12
|
-
include nav
|
13
|
-
main.container
|
14
|
-
block container
|
15
|
-
footer
|
16
|
-
block pagination
|
17
|
-
block copyright
|
18
|
-
include scripts
|
1
|
+
doctype
|
2
|
+
html(lang="{{ site.lang | default: en }}")
|
3
|
+
head
|
4
|
+
include head
|
5
|
+
body
|
6
|
+
.wrap
|
7
|
+
header
|
8
|
+
| {% if site.logo_url %}
|
9
|
+
a.logo-link(href="{{ site.url | default: '/' }}")
|
10
|
+
img(src="{{ site.logo_url }}" alt="logo")
|
11
|
+
| {% endif %}
|
12
|
+
include nav
|
13
|
+
main.container
|
14
|
+
block container
|
15
|
+
footer
|
16
|
+
block pagination
|
17
|
+
block copyright
|
18
|
+
include scripts
|
data/_includes/partial/nav.pug
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
ul.nav.nav-list
|
2
|
-
| {% for item in site.menu %}
|
3
|
-
li.nav-list-item
|
4
|
-
| {% if item.url contains "http://" or item.url contains "https://" %}
|
5
|
-
|
|
6
|
-
| {% else %}
|
7
|
-
|
|
8
|
-
| {% endif %}
|
9
|
-
| {% if page.url == item.url %}
|
10
|
-
|
|
11
|
-
| {% else %}
|
12
|
-
|
|
13
|
-
| {% endif %}
|
14
|
-
a.nav-list-link(class="{{ act }}" href="{{ item.url }}" target="{{ tar }}")
|
15
|
-
!= "{{ item.title | upcase }}"
|
16
|
-
| {% endfor %}
|
1
|
+
ul.nav.nav-list
|
2
|
+
| {% for item in site.menu %}
|
3
|
+
li.nav-list-item
|
4
|
+
| {% if item.url contains "http://" or item.url contains "https://" %}
|
5
|
+
| {% assign tar = "_blank" %}
|
6
|
+
| {% else %}
|
7
|
+
| {% assign tar = "_self" %}
|
8
|
+
| {% endif %}
|
9
|
+
| {% if page.url == item.url %}
|
10
|
+
| {% assign act = "active" %}
|
11
|
+
| {% else %}
|
12
|
+
| {% assign act = "" %}
|
13
|
+
| {% endif %}
|
14
|
+
a.nav-list-link(class="{{ act }}" href="{{ item.url }}" target="{{ tar }}")
|
15
|
+
!= "{{ item.title | upcase }}"
|
16
|
+
| {% endfor %}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
//- LaTex
|
2
|
-
| {% if page.mathjax %}
|
3
|
-
script(async src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha384-crwIf/BuaWM9rM65iM+dWFldgQ1Un8jWZMuh3puxb8TOY9+linwLoI7ZHZT+aekW" crossorigin="anonymous")
|
4
|
-
| {% endif %}
|
5
|
-
|
6
|
-
//- Analytics tracking
|
7
|
-
| {% if site.google_analytics %}
|
8
|
-
script
|
9
|
-
| (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;e=o.createElement(i);r=o.getElementsByTagName(i)[0];e.src='//www.google-analytics.com/analytics.js';r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));ga('create',
|
10
|
-
!= "{{ site.google_analytics }}"
|
11
|
-
| ,'auto');ga('send','pageview');
|
12
|
-
| {% endif %}
|
1
|
+
//- LaTex
|
2
|
+
| {% if page.mathjax %}
|
3
|
+
script(async src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha384-crwIf/BuaWM9rM65iM+dWFldgQ1Un8jWZMuh3puxb8TOY9+linwLoI7ZHZT+aekW" crossorigin="anonymous")
|
4
|
+
| {% endif %}
|
5
|
+
|
6
|
+
//- Analytics tracking
|
7
|
+
| {% if site.google_analytics %}
|
8
|
+
script
|
9
|
+
| (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;e=o.createElement(i);r=o.getElementsByTagName(i)[0];e.src='//www.google-analytics.com/analytics.js';r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));ga('create',
|
10
|
+
!= "{{ site.google_analytics }}"
|
11
|
+
| ,'auto');ga('send','pageview');
|
12
|
+
| {% endif %}
|
data/_layouts/archive.pug
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
extends partial/layout
|
2
|
-
|
3
|
-
block container
|
4
|
-
include mixins/post
|
5
|
-
+postList()
|
6
|
-
|
7
|
-
block pagination
|
8
|
-
include mixins/paginator
|
9
|
-
+home()
|
10
|
-
|
11
|
-
block copyright
|
12
|
-
include partial/copyright
|
1
|
+
extends partial/layout
|
2
|
+
|
3
|
+
block container
|
4
|
+
include mixins/post
|
5
|
+
+postList()
|
6
|
+
|
7
|
+
block pagination
|
8
|
+
include mixins/paginator
|
9
|
+
+home()
|
10
|
+
|
11
|
+
block copyright
|
12
|
+
include partial/copyright
|
data/_layouts/home.pug
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
extends partial/layout
|
2
|
-
|
3
|
-
block container
|
4
|
-
include mixins/post
|
5
|
-
+posts()
|
6
|
-
|
7
|
-
block pagination
|
8
|
-
include mixins/paginator
|
9
|
-
+home()
|
10
|
-
|
11
|
-
block copyright
|
12
|
-
include partial/copyright
|
1
|
+
extends partial/layout
|
2
|
+
|
3
|
+
block container
|
4
|
+
include mixins/post
|
5
|
+
+posts()
|
6
|
+
|
7
|
+
block pagination
|
8
|
+
include mixins/paginator
|
9
|
+
+home()
|
10
|
+
|
11
|
+
block copyright
|
12
|
+
include partial/copyright
|
data/_layouts/page.pug
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
extends partial/layout
|
2
|
-
|
3
|
-
block site_title
|
4
|
-
!= "{{ page.title }} · {{ site.title }}"
|
5
|
-
|
6
|
-
block description
|
7
|
-
meta(name="description", content="{{ page.desc | default: page.title }} - {{ site.author | default: site.title }}")
|
8
|
-
|
9
|
-
block container
|
10
|
-
include mixins/post
|
11
|
-
+page()
|
12
|
-
|
13
|
-
block pagination
|
14
|
-
include mixins/paginator
|
15
|
-
+post()
|
16
|
-
include partial/comment
|
17
|
-
|
18
|
-
block copyright
|
19
|
-
include partial/copyright
|
1
|
+
extends partial/layout
|
2
|
+
|
3
|
+
block site_title
|
4
|
+
!= "{{ page.title }} · {{ site.title }}"
|
5
|
+
|
6
|
+
block description
|
7
|
+
meta(name="description", content="{{ page.desc | default: page.title }} - {{ site.author | default: site.title }}")
|
8
|
+
|
9
|
+
block container
|
10
|
+
include mixins/post
|
11
|
+
+page()
|
12
|
+
|
13
|
+
block pagination
|
14
|
+
include mixins/paginator
|
15
|
+
+post()
|
16
|
+
include partial/comment
|
17
|
+
|
18
|
+
block copyright
|
19
|
+
include partial/copyright
|
data/_layouts/post.pug
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
extends partial/layout
|
2
|
-
|
3
|
-
block site_title
|
4
|
-
!= "{{ page.title }} · {{ site.title }}"
|
5
|
-
|
6
|
-
block description
|
7
|
-
meta(name="description", content="{{ page.desc | default: page.title }} - {{ site.author | default: site.title }}")
|
8
|
-
|
9
|
-
block container
|
10
|
-
include mixins/post
|
11
|
-
+post()
|
12
|
-
|
13
|
-
block pagination
|
14
|
-
include mixins/paginator
|
15
|
-
+post()
|
16
|
-
include partial/comment
|
17
|
-
|
18
|
-
block copyright
|
19
|
-
include partial/copyright
|
1
|
+
extends partial/layout
|
2
|
+
|
3
|
+
block site_title
|
4
|
+
!= "{{ page.title }} · {{ site.title }}"
|
5
|
+
|
6
|
+
block description
|
7
|
+
meta(name="description", content="{{ page.desc | default: page.title }} - {{ site.author | default: site.title }}")
|
8
|
+
|
9
|
+
block container
|
10
|
+
include mixins/post
|
11
|
+
+post()
|
12
|
+
|
13
|
+
block pagination
|
14
|
+
include mixins/paginator
|
15
|
+
+post()
|
16
|
+
include partial/comment
|
17
|
+
|
18
|
+
block copyright
|
19
|
+
include partial/copyright
|
@@ -1,26 +1,26 @@
|
|
1
|
-
.archive {
|
2
|
-
max-width: 500px;
|
3
|
-
margin: 5em auto;
|
4
|
-
.post-item {
|
5
|
-
padding: 2px 0 0 50px;
|
6
|
-
}
|
7
|
-
.post-time,
|
8
|
-
.post-title-link {
|
9
|
-
font-size: 1rem;
|
10
|
-
}
|
11
|
-
.post-title-link {
|
12
|
-
display: block;
|
13
|
-
margin-left: 125px;
|
14
|
-
color: #42b983;
|
15
|
-
word-break: break-all;
|
16
|
-
&:hover {
|
17
|
-
border-bottom: 0;
|
18
|
-
color: #267B54;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
.post-info {
|
22
|
-
float: left;
|
23
|
-
width: 125px;
|
24
|
-
color: #7f8c8d;
|
25
|
-
}
|
26
|
-
}
|
1
|
+
.archive {
|
2
|
+
max-width: 500px;
|
3
|
+
margin: 5em auto;
|
4
|
+
.post-item {
|
5
|
+
padding: 2px 0 0 50px;
|
6
|
+
}
|
7
|
+
.post-time,
|
8
|
+
.post-title-link {
|
9
|
+
font-size: 1rem;
|
10
|
+
}
|
11
|
+
.post-title-link {
|
12
|
+
display: block;
|
13
|
+
margin-left: 125px;
|
14
|
+
color: #42b983;
|
15
|
+
word-break: break-all;
|
16
|
+
&:hover {
|
17
|
+
border-bottom: 0;
|
18
|
+
color: #267B54;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.post-info {
|
22
|
+
float: left;
|
23
|
+
width: 125px;
|
24
|
+
color: #7f8c8d;
|
25
|
+
}
|
26
|
+
}
|
data/_sass/_partial/base.scss
CHANGED
@@ -1,79 +1,79 @@
|
|
1
|
-
::selection {
|
2
|
-
color: #FFFFFF;
|
3
|
-
background-color: #42b983;
|
4
|
-
}
|
5
|
-
|
6
|
-
html, body {
|
7
|
-
width: 100%;
|
8
|
-
height: 100%;
|
9
|
-
}
|
10
|
-
|
11
|
-
body {
|
12
|
-
margin: 0;
|
13
|
-
color: #34495e;
|
14
|
-
font-size: 15px;
|
15
|
-
line-height: 1.6;
|
16
|
-
background-color: #fff;
|
17
|
-
font-family: 'sourcesanspro', 'Helvetica Neue', Arial, sans-serif;
|
18
|
-
}
|
19
|
-
|
20
|
-
ul.nav,
|
21
|
-
ul.post-list {
|
22
|
-
margin: 0;
|
23
|
-
padding: 0;
|
24
|
-
list-style-type: none;
|
25
|
-
}
|
26
|
-
|
27
|
-
ul {
|
28
|
-
margin: 1rem 0;
|
29
|
-
}
|
30
|
-
|
31
|
-
a, a:active {
|
32
|
-
color: #2c3e50;
|
33
|
-
text-decoration: none;
|
34
|
-
}
|
35
|
-
|
36
|
-
a.nav-list-link.active,
|
37
|
-
a.nav-list-link:hover,
|
38
|
-
a.post-title-link:hover {
|
39
|
-
border-bottom: 2px solid #42b983;
|
40
|
-
}
|
41
|
-
|
42
|
-
hr {
|
43
|
-
border: 0;
|
44
|
-
}
|
45
|
-
|
46
|
-
code {
|
47
|
-
margin: 0 2px;
|
48
|
-
padding: 3px 5px;
|
49
|
-
color: #e96900;
|
50
|
-
border-radius: 2px;
|
51
|
-
white-space: inherit;
|
52
|
-
}
|
53
|
-
|
54
|
-
iframe, video {
|
55
|
-
max-width: 100%;
|
56
|
-
margin: 1rem auto;
|
57
|
-
display: block;
|
58
|
-
}
|
59
|
-
|
60
|
-
table {
|
61
|
-
width: 100%;
|
62
|
-
margin: 1em auto;
|
63
|
-
thead {
|
64
|
-
background-color: #ddd;
|
65
|
-
th {
|
66
|
-
padding: 5px;
|
67
|
-
min-width: 20px;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
tbody {
|
71
|
-
tr:nth-child(2n) {
|
72
|
-
background-color: #eee;
|
73
|
-
}
|
74
|
-
td {
|
75
|
-
padding: 5px;
|
76
|
-
vertical-align: text-top;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
1
|
+
::selection {
|
2
|
+
color: #FFFFFF;
|
3
|
+
background-color: #42b983;
|
4
|
+
}
|
5
|
+
|
6
|
+
html, body {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
}
|
10
|
+
|
11
|
+
body {
|
12
|
+
margin: 0;
|
13
|
+
color: #34495e;
|
14
|
+
font-size: 15px;
|
15
|
+
line-height: 1.6;
|
16
|
+
background-color: #fff;
|
17
|
+
font-family: 'sourcesanspro', 'Helvetica Neue', Arial, sans-serif;
|
18
|
+
}
|
19
|
+
|
20
|
+
ul.nav,
|
21
|
+
ul.post-list {
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
list-style-type: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
ul {
|
28
|
+
margin: 1rem 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
a, a:active {
|
32
|
+
color: #2c3e50;
|
33
|
+
text-decoration: none;
|
34
|
+
}
|
35
|
+
|
36
|
+
a.nav-list-link.active,
|
37
|
+
a.nav-list-link:hover,
|
38
|
+
a.post-title-link:hover {
|
39
|
+
border-bottom: 2px solid #42b983;
|
40
|
+
}
|
41
|
+
|
42
|
+
hr {
|
43
|
+
border: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
code {
|
47
|
+
margin: 0 2px;
|
48
|
+
padding: 3px 5px;
|
49
|
+
color: #e96900;
|
50
|
+
border-radius: 2px;
|
51
|
+
white-space: inherit;
|
52
|
+
}
|
53
|
+
|
54
|
+
iframe, video {
|
55
|
+
max-width: 100%;
|
56
|
+
margin: 1rem auto;
|
57
|
+
display: block;
|
58
|
+
}
|
59
|
+
|
60
|
+
table {
|
61
|
+
width: 100%;
|
62
|
+
margin: 1em auto;
|
63
|
+
thead {
|
64
|
+
background-color: #ddd;
|
65
|
+
th {
|
66
|
+
padding: 5px;
|
67
|
+
min-width: 20px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
tbody {
|
71
|
+
tr:nth-child(2n) {
|
72
|
+
background-color: #eee;
|
73
|
+
}
|
74
|
+
td {
|
75
|
+
padding: 5px;
|
76
|
+
vertical-align: text-top;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|