jekyll-text-theme 1.5.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -153
  3. data/_data/authors.yml +0 -0
  4. data/_data/licenses.yml +16 -0
  5. data/_data/locale.yml +4 -10
  6. data/_data/navigation.yml +13 -0
  7. data/_data/variables.yml +22 -6
  8. data/_includes/analytics-providers/custom.html +0 -0
  9. data/_includes/analytics-providers/google.html +16 -0
  10. data/_includes/analytics.html +7 -0
  11. data/_includes/article-footer/custom.html +1 -0
  12. data/_includes/article-footer/license.html +24 -0
  13. data/_includes/article-info.html +90 -0
  14. data/_includes/aside/toc.html +1 -0
  15. data/_includes/author-profile.html +50 -0
  16. data/_includes/comments-providers/custom.html +0 -0
  17. data/_includes/comments-providers/disqus.html +22 -0
  18. data/_includes/comments-providers/gitalk.html +32 -0
  19. data/_includes/comments.html +9 -0
  20. data/_includes/follow-me.html +84 -0
  21. data/_includes/footer.html +39 -0
  22. data/_includes/head.html +54 -0
  23. data/_includes/header.html +33 -0
  24. data/_includes/markdown-enhancements.html +32 -0
  25. data/_includes/{utils → markdown-enhancements}/chart.html +1 -3
  26. data/_includes/{utils → markdown-enhancements}/mathjax.html +11 -4
  27. data/_includes/{utils → markdown-enhancements}/mermaid.html +1 -3
  28. data/_includes/pageview-providers/custom.html +0 -0
  29. data/_includes/pageview-providers/custom/home.html +0 -0
  30. data/_includes/pageview-providers/custom/post.html +0 -0
  31. data/_includes/pageview-providers/leancloud/home.html +35 -0
  32. data/_includes/pageview-providers/leancloud/leancloud.js +71 -0
  33. data/_includes/pageview-providers/leancloud/post.html +31 -0
  34. data/_includes/pageview.html +31 -0
  35. data/_includes/scripts/archieve.js +238 -0
  36. data/_includes/scripts/article-list.html +27 -0
  37. data/_includes/scripts/article.js +24 -0
  38. data/_includes/scripts/aside/affix.js +26 -0
  39. data/_includes/scripts/aside/toc.js +37 -0
  40. data/_includes/scripts/common.js +3 -0
  41. data/_includes/scripts/home.js +3 -0
  42. data/_includes/scripts/lib/affix.js +103 -0
  43. data/_includes/scripts/{utils.html → lib/lazyload.js} +55 -92
  44. data/_includes/scripts/lib/scroll.js +13 -0
  45. data/_includes/scripts/lib/throttle.js +28 -0
  46. data/_includes/scripts/lib/toc.js +106 -0
  47. data/_includes/scripts/page.js +3 -0
  48. data/_includes/scripts/sidebar.js +14 -0
  49. data/_includes/scripts/utils.js +38 -0
  50. data/_includes/scripts/variables.html +27 -0
  51. data/_includes/sidebar/toc.html +27 -0
  52. data/_includes/snippets/assign.html +5 -0
  53. data/_includes/snippets/get-nav-url.html +3 -2
  54. data/_includes/snippets/page-title.html +11 -6
  55. data/_includes/snippets/page-url.html +3 -1
  56. data/_includes/snippets/to-boolean.html +7 -0
  57. data/_includes/{icon → svg/icon}/social/behance.svg +0 -0
  58. data/_includes/{icon → svg/icon}/social/douban.svg +0 -0
  59. data/_includes/{icon → svg/icon}/social/facebook.svg +0 -0
  60. data/_includes/{icon → svg/icon}/social/flicker.svg +0 -0
  61. data/_includes/{icon → svg/icon}/social/github.svg +0 -0
  62. data/_includes/{icon → svg/icon}/social/googleplus.svg +0 -0
  63. data/_includes/{icon → svg/icon}/social/linkedin.svg +0 -0
  64. data/_includes/{icon → svg/icon}/social/mail.svg +0 -0
  65. data/_includes/{icon → svg/icon}/social/pinterest.svg +0 -0
  66. data/_includes/{icon → svg/icon}/social/qq.svg +0 -0
  67. data/_includes/{icon → svg/icon}/social/twitter.svg +0 -0
  68. data/_includes/{icon → svg/icon}/social/weibo.svg +0 -0
  69. data/_includes/{icon → svg/icon}/social/weixin.svg +0 -0
  70. data/_includes/{icon → svg/icon}/social/zhihu.svg +0 -0
  71. data/_includes/{logo → svg}/logo.svg +1 -1
  72. data/_includes/tags.html +52 -0
  73. data/_layouts/404.html +12 -0
  74. data/_layouts/archive.html +25 -0
  75. data/_layouts/article.html +78 -0
  76. data/_layouts/base.html +13 -33
  77. data/_layouts/home.html +135 -121
  78. data/_layouts/landing.html +164 -0
  79. data/_layouts/page.html +157 -9
  80. data/_sass/additional/_alert.scss +25 -0
  81. data/_sass/additional/_photo-frame.scss +17 -0
  82. data/_sass/animate/_fade-in-down.scss +1 -1
  83. data/_sass/animate/_fade-in.scss +1 -1
  84. data/_sass/common/_classes.scss +5 -2
  85. data/_sass/common/_reset.scss +32 -22
  86. data/_sass/common/_variables.scss +87 -31
  87. data/_sass/common/classes/_animation.scss +9 -0
  88. data/_sass/common/classes/_clearfix.scss +8 -0
  89. data/_sass/common/classes/_grid.scss +48 -0
  90. data/_sass/common/classes/_horizontal-rules.scss +14 -0
  91. data/_sass/common/classes/_link.scss +18 -145
  92. data/_sass/common/classes/_media.scss +1 -2
  93. data/_sass/common/classes/_overflow.scss +8 -0
  94. data/_sass/common/classes/_pseudo.scss +26 -0
  95. data/_sass/common/classes/_shadow.scss +13 -5
  96. data/_sass/common/classes/_spacing.scss +52 -0
  97. data/_sass/common/components/_button.scss +179 -47
  98. data/_sass/common/components/_card.scss +18 -0
  99. data/_sass/common/components/_menu.scss +43 -0
  100. data/_sass/common/components/_toc.scss +125 -0
  101. data/_sass/components/_article.content.scss +37 -45
  102. data/_sass/components/_article.info.scss +25 -0
  103. data/_sass/components/_author-profile.scss +43 -0
  104. data/_sass/components/_follow-me.scss +16 -19
  105. data/_sass/components/_footer.scss +16 -6
  106. data/_sass/components/_header.scss +26 -18
  107. data/_sass/components/_license.scss +1 -25
  108. data/_sass/components/_main.scss +13 -11
  109. data/_sass/components/_tags.scss +17 -36
  110. data/_sass/layout/{_error-404.scss → _404.scss} +2 -2
  111. data/_sass/layout/_all.scss +72 -63
  112. data/_sass/layout/_article.scss +44 -0
  113. data/_sass/layout/_home.scss +61 -52
  114. data/_sass/layout/_landing.scss +104 -0
  115. data/_sass/layout/_page.scss +155 -0
  116. data/_sass/{colors → skins}/_chocolate.scss +17 -6
  117. data/_sass/skins/_dark.scss +56 -0
  118. data/_sass/{colors → skins}/_default.scss +16 -5
  119. data/_sass/{colors → skins}/_forest.scss +16 -5
  120. data/_sass/{colors → skins}/_ocean.scss +16 -5
  121. data/_sass/{colors → skins}/_orange.scss +20 -9
  122. data/assets/android-chrome-192x192.png +0 -0
  123. data/assets/android-chrome-512x512.png +0 -0
  124. data/assets/apple-touch-icon.png +0 -0
  125. data/assets/browserconfig.xml +9 -0
  126. data/assets/css/main.scss +46 -0
  127. data/assets/favicon-16x16.png +0 -0
  128. data/assets/favicon-32x32.png +0 -0
  129. data/assets/favicon.ico +0 -0
  130. data/assets/images/logo/logo.svg +1 -1
  131. data/assets/mstile-144x144.png +0 -0
  132. data/assets/mstile-150x150.png +0 -0
  133. data/assets/mstile-310x150.png +0 -0
  134. data/assets/mstile-310x310.png +0 -0
  135. data/assets/mstile-70x70.png +0 -0
  136. data/assets/safari-pinned-tab.svg +38 -0
  137. data/assets/site.webmanifest +19 -0
  138. metadata +108 -76
  139. data/_includes/common-head.html +0 -10
  140. data/_includes/components/article-data.html +0 -55
  141. data/_includes/components/follow-me.html +0 -78
  142. data/_includes/components/footer.html +0 -10
  143. data/_includes/components/header.html +0 -42
  144. data/_includes/components/license.html +0 -26
  145. data/_includes/components/tags.html +0 -52
  146. data/_includes/head-icons-rel.html +0 -38
  147. data/_includes/icon/clear.svg +0 -3
  148. data/_includes/icon/link.svg +0 -1
  149. data/_includes/icon/menu.svg +0 -3
  150. data/_includes/icon/next.svg +0 -3
  151. data/_includes/icon/omit.svg +0 -1
  152. data/_includes/icon/previous.svg +0 -3
  153. data/_includes/icon/search.svg +0 -3
  154. data/_includes/scripts/all.html +0 -244
  155. data/_includes/scripts/common.html +0 -30
  156. data/_includes/scripts/data.html +0 -27
  157. data/_includes/scripts/home.html +0 -26
  158. data/_includes/scripts/page-post.html +0 -32
  159. data/_includes/scripts/post.html +0 -183
  160. data/_includes/utils/comment-disqus.html +0 -19
  161. data/_includes/utils/comment-gitalk.html +0 -25
  162. data/_includes/utils/google-analytics.html +0 -11
  163. data/_layouts/all.html +0 -20
  164. data/_layouts/error-404.html +0 -9
  165. data/_layouts/post.html +0 -60
  166. data/_sass/colors/_dark.scss +0 -45
  167. data/_sass/common/classes/_shape.scss +0 -19
  168. data/_sass/common/classes/_space.scss +0 -40
  169. data/_sass/components/_article.content.extra.scss +0 -41
  170. data/_sass/components/_article.data.scss +0 -36
  171. data/_sass/components/_pagination.scss +0 -19
  172. data/_sass/components/_toc.scss +0 -72
  173. data/_sass/layout/_default.scss +0 -19
  174. data/_sass/layout/_post.scss +0 -80
  175. data/assets/css/blog.scss +0 -41
  176. data/assets/images/logo/icon-120x120.png +0 -0
  177. data/assets/images/logo/icon-128x128.png +0 -0
  178. data/assets/images/logo/icon-150x150.png +0 -0
  179. data/assets/images/logo/icon-152x152.png +0 -0
  180. data/assets/images/logo/icon-167x167.png +0 -0
  181. data/assets/images/logo/icon-16x16.png +0 -0
  182. data/assets/images/logo/icon-180x180.png +0 -0
  183. data/assets/images/logo/icon-192x192.png +0 -0
  184. data/assets/images/logo/icon-310x150.png +0 -0
  185. data/assets/images/logo/icon-310x310.png +0 -0
  186. data/assets/images/logo/icon-48x48.png +0 -0
  187. data/assets/images/logo/icon-70x70.png +0 -0
@@ -1,45 +0,0 @@
1
- ///
2
- // Color Theme: Dark
3
- // Author: Tian Qi
4
- // Email: kitian616@outlook.com
5
- ///
6
-
7
- // main colors
8
- $main-color-1: #ffbf00;
9
- $text-color-1: #dedede;
10
-
11
- $main-color-2: #ff3366;
12
- $text-color-2: #dedede;
13
-
14
- $main-color-3: #21252b;
15
- $text-color-3: #dedede;
16
-
17
- // background colors
18
- $background-color: #2e3744;
19
- // text colors
20
- $text-color-d: #f1f3f6;
21
- $text-color: #dadfe6;
22
- $text-color-l: #acb0b4;
23
- $text-background-color: rgba(#fff, .05);
24
-
25
- // border and shadow colors
26
- $border-color: mix(#fff, $background-color, 20%);
27
- $border-color-l: mix(#fff, $background-color, 10%);
28
- $select-color: rgba($main-color-1, .5);
29
- $decorate-color: rgba(#fff, .1);
30
-
31
- // function colors
32
- $green: #98c379;
33
- $blue: #56b6c2;
34
- $yellow: #e5c07b;
35
- $red: #e06c75;
36
-
37
- // logo colors
38
- $mail-color: #0072c5;
39
- $weibo-color: #e6162d;
40
- $facebook-color: #4267b2;
41
- $google-plus-color:#ea4335;
42
- $twitter-color: #1da1f2;
43
- $douban-color: #42bd56;
44
- $github-color: #000;
45
- $linkedin-color: #1074af;
@@ -1,19 +0,0 @@
1
- @mixin round($length: default) {
2
- @if $length == default {
3
- $length: map-get($shape, round-length);
4
- }
5
- width: $length;
6
- height: $length;
7
- border-radius: 50%;
8
- }
9
-
10
- @mixin round-rect($radius: default, $padding: default) {
11
- @if $radius == default {
12
- $radius: map-get($shape, round-rect-radius);
13
- }
14
- @if $padding == default {
15
- $padding: 0;
16
- }
17
- padding: $padding;
18
- border-radius: $radius;
19
- }
@@ -1,40 +0,0 @@
1
- @mixin horizontal-space($horizontal-space: default, $horizontal-item-vertical-space: default, $wrap: default) {
2
- @if $horizontal-space == default {
3
- $horizontal-space: map-get($base, horizontal-space);
4
- }
5
- @if $horizontal-item-vertical-space == default {
6
- $horizontal-item-vertical-space: map-get($base, horizontal-item-vertical-space);
7
- }
8
- @if $wrap == default {
9
- $wrap: wrap;
10
- }
11
- @include flexbox;
12
- @include flex-wrap($wrap);
13
- &>* {
14
- @if $horizontal-item-vertical-space != none {
15
- margin-top: $horizontal-item-vertical-space;
16
- margin-bottom: $horizontal-item-vertical-space;
17
- }
18
- list-style-type: none;
19
- margin-right: $horizontal-space;
20
- &:last-child {
21
- margin-right: 0;
22
- }
23
- }
24
- }
25
-
26
- @mixin vertical-space($vertical-space: default) {
27
- @if $vertical-space == default {
28
- $vertical-space: map-get($base, vertical-space);
29
- }
30
- @include flexbox;
31
- @include flex-direction(column);
32
- @include flex-wrap(wrap);
33
- &>* {
34
- list-style-type: none;
35
- margin-bottom: $vertical-space;
36
- &:last-child {
37
- margin-bottom: 0;
38
- }
39
- }
40
- }
@@ -1,41 +0,0 @@
1
- .m-article-content {
2
- p.success {
3
- @include round-rect(default, .5rem 1rem);
4
- background-color: mix($green, $background-color, 10%);
5
- border: 1px solid $green;
6
- }
7
-
8
- p.info {
9
- @include round-rect(default, .5rem 1rem);
10
- background-color: mix($blue, $background-color, 10%);
11
- border: 1px solid $blue;
12
- }
13
-
14
- p.warning {
15
- @include round-rect(default, .5rem 1rem);
16
- background-color: mix($yellow, $background-color, 10%);
17
- border: 1px solid $yellow;
18
- }
19
-
20
- p.error {
21
- @include round-rect(default, .5rem 1rem);
22
- background-color: mix($red, $background-color, 10%);
23
- border: 1px solid $red;
24
- }
25
-
26
- img.shadow, .shadow > img {
27
- @include box-shadow(3);
28
- }
29
-
30
- img.border, .border > img {
31
- border: 1px solid $border-color-l;
32
- }
33
-
34
- img.rounded, .rounded > img {
35
- border-radius: map-get($shape, round-rect-radius);
36
- }
37
-
38
- img.circle, .circle > img {
39
- border-radius: 50%;
40
- }
41
- }
@@ -1,36 +0,0 @@
1
- .m-article-data {
2
- margin: .8rem 0;
3
- .date-wrapper,
4
- .tag-wrapper,
5
- .view-wrapper {
6
- font-size: map-get($base, font-size-sub);
7
- }
8
- .tag-wrapper {
9
- float: left;
10
- margin: 0 .25rem 0 0;
11
- @include horizontal-space();
12
- @include media-breakpoint-down(s) {
13
- float: none;
14
- }
15
- }
16
- .other-wrapper {
17
- float: right;
18
- @include flexbox;
19
- @include align-items(center);
20
- @include flex-wrap(wrap);
21
- color: $text-color-l;
22
- margin: 0 0 0 .6rem;
23
- @include media-breakpoint-down(s) {
24
- float: none;
25
- }
26
- }
27
- .view-wrapper {
28
- @include split-line(right);
29
- line-height: 1;
30
- padding: 0 .25rem 0 0;
31
- margin: 0 .25rem 0 0;
32
- }
33
- .date-wrapper {
34
- margin: 0 1rem 0 0;
35
- }
36
- }
@@ -1,19 +0,0 @@
1
- .m-pagination {
2
- &>ul {
3
- @include horizontal-space();
4
- @include align-items(center);
5
- }
6
- .round-button.cur {
7
- background-color: $main-color-1;
8
- border-color: $main-color-1;
9
- color: $text-color-1;
10
- }
11
- .omit {
12
- @include flexbox();
13
- & > svg {
14
- width: 1rem;
15
- height: 1rem;
16
- fill: $text-color-l
17
- }
18
- }
19
- }
@@ -1,72 +0,0 @@
1
- .m-toc {
2
- ul {
3
- display: block;
4
- margin: 0;
5
- list-style-type: none;
6
- & > li {
7
- &:not(:last-child) {
8
- margin-bottom: .1rem;
9
- }
10
- }
11
- }
12
- a {
13
- display: inline-block;
14
- font-size: map-get($base, font-size-sub);
15
- @include link-normal() {
16
- text-decoration: none;
17
- }
18
- @include link-emphasize() {
19
- text-decoration: none;
20
- }
21
- @include link-focus() {
22
- text-decoration: none;
23
- }
24
- @include link-background-colors(transparent, $text-background-color, $text-background-color);
25
- line-height: map-get($base, line-height-small);
26
- font-weight: map-get($base, font-weight);
27
- @include round-rect(default, .2rem 1rem);
28
- }
29
- .toc-h1,
30
- .toc-h2 {
31
- padding: 0;
32
- & > a {
33
- color: $text-color-d;
34
- font-weight: map-get($base, font-weight-bold);
35
- }
36
- }
37
- .toc-h3,
38
- .toc-h4,
39
- .toc-h5,
40
- .toc-h6 {
41
- &>a {
42
- padding-top: .15rem;
43
- padding-bottom: .15rem;
44
- color: $text-color;
45
- font-size: map-get($base, font-size-tiny);
46
- }
47
- }
48
- .toc-h1>a {
49
- font-size: map-get($base, font-size);
50
- }
51
- .toc-h3 {
52
- padding-left: 1.5rem;
53
- }
54
- .toc-h4 {
55
- padding-left: 3rem;
56
- }
57
- .toc-h5 {
58
- color: $text-color-l;
59
- padding-left: 3rem;
60
- }
61
- .toc-h6 {
62
- color: $text-color-l;
63
- font-size: map-get($base, font-size-tiny);
64
- padding-left: 3rem;
65
- }
66
- .toc-active {
67
- a {
68
- background-color: $text-background-color;
69
- color: $main-color-1;
70
- }
71
- }
72
- }
@@ -1,19 +0,0 @@
1
- .m-page-stage {
2
- box-sizing: border-box;
3
- min-height: 100%;
4
- overflow: auto;
5
- padding-bottom: map-get($layout, footer-height);
6
- @include animation(fade-in-down map-get($animation, duration) map-get($animation, timing-function));
7
- }
8
-
9
- .m-page-content {
10
- padding: 0;
11
- padding-bottom: 1.6rem;
12
- @include media-breakpoint-down(l) {
13
- padding-bottom: 0.8rem;
14
- }
15
- }
16
-
17
- .m-page-main {
18
- margin: 0 auto;
19
- }
@@ -1,80 +0,0 @@
1
- .m-post {
2
- .col-2 {
3
- display: none;
4
- float: right;
5
- &>aside {
6
- box-sizing: border-box;
7
- width: map-get($layout, aside-width);
8
- position: absolute;
9
- padding: 1.5rem;
10
- padding-right: 0;
11
- overflow: hidden;
12
- }
13
- @include media-breakpoint-down(l) {
14
- float: none;
15
- }
16
- }
17
- footer {
18
- &>span {
19
- color: $text-color-l;
20
- }
21
- &>.article-license {
22
- position: relative;
23
- max-width: 30rem;
24
- margin: .8rem 0;
25
- }
26
- }
27
- .article-previous-next {
28
- word-wrap: break-word;
29
- margin: map-get($base, vertical-space-large) * 2 0 map-get($base, vertical-space-large) 0;
30
- padding-top: map-get($base, vertical-space-large) / 2;
31
- @include split-line(top, 4px);
32
- & > .article-previous, & > .article-next {
33
- box-sizing: border-box;
34
- width: 50%;
35
- & > span {
36
- font-weight: map-get($base, font-weight-bold);
37
- color: $text-color-l;
38
- }
39
- & > a{
40
- display: block;
41
- @include link-text-colors($text-color, $main-color-1, $main-color-1);
42
- }
43
- }
44
- & > .article-previous {
45
- float: left;
46
- padding-right: .5rem;
47
- }
48
- & > .article-next {
49
- float: right;
50
- padding-left: .5rem;
51
- text-align: right;
52
- }
53
- }
54
- }
55
-
56
- .has-toc {
57
- .m-post {
58
- .col-1 {
59
- margin-right: map-get($layout, aside-width);
60
- @include media-breakpoint-down(l) {
61
- margin-right: 0;
62
- }
63
- }
64
- .col-2 {
65
- width: map-get($layout, aside-width);
66
- position: relative;
67
- display: block;
68
- &>aside {
69
- &.fixed {
70
- position: fixed;
71
- z-index: 2;
72
- -webkit-font-smoothing: subpixel-antialiased;
73
- }
74
- }
75
- @include media-breakpoint-down(l) {
76
- display: none;
77
- }
78
- }
79
- }
80
- }
data/assets/css/blog.scss DELETED
@@ -1,41 +0,0 @@
1
- ---
2
- # Only the main Sass file needs front matter (the dashes are enough)
3
- ---
4
- @charset "utf-8";
5
-
6
- @import
7
- "colors/{{ site.text_color_theme | default: site.data.variables.default.text_color_theme }}",
8
- // "colors/chocolate",
9
- // "colors/dark",
10
- // "colors/default",
11
- // "colors/forest",
12
- // "colors/ocean",
13
- // "colors/orange",
14
-
15
- "common/variables",
16
- "common/highlighting",
17
- "common/classes",
18
- "common/reset",
19
- "common/components/button",
20
-
21
- "animate/fade-in",
22
- "animate/fade-in-down",
23
-
24
- "components/main",
25
- "components/header",
26
- "components/article.data",
27
- "components/article.content",
28
- "components/article.content.extra",
29
- "components/pagination",
30
- "components/tags",
31
- "components/toc",
32
- "components/follow-me",
33
- "components/license",
34
- "components/footer",
35
-
36
- "layout/default",
37
- "layout/home",
38
- "layout/all",
39
- "layout/post",
40
- "layout/error-404"
41
- ;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file