moving 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1185f784bdd77096978e154f8c0c9eddb04d9a7a32a02f2862b579d179a722e
4
- data.tar.gz: 9512618a5e6d7b1c74861e809bf4ce55c04037e12cb652dad5b6e46f3cb158fe
3
+ metadata.gz: f5466bae2a0019fe9fa4bfebb601a2977ea5545e9c828d2365e5696894056e41
4
+ data.tar.gz: 9a7dc6c3235d289cce7e402df97e350a88f2953ebb8ac10fca4c42e4f6d02010
5
5
  SHA512:
6
- metadata.gz: f0721b95f8bb07280da76038b5dde3eed712d8bbcaa902701e5d90f9b554af6109399b1d0cecaa2a59985e87c9c3024d44bd477577687ad15770e3d6b45bfc26
7
- data.tar.gz: 1a01f76cc69cf6d626bea37fefae962f1fc8cfb1c24bf67fbfa8884545cafecb1803c92d4d9b5252b86e68415761594749d093412ef81eefb0ee6524eafeb14f
6
+ metadata.gz: 2915194238ab5cf0b17c5175a4d2a718e4f561a41a7fec8c3a0c4e8cd7a08d69ea5502f4d6d6eb32edb989f7befec7d8879a9906d26a88285dfc07f785406407
7
+ data.tar.gz: 3699b4ae03375a89c0a6ff17dce5f0cb7c5f24dd621a529af6f093c9991dbee419d25508cd9958e0d396b777ac2cae6db9758b4b998ab173a9004286db20c44e
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # moving
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/moving.svg)](https://badge.fury.io/rb/moving) ![progress](https://img.shields.io/badge/progress-developing-yellow.svg)
3
+ [![Gem Version](https://badge.fury.io/rb/moving.svg)](https://badge.fury.io/rb/moving) [![Build Status](https://travis-ci.org/huangyz0918/moving.svg?branch=master)](https://travis-ci.org/huangyz0918/moving) ![progress](https://img.shields.io/badge/progress-developing-yellow.svg)
4
4
 
5
5
  Moving is a clean and minimalist theme for [Jekyll](https://jekyllrb.com/), focuses on pure and efficient writing. [[view demo]](http://huangyz.name/moving/)
6
6
 
7
- ![](./banner2.svg)
7
+ ![](./github/banner2.svg)
8
8
 
9
9
 
10
10
  ## Installation
@@ -6,12 +6,9 @@
6
6
  <ul class="contact-list">
7
7
  <li class="p-name">
8
8
  {%- if site.author -%}
9
- <a class="black-link" href="./about.html">
9
+ <a class="black-link" href="{{ site.url }}/about.html">
10
10
  {{ site.author | escape }}
11
11
  </a>
12
- <!-- {%- if site.moving.about_you_short -%}
13
- , {{ site.moving.about_you_short }}
14
- {%- endif -%} -->
15
12
  {%- endif -%}
16
13
  </li>
17
14
  {%- if site.email -%}
@@ -0,0 +1,17 @@
1
+ <script
2
+ async
3
+ src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"
4
+ ></script>
5
+ <script>
6
+ window["ga-disable-{{ site.google_analytics }}"] =
7
+ window.doNotTrack === "1" ||
8
+ navigator.doNotTrack === "1" ||
9
+ navigator.doNotTrack === "yes" ||
10
+ navigator.msDoNotTrack === "1";
11
+ window.dataLayer = window.dataLayer || [];
12
+ function gtag() {
13
+ dataLayer.push(arguments);
14
+ }
15
+ gtag("js", new Date());
16
+ gtag("config", "{{ site.google_analytics }}");
17
+ </script>
data/_includes/head.html CHANGED
@@ -2,11 +2,16 @@
2
2
  <meta charset="utf-8" />
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1" />
5
+ {%- seo title=false -%}
5
6
  <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" />
6
7
  <link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon }}" />
7
- <link rel="stylesheet" href="{{ site.url }}/assets/css/monokai.css" />
8
+ <link rel="stylesheet" href="{{ site.url }}/assets/css/agate.css" />
8
9
  <script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js"></script>
9
10
  <script>
10
11
  hljs.initHighlightingOnLoad();
11
12
  </script>
13
+ {%- feed_meta -%}
14
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
15
+ {%- include google-analytics.html -%}
16
+ {%- endif -%}
12
17
  </head>
@@ -0,0 +1,131 @@
1
+ {%- assign social = site.moving.social_links -%}
2
+
3
+ <ul class="social-media-list">
4
+ {%- if social.dribbble -%}
5
+ <li>
6
+ <a
7
+ class="black-link"
8
+ href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}"
9
+ >[Dribbble]</a
10
+ >
11
+ </li>
12
+ {%- endif -%} {%- if social.facebook -%}
13
+ <li>
14
+ <a
15
+ class="black-link"
16
+ href="https://www.facebook.com/{{
17
+ social.facebook | cgi_escape | escape
18
+ }}"
19
+ >[Facebook]</a
20
+ >
21
+ </li>
22
+ {%- endif -%} {%- if social.flickr -%}
23
+ <li>
24
+ <a
25
+ class="black-link"
26
+ href="https://www.flickr.com/photos/{{
27
+ social.flickr | cgi_escape | escape
28
+ }}"
29
+ >[Flickr]</a
30
+ >
31
+ </li>
32
+ {%- endif -%} {%- if social.github -%}
33
+ <li>
34
+ <a
35
+ class="black-link"
36
+ href="https://github.com/{{ social.github | cgi_escape | escape }}"
37
+ > [Github]</a
38
+ >
39
+ </li>
40
+ {%- endif -%} {%- if social.instagram -%}
41
+ <li>
42
+ <a
43
+ class="black-link"
44
+ href="https://www.instagram.com/{{
45
+ social.instagram | cgi_escape | escape
46
+ }}"
47
+ >[Instagram]</a
48
+ >
49
+ </li>
50
+ {%- endif -%} {%- if social.linkedin -%}
51
+ <li>
52
+ <a
53
+ class="black-link"
54
+ href="https://www.linkedin.com/in/{{
55
+ social.linkedin | cgi_escape | escape
56
+ }}"
57
+ >[Linkedin]</a
58
+ >
59
+ </li>
60
+ {%- endif -%} {%- if social.pinterest -%}
61
+ <li>
62
+ <a
63
+ class="black-link"
64
+ href="https://www.pinterest.com/{{
65
+ social.pinterest | cgi_escape | escape
66
+ }}"
67
+ >[Pinterest]</a
68
+ >
69
+ </li>
70
+ {%- endif -%} {%- for mst in social.mastodon -%}{%- if mst.username and
71
+ mst.instance -%}
72
+ <li>
73
+ <a
74
+ class="black-link"
75
+ rel="me"
76
+ href="https://{{ mst.instance | cgi_escape | escape }}/@{{
77
+ mst.username
78
+ }}"
79
+ >[MST]</a
80
+ >
81
+ </li>
82
+ {%- endif -%}{%- endfor -%} {%- if social.twitter -%}
83
+ <li>
84
+ <a
85
+ class="black-link"
86
+ href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}"
87
+ > [Twitter]</a
88
+ >
89
+ </li>
90
+ {%- endif -%} {%- if social.youtube -%}
91
+ <li>
92
+ <a
93
+ class="black-link"
94
+ href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}"
95
+ >[YouTube]</a
96
+ >
97
+ </li>
98
+ {%- endif -%} {%- if social.youtube_channel -%}
99
+ <li>
100
+ <a
101
+ class="black-link"
102
+ href="https://www.youtube.com/channel/{{
103
+ social.youtube_channel | cgi_escape | escape
104
+ }}"
105
+ >[YouTube Channel]</a
106
+ >
107
+ </li>
108
+ {%- endif -%} {%- if social.telegram -%}
109
+ <li>
110
+ <a
111
+ class="black-link"
112
+ href="https://t.me/{{ social.telegram | cgi_escape | escape }}"
113
+ >
114
+ [Telegram]
115
+ </a>
116
+ </li>
117
+ {%- endif -%} {%- if social.microdotblog -%}
118
+ <li>
119
+ <a
120
+ class="black-link"
121
+ rel="me"
122
+ href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}"
123
+ >[Microdotblog]</a
124
+ >
125
+ </li>
126
+ {%- endif -%} {%- if social.rss -%}
127
+ <li>
128
+ <a class="black-link" href="{{ 'feed.xml' | relative_url }}">[RSS]</a>
129
+ </li>
130
+ {%- endif -%}
131
+ </ul>
data/_layouts/about.html CHANGED
@@ -26,6 +26,7 @@ layout: default
26
26
  </p>
27
27
  {%- endif -%}
28
28
 
29
+ {%- include social.html -%}
29
30
  <div class="about-content e-content" itemprop="articleBody">
30
31
  {{ content }}
31
32
  </div>
data/_sass/moving.scss CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Define defaults for each variable.
4
4
 
5
- $base-font-family: 'Bitter', serif !default;
5
+ $base-font-family: "Bitter", "Times New Roman", "FangSong", "仿宋", STFangSong, "华文仿宋", serif;
6
6
  $base-font-size: 18px !default;
7
7
  $base-font-weight: 400 !default;
8
8
  $small-font-size: $base-font-size * 0.9 !default;
@@ -29,15 +29,6 @@ $on-laptop: 800px !default;
29
29
  $on-medium: $on-palm !default;
30
30
  $on-large: $on-laptop !default;
31
31
 
32
- // Use media queries like this:
33
- // @include media-query($on-palm) {
34
- // .wrapper {
35
- // padding-right: $spacing-unit / 2;
36
- // padding-left: $spacing-unit / 2;
37
- // }
38
- // }
39
- // Notice the following mixin uses max-width, in a deprecated, desktop-first
40
- // approach, whereas media queries used elsewhere now use min-width.
41
32
  @mixin media-query($device) {
42
33
  @media screen and (max-width: $device) {
43
34
  @content;
@@ -38,6 +38,7 @@ body {
38
38
  display: flex;
39
39
  min-height: 100vh;
40
40
  flex-direction: column;
41
+ padding: 0 5%;
41
42
  }
42
43
 
43
44
  /**
@@ -67,10 +68,37 @@ main {
67
68
  display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
68
69
  }
69
70
 
71
+ /**
72
+ * Divider
73
+ */
74
+ hr {
75
+ margin-top: 20px;
76
+ margin-bottom: 20px;
77
+ border: 0;
78
+ height: 1px;
79
+ background: -webkit-linear-gradient(
80
+ left,
81
+ transparent,
82
+ rgba(0, 0, 0, 0.5),
83
+ transparent
84
+ );
85
+ background: linear-gradient(
86
+ left,
87
+ transparent,
88
+ rgba(0, 0, 0, 0.5),
89
+ transparent
90
+ );
91
+ }
92
+
70
93
  /**
71
94
  * Images
72
95
  */
73
96
  img {
97
+ margin-bottom: 5px;
98
+ margin-top: 5px;
99
+ padding: 2px 2px;
100
+ border-radius: 3px;
101
+ background-color: lighten($grey-color-light, 3%);
74
102
  max-width: 100%;
75
103
  vertical-align: middle;
76
104
  }
@@ -110,6 +138,7 @@ h3,
110
138
  h4,
111
139
  h5,
112
140
  h6 {
141
+ margin-top: 2rem;
113
142
  font-weight: $base-font-weight;
114
143
  }
115
144
 
@@ -119,18 +148,10 @@ h6 {
119
148
  a {
120
149
  color: $brand-color;
121
150
  text-decoration: none;
122
-
151
+
123
152
  &:hover {
124
153
  text-decoration: underline;
125
154
  }
126
-
127
- .social-media-list &:hover {
128
- text-decoration: none;
129
-
130
- .username {
131
- text-decoration: underline;
132
- }
133
- }
134
155
  }
135
156
 
136
157
  /**
@@ -111,6 +111,18 @@
111
111
  margin-bottom: $spacing-unit / 2;
112
112
  }
113
113
 
114
+ .p-name {
115
+ @media (max-width: 500px) {
116
+ @include relative-font-size(0.9);
117
+ }
118
+ }
119
+
120
+ .u-email {
121
+ @media (max-width: 500px) {
122
+ @include relative-font-size(0.9);
123
+ }
124
+ }
125
+
114
126
  .contact-list,
115
127
  .social-media-list {
116
128
  list-style: none;
@@ -136,12 +148,23 @@
136
148
  .home-heading {
137
149
  font-weight: 1000;
138
150
  color: lighten($text-color, 15%);
151
+
152
+ @media (max-width: 500px) {
153
+ margin-top: 20px;
154
+ @include relative-font-size(1.7);
155
+ }
156
+
139
157
  @include relative-font-size(2.2);
140
158
  }
141
159
 
142
160
  .home-sub-heading {
143
161
  margin-top: -0.6rem;
144
162
  color: lighten($text-color, 25%);
163
+
164
+ @media (max-width: 500px) {
165
+ @include relative-font-size(0.8);
166
+ }
167
+
145
168
  @include relative-font-size(1);
146
169
  }
147
170
 
@@ -159,11 +182,21 @@
159
182
  margin-top: 1rem;
160
183
  font-weight: 700;
161
184
  color: lighten($text-color, 15%);
185
+
186
+ @media (max-width: 500px) {
187
+ @include relative-font-size(1.2);
188
+ }
189
+
162
190
  @include relative-font-size(1.5);
163
191
  }
164
192
 
165
193
  .post-meta {
166
194
  display: inline-block;
195
+
196
+ @media (max-width: 500px) {
197
+ @include relative-font-size(0.8);
198
+ }
199
+
167
200
  @include relative-font-size(1);
168
201
  color: lighten($text-color, 25%);
169
202
  }
@@ -171,6 +204,11 @@
171
204
  .post-link-layout {
172
205
  margin-left: 10%;
173
206
  display: inline-block;
207
+
208
+ @media (max-width: 500px) {
209
+ @include relative-font-size(1);
210
+ }
211
+
174
212
  @include relative-font-size(1.2);
175
213
  }
176
214
 
@@ -202,6 +240,11 @@
202
240
  letter-spacing: -1px;
203
241
  line-height: 1;
204
242
  font-weight: 1000;
243
+ margin-top: -0.5rem;
244
+
245
+ @media (max-width: 500px) {
246
+ @include relative-font-size(1.8);
247
+ }
205
248
 
206
249
  @media screen and (min-width: $on-large) {
207
250
  @include relative-font-size(2.2);
@@ -238,24 +281,13 @@
238
281
  }
239
282
 
240
283
  .social-media-list {
241
- display: table;
242
- margin: 0 auto;
284
+ margin-top: -0.6rem;
285
+ display: flex;
286
+ @include relative-font-size(1.0);
243
287
  li {
244
288
  float: left;
245
- margin: 0 5px;
246
- &:first-of-type {
247
- margin-left: 0;
248
- }
249
- &:last-of-type {
250
- margin-right: 0;
251
- }
252
289
  a {
253
- display: block;
254
- padding: $spacing-unit / 4;
255
- border: 1px solid $grey-color-light;
256
- }
257
- &:hover .svg-icon {
258
- fill: currentColor;
290
+ padding-right: $spacing-unit / 5;
259
291
  }
260
292
  }
261
293
  }
@@ -303,4 +335,5 @@
303
335
  border: 1px solid $grey-color-light;
304
336
  width: 15rem;
305
337
  height: 15rem;
338
+ margin-bottom: -5px;
306
339
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moving
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - huangyz0918
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-26 00:00:00.000000000 Z
11
+ date: 2019-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.16'
61
+ version: 2.0.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.16'
68
+ version: 2.0.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +90,9 @@ files:
90
90
  - LICENSE.txt
91
91
  - README.md
92
92
  - _includes/footer.html
93
+ - _includes/google-analytics.html
93
94
  - _includes/head.html
95
+ - _includes/social.html
94
96
  - _layouts/about.html
95
97
  - _layouts/default.html
96
98
  - _layouts/home.html