cosy-jekyll-theme 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37c332077f9718e1e70610a62c60c33665f4c4a3
4
- data.tar.gz: e836c69baf4ad48ed501deecd444ea0893170db5
3
+ metadata.gz: d0e6636429d22e2e30b48f711c1b8c35e6b1dde8
4
+ data.tar.gz: f513f781a1ff2c7052a35b5132e0d51472768ddb
5
5
  SHA512:
6
- metadata.gz: 3dd834f60ce5db53397a209dc211b9b2744eb295414b14bf6c6bb9a924ef168f8abe93f9b083515bc0fe43e627f984d24e4ed686578b4495b9ff724de721add2
7
- data.tar.gz: dd7745a18a0891e70bb1fe75c7628d9e1cd96b06fc55fd8931cec4122a0a72e9efa9875a815bb30f8978ee1432cb2e107bb40a7a6ff4bda016a170bf8d417f1a
6
+ metadata.gz: 88e03c5147793770213bafa979650bceb8674ce1fbdc7d48cf28010c93e2babf3bd388fc0b96247016fc5a50e1da5065907e4931b265ee7a288f92bd3a00947a
7
+ data.tar.gz: 7334130423ce5049e6e42b29a5de7db465cbf4a5e77b36e5e60466a2dbf484019cbc17fa6b9036406cb4b801197bf4a12c2ba798bac270c8b3e36f2828c02512
data/README.md CHANGED
@@ -16,6 +16,7 @@
16
16
  - By using SVG and Canvas Makes this blog more geeks.
17
17
  - When running in PC,It will show a QRcode that you can read on mobile.
18
18
  - When the picture in articles is **too complicated to see it clearly,you can zoom it in full-screen.** .
19
+ - Funny [custom 404 page](http://tw93.github.io/err),You will like it.
19
20
  - **More suitable for China**:
20
21
  - Dropping Google webfont, using proxy webfont.
21
22
  - Delay loading of resources that are not immediately required.
@@ -24,31 +24,7 @@
24
24
  ga('create', '{{ site.google_analytics }}', 'auto');
25
25
  ga('require', 'linkid', 'linkid.js');
26
26
  ga('send', 'pageview');
27
- }, 4000);
28
- </script>
29
- {% endif %}
30
-
31
- {% if page.url=="/" %}
32
- <script>
33
- function hereDoc(f) {
34
- return f.toString().replace(/^[^\/]+\/\*!?\s?/, '').replace(/\*\/[^\/]+$/, '');
35
- }
36
- var string = hereDoc(function () {/*
37
-
38
-
39
- _ ___ _____ _ _
40
- | | |_ | / ___| (_) | |
41
- | | ___ __ _ _ __ _ __ | | __ ___ ____ _\ `--. ___ _ __ _ _ __ | |_
42
- | | / _ \/ _` | '__| '_ \ | |/ _` \ \ / / _` |`--. \/ __| '__| | '_ \| __|
43
- | |___| __/ (_| | | | | | | /\__/ / (_| |\ V / (_| /\__/ / (__| | | | |_) | |_
44
- \_____/\___|\__,_|_| |_| |_| \____/ \__,_| \_/ \__,_\____/ \___|_| |_| .__/ \__|
45
-
46
-
47
- Tw93 Stay hungry. Stay foolish.
48
-
49
- */
50
- });
51
- console.log(string);
27
+ }, 3000);
52
28
  </script>
53
29
  {% endif %}
54
30
 
@@ -79,3 +55,26 @@
79
55
  {% endif %}
80
56
 
81
57
 
58
+ {% if page.url=="/" %}
59
+ <script>
60
+ function hereDoc(f) {
61
+ return f.toString().replace(/^[^\/]+\/\*!?\s?/, '').replace(/\*\/[^\/]+$/, '');
62
+ }
63
+ var string = hereDoc(function () {/*
64
+
65
+
66
+ _ ___ _____ _ _
67
+ | | |_ | / ___| (_) | |
68
+ | | ___ __ _ _ __ _ __ | | __ ___ ____ _\ `--. ___ _ __ _ _ __ | |_
69
+ | | / _ \/ _` | '__| '_ \ | |/ _` \ \ / / _` |`--. \/ __| '__| | '_ \| __|
70
+ | |___| __/ (_| | | | | | | /\__/ / (_| |\ V / (_| /\__/ / (__| | | | |_) | |_
71
+ \_____/\___|\__,_|_| |_| |_| \____/ \__,_| \_/ \__,_\____/ \___|_| |_| .__/ \__|
72
+
73
+
74
+ Tw93 Stay hungry. Stay foolish.
75
+
76
+ */
77
+ });
78
+ console.log(string);
79
+ </script>
80
+ {% endif %}
data/_includes/head.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
- <title>{% if page.layout =='post' or page.hideHomeActive %}{{ page.title }} - {% endif %}{{ site.title }}</title>
3
+ <title>{% if page.layout =='post' or page.hideHomeActive or page.is404 %}{{ page.title }} - {% endif %}{{ site.title }}</title>
4
4
  <meta name="description"
5
5
  content="{{ site.description }}{% if page.categories %}{{ page.categories }}{% endif %}{% if page.summary %}{{ page.summary }}{% endif %}">
6
6
  {% if page.tags %}
@@ -34,7 +34,7 @@
34
34
  <path id="svg-title-path">
35
35
  <animate attributeName="d" from="m0,110 h0" to="m0,110 h1100" dur="2s" repeatCount="1" fill="freeze" begin="0s" />
36
36
  </path>
37
- <text font-size="36" fill='#ffffff' x="50%" y="50%" text-anchor="middle">
37
+ <text font-size="36" fill='#ffffff' x="50%" y="50%" text-anchor="middle" word-spacing="4" letter-spacing="1">
38
38
  <textPath xlink:href="#svg-title-path">{{ page.title }}</textPath>
39
39
  </text>
40
40
  </svg>
data/_sass/_404.scss ADDED
@@ -0,0 +1,215 @@
1
+
2
+ svg#robot {
3
+ display: block;
4
+ position: relative;
5
+ margin: 3em auto 0em auto;
6
+ padding: 10px;
7
+ transform-origin: bottom;
8
+ transform: rotate(0deg) translate3d(0px, 0px, 0px);
9
+ animation: move 2s ease infinite;
10
+ @media #{$medium} {
11
+ margin: 2.4em auto 0 auto;
12
+ }
13
+ }
14
+
15
+ @keyframes move {
16
+ 0%, 100% {
17
+ transform: rotate(0deg) translate3d(0px, 0px, 0px);
18
+ }
19
+ 25% {
20
+ transform: rotate(5deg) translate3d(5px, 5px, 0px);
21
+ }
22
+ 75% {
23
+ transform: rotate(-6deg) translate3d(-5px, 5px, 0px);
24
+ }
25
+ }
26
+
27
+ g#head {
28
+ transform: rotate(0deg) translate3d(0px, 0px, 0px);
29
+ transform-origin: bottom center;
30
+ animation: head 1s 1s ease infinite;
31
+ #leftAntenna, #rightAntenna {
32
+ > ellipse {
33
+ animation: color 350ms linear infinite;
34
+ }
35
+ }
36
+ }
37
+
38
+ @keyframes head {
39
+ 0%, 46%, 50%, 55%, 100% {
40
+ transform: rotate(0deg) translate3d(0px, 0px, 0px);
41
+ }
42
+ 49% {
43
+ transform: rotate(20deg) translate3d(0px, 0px, 0px);
44
+ }
45
+ 51% {
46
+ transform: rotate(-10deg) translate3d(0px, 0px, 0px);
47
+ }
48
+ }
49
+
50
+ @keyframes color {
51
+ 0%, 100% {
52
+ fill: #ccc;
53
+ }
54
+ 50% {
55
+ fill: rgb(255, 0, 0);
56
+ }
57
+ }
58
+
59
+ #upperTorso {
60
+ transform: rotate(0deg);
61
+ transform-origin: center;
62
+ animation: torso 600ms 1s ease infinite;
63
+ #leftArm {
64
+ transform: rotate(0deg);
65
+ transform-origin: 80% 5%;
66
+ animation: left 1s ease infinite;
67
+ .forearm {
68
+ transform: rotate(0deg);
69
+ transform-origin: 68% 10%;
70
+ animation: forearm 800ms 1s ease infinite;
71
+ }
72
+ }
73
+ #rightArm {
74
+ transform: rotate(0deg);
75
+ transform-origin: 18% 0%;
76
+ animation: right 1s ease infinite;
77
+ .forearm {
78
+ transform: rotate(0deg);
79
+ transform-origin: 68% 10%;
80
+ animation: forearm 700ms 1s ease infinite;
81
+ }
82
+ }
83
+ }
84
+
85
+ @keyframes torso {
86
+ 40%, 50%, 60% {
87
+ transform: rotate(0deg);
88
+ }
89
+ 45% {
90
+ transform: rotate(5deg);
91
+ }
92
+ 55% {
93
+ transform: rotate(-5deg);
94
+ }
95
+ }
96
+
97
+ @keyframes left {
98
+ 60% {
99
+ transform: rotate(100deg);
100
+ }
101
+ }
102
+
103
+ @keyframes right {
104
+ 50% {
105
+ transform: rotate(-70deg);
106
+ }
107
+ }
108
+
109
+ @keyframes forearm {
110
+ 0%, 30%, 50%, 70%, 100% {
111
+ transform: rotate(0deg);
112
+ }
113
+ 40% {
114
+ transform: rotate(25deg);
115
+ }
116
+ 60% {
117
+ transform: rotate(-25deg);
118
+ }
119
+ }
120
+
121
+ #lowerTrunk {
122
+ transform: rotate(0deg);
123
+ transform-origin: 60% 5%;
124
+ animation: lowerTrunk 1s ease infinite;
125
+ }
126
+
127
+ @keyframes lowerTrunk {
128
+ 0%, 100% {
129
+ transform: rotate(0deg) translate3d(0px, 0px, 0px);
130
+ }
131
+ 25% {
132
+ transform: rotate(2deg) translate3d(2px, 0px, 0px);
133
+ }
134
+ 75% {
135
+ transform: rotate(-2deg) translate3d(-2px, 0px, 0px);
136
+ }
137
+ }
138
+
139
+ #leftFoot {
140
+ transform: rotate(0deg);
141
+ transform-origin: 60% 5%;
142
+ animation: leftFoot 2s ease infinite;
143
+ > .lowerLeg {
144
+ transform: rotate(0deg);
145
+ transform-origin: 68% 10%;
146
+ animation: lowerLeg 2s ease infinite;
147
+ }
148
+ }
149
+
150
+ @keyframes leftFoot {
151
+ 0%, 50% {
152
+ transform: rotate(0deg);
153
+ }
154
+ 25% {
155
+ transform: rotate(70deg);
156
+ }
157
+ }
158
+
159
+ @keyframes lowerLeg {
160
+ 0%, 50% {
161
+ transform: rotate(0deg);
162
+ }
163
+ 8%, 14% {
164
+ transform: rotate(-15deg);
165
+ }
166
+ 11%, 18% {
167
+ transform: rotate(15deg);
168
+ }
169
+ }
170
+
171
+ #rightFoot {
172
+ transform: rotate(0deg);
173
+ transform-origin: 50% 5%;
174
+ animation: rightFoot 2s ease infinite;
175
+ > .lowerLeg {
176
+ transform: rotate(0deg);
177
+ transform-origin: 68% 10%;
178
+ animation: lowerLegIz 2s ease infinite;
179
+ }
180
+ }
181
+
182
+ @keyframes rightFoot {
183
+ 75% {
184
+ transform: rotate(-60deg);
185
+ }
186
+ 50%, 100% {
187
+ transform: rotate(0deg);
188
+ }
189
+ }
190
+
191
+ @keyframes lowerLegIz {
192
+ 50%, 100% {
193
+ transform: rotate(0deg);
194
+ }
195
+ 60%, 70% {
196
+ transform: rotate(15deg);
197
+ }
198
+ 65%, 85% {
199
+ transform: rotate(-15deg);
200
+ }
201
+ }
202
+
203
+ h1.error-not-found {
204
+ width: 100%;
205
+ text-align: center;
206
+ text-shadow: 0 3px 0px #000, 0 6px 0px #333;
207
+ color: #f54f59;
208
+ font-size: 6em;
209
+ font-weight: 700;
210
+ margin-bottom: 1.2em;
211
+ margin-top: 0;
212
+ @media #{$medium} {
213
+ margin-bottom: 0.4em;
214
+ }
215
+ }
data/_sass/_page.scss CHANGED
@@ -602,13 +602,6 @@ body {
602
602
  cursor: zoom-in;
603
603
  }
604
604
 
605
- .lazyload {
606
- -webkit-filter: blur(4px);
607
- filter: blur(4px);
608
- opacity: 1;
609
- transition: opacity 0.5s ease-in;
610
- }
611
-
612
605
  .lazyload,
613
606
  .lazyloading {
614
607
  -webkit-filter: blur(5px);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cosy-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tw93
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-04 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -73,6 +73,7 @@ files:
73
73
  - _layouts/home.html
74
74
  - _layouts/page.html
75
75
  - _layouts/post.html
76
+ - _sass/_404.scss
76
77
  - _sass/_animations.scss
77
78
  - _sass/_coderay.scss
78
79
  - _sass/_elements.scss