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 +4 -4
- data/README.md +80 -18
- data/_sass/minimal/_base.scss +8 -8
- data/_sass/minimal/_dark.scss +7 -1
- data/_sass/minimal/_header.scss +1 -1
- data/_sass/minimal/_navigation.scss +2 -2
- data/_sass/minimal/_page.scss +32 -4
- data/_sass/minimal/_variables.scss +2 -3
- data/_sass/minimal.scss +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45a664c72ea31b68386ed9f284ea85ba5fdce77b74158afea0aed396da3c296f
|
4
|
+
data.tar.gz: 7830689e42d83cafe253d6ade73f27b572a5d1a51e219f3c6ed05af400be3ddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48c123608425871ae9c5f0154097db434dbd6e5ed2726dd5328336ffe66ae91134bc9586e3987657b4cb8fc84e08d99d3a39767b8e2c204f976348e84a928ed0
|
7
|
+
data.tar.gz: efd8a8fc9fdd27ba2329d056d5f2b97f0afc82bb93c33925484dd5d2057128aff78bc9424b5041c098c28ff446e1bd9b68ff5c8cbd410145cee2fa2330454218
|
data/README.md
CHANGED
@@ -1,42 +1,84 @@
|
|
1
1
|
# Minimal
|
2
2
|
|
3
|
-
|
3
|
+
[](https://github.com/Heyya-x/Minimal/blob/main/LICENSE)
|
4
|
+
[](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
|
+
|  |  |
|
18
|
+
|  |  |
|
19
|
+
|
15
20
|
## Installation
|
16
21
|
|
17
|
-
|
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 "
|
37
|
+
gem "minimal-jekyll"
|
21
38
|
```
|
22
39
|
|
23
|
-
|
40
|
+
2. Fetch and update bundled gems by running the following command:
|
24
41
|
|
25
|
-
```
|
26
|
-
|
42
|
+
```
|
43
|
+
bundle
|
27
44
|
```
|
28
45
|
|
29
|
-
And
|
46
|
+
3. And add this line to your Jekyll site's `_config.yml`:
|
30
47
|
|
31
|
-
|
48
|
+
```yaml
|
49
|
+
theme: minimal-jekyll
|
50
|
+
```
|
32
51
|
|
33
|
-
|
52
|
+
To update the theme run:
|
34
53
|
|
35
|
-
|
54
|
+
```
|
55
|
+
bundle update
|
56
|
+
```
|
36
57
|
|
37
58
|
## Usage
|
38
59
|
|
39
|
-
|
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
|
-
|
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.
|
data/_sass/minimal/_base.scss
CHANGED
@@ -59,16 +59,16 @@ a:hover {
|
|
59
59
|
|
60
60
|
.main {
|
61
61
|
// float: left;
|
62
|
-
margin-left:
|
63
|
-
|
64
|
-
|
62
|
+
margin-left: 1rem;
|
63
|
+
padding-right: 1rem;
|
64
|
+
width: calc(100% - 2rem)
|
65
65
|
}
|
66
66
|
|
67
|
-
|
68
|
-
|
67
|
+
.archive {
|
68
|
+
width: 100%;
|
69
69
|
}
|
70
70
|
|
71
|
-
|
72
|
-
|
71
|
+
header {
|
72
|
+
margin-top: 1em;
|
73
73
|
}
|
74
|
-
}
|
74
|
+
}
|
data/_sass/minimal/_dark.scss
CHANGED
data/_sass/minimal/_header.scss
CHANGED
data/_sass/minimal/_page.scss
CHANGED
@@ -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.
|
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:
|
22
|
+
font-size: 1rem;
|
22
23
|
color: gray;
|
23
24
|
}
|
24
25
|
|
25
26
|
section {
|
26
|
-
font-size: 1.
|
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
|
-
|
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