moving 0.1.1 → 0.2.0

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
2
  SHA256:
3
- metadata.gz: 0ad7c4578ca0d053212512cc6099c9c2a12bdb662a7138bc1bd62dea927f4f4d
4
- data.tar.gz: '04579f63308acb1b82db3c9bc789237fa20d6806ffea43975b1022fa4b942053'
3
+ metadata.gz: f1185f784bdd77096978e154f8c0c9eddb04d9a7a32a02f2862b579d179a722e
4
+ data.tar.gz: 9512618a5e6d7b1c74861e809bf4ce55c04037e12cb652dad5b6e46f3cb158fe
5
5
  SHA512:
6
- metadata.gz: ff7647745a96637a1f220952461cfc863ddc8ab244c9f5a3347f09651853ba423f9b6dcf0aa76de0024351a0bee7e7a9c188e951f91a2d00fd4c19976f065059
7
- data.tar.gz: 790c2ca04434c5b924297a0aabd68f3c21d446a7b88d0822a9d35423791cdf15d569ba3e77590e0bfd882642f11aaf882e2f32c2417778114ffe83213b93a577
6
+ metadata.gz: f0721b95f8bb07280da76038b5dde3eed712d8bbcaa902701e5d90f9b554af6109399b1d0cecaa2a59985e87c9c3024d44bd477577687ad15770e3d6b45bfc26
7
+ data.tar.gz: 1a01f76cc69cf6d626bea37fefae962f1fc8cfb1c24bf67fbfa8884545cafecb1803c92d4d9b5252b86e68415761594749d093412ef81eefb0ee6524eafeb14f
data/README.md CHANGED
@@ -1,14 +1,41 @@
1
1
  # moving
2
2
 
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
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)
4
4
 
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` this directory is setup just like a Jekyll site!
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
- TODO: Delete this and the text above, and describe your gem
7
+ ![](./banner2.svg)
8
8
 
9
9
 
10
10
  ## Installation
11
11
 
12
+ ### New Blog
13
+ If you want to create a new blog using moving. You can follow these steps after setting up the [Jekyll](https://jekyllrb.com) environments:
14
+
15
+ Clone this repository:
16
+ ```bash
17
+ git clone https://github.com/huangyz0918/moving.git
18
+ ```
19
+
20
+ Move into that directory:
21
+ ```bash
22
+ cd moving/
23
+ ```
24
+
25
+ Install required gems using `bundle`:
26
+ ```bash
27
+ bundle install
28
+ ```
29
+
30
+ Run the blog in localhost
31
+ ```bash
32
+ jekyll serve
33
+ ```
34
+
35
+ Once you successfully run the moving blog, you can modify the theme and add posts by yourself, have fun!
36
+
37
+ ### Add Moving to Existing Blog
38
+
12
39
  Add this line to your Jekyll site's `Gemfile`:
13
40
 
14
41
  ```ruby
@@ -29,13 +56,43 @@ Or install it yourself as:
29
56
 
30
57
  $ gem install moving
31
58
 
59
+ ### Deploy to Github Pages
60
+
61
+ :warning: If you want to publish your site in [Github Pages](https://pages.github.com/). Change `theme: xxx` in `_config.yml` to `remote_theme: huangyz0918/moving` then push to your github repo (this is important, or you will get an error from github pages that not support the moving theme). If you want to test your site locally, you can change that to `theme: moving` and build again.
62
+
63
+
32
64
  ## Usage
33
65
 
34
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
66
+ You can modify the `_config.yml` to custom your blog. An example is if you want to change the back button's text in each post, you can change the `back_to`.
67
+
68
+ ```yaml
69
+ title: Moving # The title of the blog
70
+ author: Your Name # Your name
71
+ email: your-email@domain.com # your email shown in the footer
72
+ url: http://huangyz.name/moving/ # this is your site's root address.
73
+ description: > # this means to ignore newlines until "show_excerpts:"
74
+ A clean and minimalist theme for Jekyll.
75
+ favicon: "./favicon.ico" # set the favicon of the site
76
+
77
+ show_excerpts: false # set to true to show excerpts on the homepage
78
+
79
+ # Moving date format
80
+ # refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this
81
+ moving:
82
+ avatar_url: "https://i.loli.net/2019/08/26/JzCLhDWPEybZr2T.jpg" # avatar in about page
83
+ about_you: a short description about you. # short description about you in about page
84
+ date_format: "%b %d" # date format of posts in home page
85
+ back_to: "Home" # In the post page, you have a back button above the title, you can custom the text by yourself.
86
+
87
+ # Build settings
88
+ theme: moving # note, please use huangyz0918/moving if you want to publish to Github Pages.
89
+ ```
90
+
91
+
35
92
 
36
93
  ## Contributing
37
94
 
38
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
95
+ Bug reports and pull requests are welcome on GitHub at [here](https://github.com/huangyz0918/moving). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
96
 
40
97
  ## Development
41
98
 
@@ -2,15 +2,21 @@
2
2
  <data class="u-url" href="{{ "/" | relative_url }}"></data>
3
3
  <div class="wrapper">
4
4
  <div class="footer-col-wrapper">
5
- <div class="footer-col one-half">
5
+ <div class="footer-col">
6
6
  <ul class="contact-list">
7
7
  <li class="p-name">
8
8
  {%- if site.author -%}
9
- {{ site.author | escape }}
9
+ <a class="black-link" href="./about.html">
10
+ {{ site.author | escape }}
11
+ </a>
12
+ <!-- {%- if site.moving.about_you_short -%}
13
+ , {{ site.moving.about_you_short }}
14
+ {%- endif -%} -->
10
15
  {%- endif -%}
11
16
  </li>
12
17
  {%- if site.email -%}
13
- <li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
18
+ <li>
19
+ <a class="u-email black-link" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
14
20
  {%- endif -%}
15
21
  </ul>
16
22
  </div>
data/_includes/head.html CHANGED
@@ -2,6 +2,11 @@
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
- <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css">
6
- <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
5
+ <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" />
6
+ <link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon }}" />
7
+ <link rel="stylesheet" href="{{ site.url }}/assets/css/monokai.css" />
8
+ <script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js"></script>
9
+ <script>
10
+ hljs.initHighlightingOnLoad();
11
+ </script>
7
12
  </head>
@@ -0,0 +1,32 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="about-page">
6
+ <head>
7
+ <title>{{ site.author }}</title>
8
+ </head>
9
+ <div class="post-back">
10
+ <a class="black-link" href="{{ site.url | relative_url }}"> ← {{ site.moving.back_to }} </a>
11
+ </div>
12
+
13
+ {%- if site.moving.avatar_url -%}
14
+ <img class="about-avatar" src="{{ site.moving.avatar_url }}"/>
15
+ {%- endif -%}
16
+
17
+ {%- if site.author -%}
18
+ <div class="about-your-name">
19
+ {{ site.author | escape }}
20
+ </div>
21
+ {%- endif -%}
22
+
23
+ {%- if site.moving.about_you -%}
24
+ <p class="about-info">
25
+ {{ site.moving.about_you | escape }}
26
+ </p>
27
+ {%- endif -%}
28
+
29
+ <div class="about-content e-content" itemprop="articleBody">
30
+ {{ content }}
31
+ </div>
32
+ </div>
data/_layouts/home.html CHANGED
@@ -3,6 +3,9 @@ layout: default
3
3
  ---
4
4
 
5
5
  <div class="home">
6
+ <head>
7
+ <title>{{ site.title }}</title>
8
+ </head>
6
9
  <div class="home-title">
7
10
  <p class="home-heading">{{ site.title }}</p>
8
11
  <p class="home-sub-heading">{{- site.description | escape -}}</p>
@@ -24,7 +27,7 @@ layout: default
24
27
  <span class="post-meta">
25
28
  {{ post.date | date: date_format }}
26
29
  </span>
27
- <a class="post-link" href="{{ post.url | relative_url }}">
30
+ <a class="black-link post-link-layout" href="{{ post.url | relative_url }}">
28
31
  {{ post.title | escape }}
29
32
  </a>
30
33
  </li>
data/_layouts/post.html CHANGED
@@ -7,9 +7,14 @@ layout: default
7
7
  itemscope
8
8
  itemtype="http://schema.org/BlogPosting"
9
9
  >
10
+ <head>
11
+ <title>{{ page.title }}</title>
12
+ </head>
10
13
  <header class="post-header">
11
14
  <div class="post-back">
12
- <a href="{{ site.url | relative_url }}"> ← {{ site.moving.back_to }} </a>
15
+ <a class="black-link" href="{{ site.url | relative_url }}">
16
+ ← {{ site.moving.back_to }}
17
+ </a>
13
18
  </div>
14
19
 
15
20
  <h1 class="post-title p-name" itemprop="name headline">
@@ -38,8 +43,5 @@ layout: default
38
43
  {{ content }}
39
44
  </div>
40
45
 
41
- {%- if site.disqus.shortname -%} {%- include disqus_comments.html -%} {%-
42
- endif -%}
43
-
44
46
  <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
45
47
  </article>
@@ -117,11 +117,10 @@ h6 {
117
117
  * Links
118
118
  */
119
119
  a {
120
- color: $text-color;
120
+ color: $brand-color;
121
121
  text-decoration: none;
122
-
122
+
123
123
  &:hover {
124
- color: $text-color;
125
124
  text-decoration: underline;
126
125
  }
127
126
 
@@ -141,7 +140,7 @@ blockquote {
141
140
  color: $grey-color;
142
141
  border-left: 4px solid $grey-color-light;
143
142
  padding-left: $spacing-unit / 2;
144
- @include relative-font-size(1.125);
143
+ @include relative-font-size(1);
145
144
  letter-spacing: -1px;
146
145
  font-style: italic;
147
146
 
@@ -155,18 +154,18 @@ blockquote {
155
154
  */
156
155
  pre,
157
156
  code {
158
- @include relative-font-size(0.9375);
159
- border: 1px solid $grey-color-light;
157
+ @include relative-font-size(0.9);
158
+ border: 1px solid darken($grey-color-light, 3%);
160
159
  border-radius: 3px;
161
- background-color: lighten($grey-color-light, 5%);
160
+ background-color: lighten($grey-color-light, 3%);
162
161
  }
163
162
 
164
163
  code {
165
- padding: 1px 5px;
164
+ padding: 1px 1px;
166
165
  }
167
166
 
168
167
  pre {
169
- padding: 8px 12px;
168
+ padding: 2px 2px;
170
169
  overflow-x: auto;
171
170
 
172
171
  > code {
@@ -103,7 +103,7 @@
103
103
  * Site footer
104
104
  */
105
105
  .site-footer {
106
- padding: $spacing-unit / 2 0;
106
+ padding: $spacing-unit / 1.5 0;
107
107
  }
108
108
 
109
109
  .footer-heading {
@@ -156,7 +156,7 @@
156
156
  }
157
157
 
158
158
  .post-year {
159
- margin-top: 1.0rem;
159
+ margin-top: 1rem;
160
160
  font-weight: 700;
161
161
  color: lighten($text-color, 15%);
162
162
  @include relative-font-size(1.5);
@@ -168,13 +168,22 @@
168
168
  color: lighten($text-color, 25%);
169
169
  }
170
170
 
171
- .post-link {
172
- color: $text-color;
171
+ .post-link-layout {
173
172
  margin-left: 10%;
174
173
  display: inline-block;
175
174
  @include relative-font-size(1.2);
176
175
  }
177
176
 
177
+ .black-link {
178
+ color: $text-color;
179
+ text-decoration: none;
180
+
181
+ &:hover {
182
+ color: $text-color;
183
+ text-decoration: underline;
184
+ }
185
+ }
186
+
178
187
  .post-back {
179
188
  margin-bottom: 20px;
180
189
  color: lighten($text-color, 25%);
@@ -260,3 +269,38 @@
260
269
  width: calc(50% - (#{$spacing-unit} / 2));
261
270
  }
262
271
  }
272
+
273
+ /**
274
+ * About Page
275
+ */
276
+ .about-page {
277
+ display: inline-block;
278
+ }
279
+
280
+ .about-your-name {
281
+ display: flex;
282
+ flex-direction: row;
283
+ margin-top: 1.3rem;
284
+ @include relative-font-size(1.5);
285
+ }
286
+
287
+ .about-info {
288
+ @include relative-font-size(1);
289
+ color: lighten($text-color, 25%);
290
+ }
291
+
292
+ .about-card {
293
+ position: relative;
294
+ width: 100%;
295
+ }
296
+
297
+ .about-content {
298
+ margin-top: 1.8rem;
299
+ }
300
+
301
+ .about-avatar {
302
+ padding: 1px;
303
+ border: 1px solid $grey-color-light;
304
+ width: 15rem;
305
+ height: 15rem;
306
+ }
data/_sass/moving.scss CHANGED
@@ -49,4 +49,4 @@ $on-large: $on-laptop !default;
49
49
  }
50
50
 
51
51
  // Import partials.
52
- @import "moving/base", "moving/layout", "moving/syntax-highlighting";
52
+ @import "moving/base", "moving/layout";
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.1.1
4
+ version: 0.2.0
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-25 00:00:00.000000000 Z
11
+ date: 2019-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -91,13 +91,13 @@ files:
91
91
  - README.md
92
92
  - _includes/footer.html
93
93
  - _includes/head.html
94
+ - _layouts/about.html
94
95
  - _layouts/default.html
95
96
  - _layouts/home.html
96
97
  - _layouts/post.html
97
98
  - _sass/moving.scss
98
99
  - _sass/moving/_base.scss
99
100
  - _sass/moving/_layout.scss
100
- - _sass/moving/_syntax-highlighting.scss
101
101
  homepage: https://github.com/huangyz0918/moving
102
102
  licenses:
103
103
  - MIT
@@ -1,204 +0,0 @@
1
- /**
2
- * Syntax highlighting styles
3
- */
4
- .highlight {
5
- background: #fff;
6
- @extend %vertical-rhythm !optional;
7
-
8
- .highlighter-rouge & {
9
- background: lighten($grey-color-light, 5%);
10
- }
11
-
12
- .c {
13
- color: #998;
14
- font-style: italic;
15
- } // Comment
16
- .err {
17
- color: #a61717;
18
- background-color: #e3d2d2;
19
- } // Error
20
- .k {
21
- font-weight: bold;
22
- } // Keyword
23
- .o {
24
- font-weight: bold;
25
- } // Operator
26
- .cm {
27
- color: #998;
28
- font-style: italic;
29
- } // Comment.Multiline
30
- .cp {
31
- color: #999;
32
- font-weight: bold;
33
- } // Comment.Preproc
34
- .c1 {
35
- color: #998;
36
- font-style: italic;
37
- } // Comment.Single
38
- .cs {
39
- color: #999;
40
- font-weight: bold;
41
- font-style: italic;
42
- } // Comment.Special
43
- .gd {
44
- color: #000;
45
- background-color: #fdd;
46
- } // Generic.Deleted
47
- .gd .x {
48
- color: #000;
49
- background-color: #faa;
50
- } // Generic.Deleted.Specific
51
- .ge {
52
- font-style: italic;
53
- } // Generic.Emph
54
- .gr {
55
- color: #a00;
56
- } // Generic.Error
57
- .gh {
58
- color: #999;
59
- } // Generic.Heading
60
- .gi {
61
- color: #000;
62
- background-color: #dfd;
63
- } // Generic.Inserted
64
- .gi .x {
65
- color: #000;
66
- background-color: #afa;
67
- } // Generic.Inserted.Specific
68
- .go {
69
- color: #888;
70
- } // Generic.Output
71
- .gp {
72
- color: #555;
73
- } // Generic.Prompt
74
- .gs {
75
- font-weight: bold;
76
- } // Generic.Strong
77
- .gu {
78
- color: #aaa;
79
- } // Generic.Subheading
80
- .gt {
81
- color: #a00;
82
- } // Generic.Traceback
83
- .kc {
84
- font-weight: bold;
85
- } // Keyword.Constant
86
- .kd {
87
- font-weight: bold;
88
- } // Keyword.Declaration
89
- .kp {
90
- font-weight: bold;
91
- } // Keyword.Pseudo
92
- .kr {
93
- font-weight: bold;
94
- } // Keyword.Reserved
95
- .kt {
96
- color: #458;
97
- font-weight: bold;
98
- } // Keyword.Type
99
- .m {
100
- color: #099;
101
- } // Literal.Number
102
- .s {
103
- color: #d14;
104
- } // Literal.String
105
- .na {
106
- color: #008080;
107
- } // Name.Attribute
108
- .nb {
109
- color: #0086b3;
110
- } // Name.Builtin
111
- .nc {
112
- color: #458;
113
- font-weight: bold;
114
- } // Name.Class
115
- .no {
116
- color: #008080;
117
- } // Name.Constant
118
- .ni {
119
- color: #800080;
120
- } // Name.Entity
121
- .ne {
122
- color: #900;
123
- font-weight: bold;
124
- } // Name.Exception
125
- .nf {
126
- color: #900;
127
- font-weight: bold;
128
- } // Name.Function
129
- .nn {
130
- color: #555;
131
- } // Name.Namespace
132
- .nt {
133
- color: #000080;
134
- } // Name.Tag
135
- .nv {
136
- color: #008080;
137
- } // Name.Variable
138
- .ow {
139
- font-weight: bold;
140
- } // Operator.Word
141
- .w {
142
- color: #bbb;
143
- } // Text.Whitespace
144
- .mf {
145
- color: #099;
146
- } // Literal.Number.Float
147
- .mh {
148
- color: #099;
149
- } // Literal.Number.Hex
150
- .mi {
151
- color: #099;
152
- } // Literal.Number.Integer
153
- .mo {
154
- color: #099;
155
- } // Literal.Number.Oct
156
- .sb {
157
- color: #d14;
158
- } // Literal.String.Backtick
159
- .sc {
160
- color: #d14;
161
- } // Literal.String.Char
162
- .sd {
163
- color: #d14;
164
- } // Literal.String.Doc
165
- .s2 {
166
- color: #d14;
167
- } // Literal.String.Double
168
- .se {
169
- color: #d14;
170
- } // Literal.String.Escape
171
- .sh {
172
- color: #d14;
173
- } // Literal.String.Heredoc
174
- .si {
175
- color: #d14;
176
- } // Literal.String.Interpol
177
- .sx {
178
- color: #d14;
179
- } // Literal.String.Other
180
- .sr {
181
- color: #009926;
182
- } // Literal.String.Regex
183
- .s1 {
184
- color: #d14;
185
- } // Literal.String.Single
186
- .ss {
187
- color: #990073;
188
- } // Literal.String.Symbol
189
- .bp {
190
- color: #999;
191
- } // Name.Builtin.Pseudo
192
- .vc {
193
- color: #008080;
194
- } // Name.Variable.Class
195
- .vg {
196
- color: #008080;
197
- } // Name.Variable.Global
198
- .vi {
199
- color: #008080;
200
- } // Name.Variable.Instance
201
- .il {
202
- color: #099;
203
- } // Literal.Number.Integer.Long
204
- }