minimal-jekyll 0.0.2 → 0.0.3

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: b676495ec2adc59aedfe1aecb49e6c9b95ff6de22b2028ea9b42ba3aaa2aad7a
4
- data.tar.gz: e185cebd329101e13d70b89d03644bfe66cb935f93d5f15034db763ab7a32f02
3
+ metadata.gz: 45a664c72ea31b68386ed9f284ea85ba5fdce77b74158afea0aed396da3c296f
4
+ data.tar.gz: 7830689e42d83cafe253d6ade73f27b572a5d1a51e219f3c6ed05af400be3ddc
5
5
  SHA512:
6
- metadata.gz: 8b5845a150d8d25e3605838b6d10590e1b416021823627e51e0798e940e0b83935bf78a1463345c3cf378fbf23482003fd0b4e33bf3f6b6cbda7e8c4ccd1c844
7
- data.tar.gz: 9f8afcea0840316fecb7f6ca07a3cad12696f2a924dfc4a655d4db4aa3fc99ef27e057364fbc397d5d4730e412dcb1094552074792df67158f2b253b8e194ba8
6
+ metadata.gz: 48c123608425871ae9c5f0154097db434dbd6e5ed2726dd5328336ffe66ae91134bc9586e3987657b4cb8fc84e08d99d3a39767b8e2c204f976348e84a928ed0
7
+ data.tar.gz: efd8a8fc9fdd27ba2329d056d5f2b97f0afc82bb93c33925484dd5d2057128aff78bc9424b5041c098c28ff446e1bd9b68ff5c8cbd410145cee2fa2330454218
data/README.md CHANGED
@@ -1,42 +1,84 @@
1
1
  # Minimal
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
+ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/Heyya-x/Minimal/blob/main/LICENSE)
4
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.7-blue.svg)](https://jekyllrb.com/)
4
5
 
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!
6
-
7
- TODO: Delete this and the text above, and describe your gem
8
-
9
- ## 关于
10
6
  Minimal是一个正在开发的个人的Jekyll主题,这个主题追求极致的洁简而不失美观与高级感。该主题仍在开发中,部分界面仍不是很美观,将在后续进行优化。你可用通过修改配置config文件来更改主题颜色。
11
7
 
12
- ## About
13
8
  Minimal is a personal Jekyll theme under development. The theme aims for a minimalistic design that is aesthetically pleasing and sophisticated. Since the theme is still under development, some interfaces may not be visually appealing and will be improved in future updates. You can modify the theme color by editing the configuration file (config).
14
9
 
10
+ ## Demo Pages
11
+ | Name | Description |
12
+ | ------------------------------------------ | ------------------------- |
13
+ | [Heyya's memo](https://memo.kaijunzhu.com) | My personal memo website. |
14
+
15
+ | `default` | `dark` |
16
+ | :----------------------------------------------------------: | :----------------------------------------------------------: |
17
+ | ![minimal](https://github.com/Heyya-x/Minimal/blob/main/minimal-Mac-default.png) | ![minimal-dark](https://github.com/Heyya-x/Minimal/blob/main/minimal-Mac-dark.png) |
18
+ | ![minimal](https://github.com/Heyya-x/Minimal/blob/main/minimal-iPhone-default.png) | ![minimal](https://github.com/Heyya-x/Minimal/blob/main/minimal-iPhone-dark.png) |
19
+
15
20
  ## Installation
16
21
 
17
- Add this line to your Jekyll site's `Gemfile`:
22
+ There are two ways to install:
23
+
24
+ 1. gem-based theme (Exist a bug);
25
+
26
+ 2. forking/directly copying all of the theme files to your project. (Recommanded in this version)
27
+
28
+ ### Gem-based method
29
+
30
+ With Gem-based themes, directories such as the `assets`, `_layouts`, `_includes`, and `_sass` are stored in the theme’s gem, hidden from your immediate view. Yet all of the necessary directories will be read and processed during Jekyll’s build process.
31
+
32
+ This allows for easier installation and updating as you don't have to manage any of the theme files. To install:
33
+
34
+ 1. Add this line to your Jekyll site's `Gemfile`:
18
35
 
19
36
  ```ruby
20
- gem "Minimal"
37
+ gem "minimal-jekyll"
21
38
  ```
22
39
 
23
- And add this line to your Jekyll site's `_config.yml`:
40
+ 2. Fetch and update bundled gems by running the following command:
24
41
 
25
- ```yaml
26
- theme: Minimal
42
+ ```
43
+ bundle
27
44
  ```
28
45
 
29
- And then execute:
46
+ 3. And add this line to your Jekyll site's `_config.yml`:
30
47
 
31
- $ bundle
48
+ ```yaml
49
+ theme: minimal-jekyll
50
+ ```
32
51
 
33
- Or install it yourself as:
52
+ To update the theme run:
34
53
 
35
- $ gem install Minimal
54
+ ```
55
+ bundle update
56
+ ```
36
57
 
37
58
  ## Usage
38
59
 
39
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
60
+ There is still a bug remain with gem-based method, it fill be fixed in future.
61
+
62
+ ### Necessary gem
63
+
64
+ After installed, you should alse add the follow code to your Jekyll site's `Gemfile`:
65
+
66
+ ```
67
+ gem 'jekyll-paginate'
68
+ gem 'jekyll-include-cache'
69
+ ```
70
+
71
+ And install the gem again with:
72
+
73
+ ```
74
+ bundle
75
+ ```
76
+
77
+ After that, you can run you Jekyll site with following code:
78
+
79
+ ```
80
+ bundle exec jekyll serve
81
+ ```
40
82
 
41
83
  ## Contributing
42
84
 
@@ -53,4 +95,24 @@ To add a custom directory to your theme-gem, please edit the regexp in `Minimal.
53
95
 
54
96
  ## License
55
97
 
56
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
98
+ MIT License
99
+
100
+ Copyright (c) 2023 Kaijun Zhu
101
+
102
+ Permission is hereby granted, free of charge, to any person obtaining a copy
103
+ of this software and associated documentation files (the "Software"), to deal
104
+ in the Software without restriction, including without limitation the rights
105
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
106
+ copies of the Software, and to permit persons to whom the Software is
107
+ furnished to do so, subject to the following conditions:
108
+
109
+ The above copyright notice and this permission notice shall be included in all
110
+ copies or substantial portions of the Software.
111
+
112
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
113
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
114
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
115
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
116
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
117
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
118
+ SOFTWARE.
@@ -59,16 +59,16 @@ a:hover {
59
59
 
60
60
  .main {
61
61
  // float: left;
62
- margin-left: 1em;
63
- margin-right: 1em;
64
- width: auto;
62
+ margin-left: 1rem;
63
+ padding-right: 1rem;
64
+ width: calc(100% - 2rem)
65
65
  }
66
66
 
67
- header {
68
- margin-top: 1em;
67
+ .archive {
68
+ width: 100%;
69
69
  }
70
70
 
71
- section {
72
- font-size: 1em;
71
+ header {
72
+ margin-top: 1em;
73
73
  }
74
- }
74
+ }
@@ -12,8 +12,14 @@
12
12
  color: $theme-text-color-dark;
13
13
  }
14
14
 
15
+ section pre, code:not(pre code) {
16
+ background-color: #202020;
17
+ }
18
+
15
19
  .pagination a:hover {
16
20
  background-color: $theme-text-color-dark;
17
21
  color: $theme-bg-color-dark;
18
22
  }
19
- }
23
+
24
+
25
+ }
@@ -1,7 +1,7 @@
1
1
  header {
2
2
  width: 100%;
3
3
  // margin: auto;
4
- font-size: 1.5em;
4
+ font-size: 1.75em;
5
5
  color: $theme-text-color;
6
6
  margin-top: 4em;
7
7
  margin-bottom: 1em;
@@ -17,6 +17,6 @@
17
17
 
18
18
  .nav li {
19
19
  padding: .2em;
20
- font-size: 1.1em;
20
+ font-size: 1.0625rem;
21
21
  text-transform: uppercase;
22
- }
22
+ }
@@ -7,10 +7,11 @@
7
7
 
8
8
  .post {
9
9
  text-align: justify;
10
+ width: 100%;
10
11
  }
11
12
 
12
13
  .post-header {
13
- font-size: 1.5em;
14
+ font-size: 1.375rem;
14
15
  }
15
16
 
16
17
  .post-header h2 {
@@ -18,12 +19,12 @@
18
19
  }
19
20
 
20
21
  .post-header time {
21
- font-size: 0.8em;
22
+ font-size: 1rem;
22
23
  color: gray;
23
24
  }
24
25
 
25
26
  section {
26
- font-size: 1.2em;
27
+ font-size: 1.0625rem;
27
28
  }
28
29
 
29
30
  section blockquote {
@@ -35,4 +36,31 @@ section blockquote {
35
36
  section img {
36
37
  width: 100%;
37
38
  border-radius: .5em;
38
- }
39
+ }
40
+
41
+ section pre {
42
+ width: auto;
43
+ padding-top: .5em;
44
+ padding-bottom: .5em;
45
+ // margin-right: 20%;
46
+ padding-left: 20px;
47
+ background-color: #EFEFEF;
48
+ font-size: 1rem;
49
+ border-radius: .4em;
50
+ line-height: 2em;
51
+ }
52
+
53
+ code:not(pre code) {
54
+ border-radius: .4em;
55
+ background-color: #EFEFEF;
56
+ padding: 0.2rem;
57
+ }
58
+
59
+
60
+ section pre span {
61
+ float: none;
62
+ margin-left: 1rem;
63
+ font-size: 1rem;
64
+ }
65
+
66
+
@@ -1,8 +1,7 @@
1
1
  $theme-text-color: #BC3430;
2
- // $theme-text-color: white;
3
2
  // $theme-text-color-dark: #BC3430;
4
- $theme-text-color-dark: #FF770F;
5
- //$theme-text-color-dark: #F4CA45;
3
+ // $theme-text-color-dark: #FF770F;
4
+ $theme-text-color-dark: #F4CA45;
6
5
 
7
6
  $theme-bg-color: white;
8
7
  //$theme-bg-color: #F4CA45;
data/_sass/minimal.scss CHANGED
@@ -1,6 +1,5 @@
1
1
  @import "minimal/variables";
2
2
 
3
-
4
3
  @import "minimal/pagination";
5
4
  @import "minimal/footer";
6
5
  @import "minimal/header";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heyya