mindark 0.1.0 → 0.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 +4 -4
- data/_includes/articles.html +26 -22
- data/_includes/font.html +1 -1
- data/_includes/head.html +2 -2
- data/_includes/style.html +0 -0
- data/_layouts/home.html +1 -3
- data/_layouts/post.html +5 -5
- data/_sass/_variables.scss +2 -2
- data/_sass/base.scss +22 -18
- data/_sass/elements.scss +45 -28
- metadata +3 -3
- data/assets/css/style.scss +0 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa0452242e6b6bc0b82f8f9340109ebfe0f007d9ca81be7f74fd98f093f5532b
|
|
4
|
+
data.tar.gz: b434a6df8b2e6546dadedb8bff1350584fea6021cd166ec7808e67371abeef1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b70975157ba579ff68908ee0be814ea76acf4b9b5f0db92aa1ee14b988f8213a768c1048274a825e7573c3d3d0bb634a62f583e0519f3d9d8dce27af64f535e
|
|
7
|
+
data.tar.gz: 396892a3e5aba68516d185a2c9317b9974049b22944f9dc1affb2ce26d3b9d6fe7170941caf8f6a5bdb987e6d67c97f9912ef589be45b710d4ef17d634010c34
|
data/_includes/articles.html
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{%- for
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
<section id="articles">
|
|
2
|
+
<h2 class="text-center">Articles</h2>
|
|
3
|
+
<div class="container">
|
|
4
|
+
<div class="articles">
|
|
5
|
+
{%- assign column = 3 -%}
|
|
6
|
+
{%- assign maxIndex = column | minus: 1 -%}
|
|
7
|
+
{%- for index in (0..maxIndex) -%}
|
|
8
|
+
<div class="column">
|
|
9
|
+
{%- for post in site.posts -%}
|
|
10
|
+
{%- assign mod = forloop.index0 | modulo: column -%}
|
|
11
|
+
{%- if mod == index -%}
|
|
12
|
+
<article class="preview">
|
|
13
|
+
<div class="thumbnail">
|
|
14
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
|
15
|
+
<img src="{{ post.image | relative_url }}">
|
|
16
|
+
</a>
|
|
17
|
+
</div>
|
|
18
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
|
19
|
+
<h2 class="title">{{ post.title }}</h2>
|
|
20
|
+
</a>
|
|
21
|
+
<p class="description">{{ post.excerpt }}</p>
|
|
22
|
+
</article>
|
|
23
|
+
{%- endif -%}
|
|
24
|
+
{%- endfor -%}
|
|
25
|
+
</div>
|
|
22
26
|
{%- endfor -%}
|
|
23
27
|
</div>
|
|
24
|
-
|
|
28
|
+
</div>
|
|
25
29
|
</section>
|
data/_includes/font.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
2
|
-
<link href="https://fonts.googleapis.com/css2?family=
|
|
2
|
+
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
|
data/_includes/head.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
{%- feed_meta -%}
|
|
8
8
|
{%- include icon.html -%}
|
|
9
9
|
{%- include font.html -%}
|
|
10
|
-
<link rel="stylesheet" href="{{ "/assets/css/mindark.css" | relative_url }}">
|
|
11
|
-
|
|
10
|
+
<link rel="stylesheet" href="{{ "/assets/css/mindark.css?v=0.1.1" | relative_url }}">
|
|
11
|
+
{%- include style.html -%}
|
|
12
12
|
{%- if jekyll.environment == 'production' and site.analytics -%}
|
|
13
13
|
{%- include analytics.html -%}
|
|
14
14
|
{%- endif -%}
|
|
File without changes
|
data/_layouts/home.html
CHANGED
data/_layouts/post.html
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
<
|
|
5
|
+
<article>
|
|
6
|
+
<div class="container post">
|
|
7
7
|
<h1 class="title">{{ page.title }}</h1>
|
|
8
8
|
<h6 class="author">
|
|
9
9
|
{% if page.author %}
|
|
10
|
-
Writen by <span class="author-name">{{ page.author }}</span>
|
|
10
|
+
Writen by <span class="author-name">{{ page.author }}</span> <span class="author-separator">—</span>
|
|
11
11
|
{% endif %}
|
|
12
12
|
<span class="publish-date">{{ page.date | date: "%B %-d, %Y" }}</span>
|
|
13
13
|
</h6>
|
|
@@ -15,5 +15,5 @@ layout: default
|
|
|
15
15
|
<img class="poster" src="{{ page.poster | relative_url }}">
|
|
16
16
|
{% endif %}
|
|
17
17
|
{{ content }}
|
|
18
|
-
</
|
|
19
|
-
</
|
|
18
|
+
</div>
|
|
19
|
+
</article>
|
data/_sass/_variables.scss
CHANGED
|
@@ -9,7 +9,7 @@ $code-background-color: #171b20;
|
|
|
9
9
|
$border-color: #212529;
|
|
10
10
|
|
|
11
11
|
$min-body-width: 320px;
|
|
12
|
-
$
|
|
12
|
+
$medium-breakpoint: 768px;
|
|
13
13
|
$post-width: 860px;
|
|
14
14
|
$spacing: 30px;
|
|
15
15
|
$font-size: 18px;
|
|
@@ -17,5 +17,5 @@ $font-weight-normal: 400;
|
|
|
17
17
|
$font-weight-bold: 600;
|
|
18
18
|
|
|
19
19
|
$font-family: 'Inter', sans-serif;
|
|
20
|
-
$font-family-italic: '
|
|
20
|
+
$font-family-italic: 'Raleway', sans-serif;
|
|
21
21
|
$font-monospace: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
|
data/_sass/base.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
$margin-bottom: $spacing * 4 / 5;
|
|
2
2
|
|
|
3
3
|
html {
|
|
4
|
-
background-color: $background-color;
|
|
5
4
|
color: $text-color;
|
|
5
|
+
background-color: $background-color;
|
|
6
6
|
font-family: $font-family;
|
|
7
7
|
font-size: $font-size;
|
|
8
8
|
font-weight: $font-weight-normal;
|
|
@@ -16,6 +16,8 @@ body {
|
|
|
16
16
|
margin: 0;
|
|
17
17
|
padding: 0;
|
|
18
18
|
min-width: $min-body-width;
|
|
19
|
+
color: $text-color;
|
|
20
|
+
background-color: $background-color;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
h1, h2, h3, h4, h5, h6, ul, ol, p, blockquote, pre {
|
|
@@ -86,7 +88,7 @@ p {
|
|
|
86
88
|
+ h1 {
|
|
87
89
|
margin-top: $spacing * 2.25;
|
|
88
90
|
}
|
|
89
|
-
|
|
91
|
+
|
|
90
92
|
+ h2 {
|
|
91
93
|
margin-top: $spacing * 1.75;
|
|
92
94
|
}
|
|
@@ -103,12 +105,20 @@ em {
|
|
|
103
105
|
font-family: $font-family-italic;
|
|
104
106
|
}
|
|
105
107
|
|
|
108
|
+
section {
|
|
109
|
+
margin-top: $spacing * 2;
|
|
110
|
+
@media screen and (max-width: $medium-breakpoint - 1) {
|
|
111
|
+
margin-top: $spacing;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
106
115
|
blockquote {
|
|
107
116
|
position: relative;
|
|
108
117
|
padding-left: $spacing / 1.25;
|
|
109
118
|
margin-bottom: $spacing * 2 / 3;
|
|
110
119
|
font-style: italic;
|
|
111
120
|
font-family: $font-family-italic;
|
|
121
|
+
letter-spacing: 0.5px;
|
|
112
122
|
|
|
113
123
|
&:before {
|
|
114
124
|
content: " ";
|
|
@@ -125,7 +135,7 @@ blockquote {
|
|
|
125
135
|
&:first-child::first-letter {
|
|
126
136
|
font-size: 1.5 * $font-size;
|
|
127
137
|
}
|
|
128
|
-
|
|
138
|
+
|
|
129
139
|
margin-bottom: 0px;
|
|
130
140
|
|
|
131
141
|
> code::first-letter {
|
|
@@ -136,7 +146,7 @@ blockquote {
|
|
|
136
146
|
|
|
137
147
|
ul {
|
|
138
148
|
padding-left: $spacing * 2 / 3;
|
|
139
|
-
|
|
149
|
+
|
|
140
150
|
li {
|
|
141
151
|
margin-bottom: $margin-bottom / 1.5;
|
|
142
152
|
line-height: $font-size * 1.5;
|
|
@@ -146,7 +156,7 @@ ul {
|
|
|
146
156
|
line-height: initial;
|
|
147
157
|
}
|
|
148
158
|
}
|
|
149
|
-
|
|
159
|
+
|
|
150
160
|
ol, ul {
|
|
151
161
|
margin-top: $margin-bottom / 1.5;
|
|
152
162
|
}
|
|
@@ -154,17 +164,17 @@ ul {
|
|
|
154
164
|
|
|
155
165
|
ol {
|
|
156
166
|
padding-left: 26px;
|
|
157
|
-
|
|
167
|
+
|
|
158
168
|
li {
|
|
159
169
|
margin-bottom: $margin-bottom / 1.5;
|
|
160
170
|
line-height: $font-size * 1.5;
|
|
161
|
-
|
|
171
|
+
|
|
162
172
|
p {
|
|
163
173
|
margin: 0;
|
|
164
174
|
line-height: initial;
|
|
165
175
|
}
|
|
166
176
|
}
|
|
167
|
-
|
|
177
|
+
|
|
168
178
|
ol, ul {
|
|
169
179
|
margin-top: $margin-bottom / 1.5;
|
|
170
180
|
}
|
|
@@ -174,7 +184,7 @@ pre {
|
|
|
174
184
|
padding: $spacing / 3 $spacing / 2;
|
|
175
185
|
font-family: $font-monospace;
|
|
176
186
|
font-size: $font-size - 3;
|
|
177
|
-
font-variant-ligatures: common-ligatures;
|
|
187
|
+
font-variant-ligatures: common-ligatures;
|
|
178
188
|
line-height: round(($font-size - 2) * 1.6);
|
|
179
189
|
background-color: $code-background-color;
|
|
180
190
|
margin-bottom: $spacing / 2;
|
|
@@ -202,15 +212,15 @@ table {
|
|
|
202
212
|
width: 100%;
|
|
203
213
|
border-collapse: collapse;
|
|
204
214
|
margin-bottom: $margin-bottom;
|
|
205
|
-
|
|
215
|
+
|
|
206
216
|
td, th {
|
|
207
217
|
border: 1px solid $border-color;
|
|
208
218
|
}
|
|
209
|
-
|
|
219
|
+
|
|
210
220
|
td {
|
|
211
221
|
padding: ($spacing / 2.5) ($spacing / 1.5);
|
|
212
222
|
}
|
|
213
|
-
|
|
223
|
+
|
|
214
224
|
th {
|
|
215
225
|
color: $text-bright-color;
|
|
216
226
|
font-weight: $font-weight-bold;
|
|
@@ -234,12 +244,6 @@ a {
|
|
|
234
244
|
}
|
|
235
245
|
}
|
|
236
246
|
|
|
237
|
-
img {
|
|
238
|
-
max-width: 100%;
|
|
239
|
-
display: block;
|
|
240
|
-
margin: auto;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
247
|
::selection {
|
|
244
248
|
background-color: rgba($accent-color, 0.2)
|
|
245
249
|
// background-color: #b6c253;
|
data/_sass/elements.scss
CHANGED
|
@@ -18,13 +18,11 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.container {
|
|
21
|
-
max-width:
|
|
22
|
-
padding: $spacing;
|
|
21
|
+
max-width: 100%;
|
|
23
22
|
margin: auto;
|
|
24
|
-
|
|
25
|
-
@media (min-width:
|
|
26
|
-
|
|
27
|
-
padding-right: 0px;
|
|
23
|
+
padding: $spacing / 2;
|
|
24
|
+
@media screen and (min-width: 1200px) {
|
|
25
|
+
max-width: 1140px;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
@@ -42,65 +40,76 @@
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
header {
|
|
45
|
-
position:
|
|
43
|
+
position: sticky;
|
|
44
|
+
top: 0px;
|
|
46
45
|
width: 100%;
|
|
47
46
|
background-color: rgba($background-color, 0.9);
|
|
48
47
|
border-bottom: 1px solid $border-color;
|
|
49
48
|
backdrop-filter: saturate(180%) blur(20px);
|
|
50
49
|
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
|
51
50
|
z-index: 100;
|
|
52
|
-
|
|
51
|
+
|
|
53
52
|
.wrapper {
|
|
54
53
|
display: flex;
|
|
55
54
|
justify-content: center;
|
|
56
55
|
}
|
|
57
|
-
|
|
56
|
+
|
|
58
57
|
img {
|
|
59
58
|
padding: $spacing / 2 $spacing * 2 / 3;
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
main {
|
|
64
|
-
padding-top: 80px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
62
|
.container.post {
|
|
68
|
-
margin-top:
|
|
63
|
+
margin-top: $spacing * 4 / 3;;
|
|
69
64
|
max-width: $post-width;
|
|
70
65
|
margin-left: auto;
|
|
71
66
|
margin-right: auto;
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
article {
|
|
70
|
+
.post {
|
|
76
71
|
.title {
|
|
77
72
|
font-size: $font-size * 3;
|
|
78
73
|
text-align: center;
|
|
79
74
|
margin-bottom: $spacing / 2;
|
|
80
75
|
word-wrap: break-word;
|
|
76
|
+
@media screen and (max-width: $medium-breakpoint - 1) {
|
|
77
|
+
font-size: $font-size * 2.25;
|
|
78
|
+
}
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
.author {
|
|
84
82
|
color: $text-color;
|
|
85
83
|
text-align: center;
|
|
86
84
|
margin-bottom: $spacing * 2;
|
|
87
|
-
|
|
85
|
+
|
|
88
86
|
&-name {
|
|
89
87
|
color: $accent-color;
|
|
90
88
|
}
|
|
89
|
+
|
|
90
|
+
&-separator {
|
|
91
|
+
@media screen and (max-width: $medium-breakpoint - 1) {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
.publish-date {
|
|
94
98
|
font-size: $font-size;
|
|
99
|
+
@media screen and (max-width: $medium-breakpoint - 1) {
|
|
100
|
+
display: block;
|
|
101
|
+
}
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
.poster {
|
|
98
|
-
width:
|
|
99
|
-
max-width: 130%;
|
|
100
|
-
margin-left: -15%;
|
|
105
|
+
width: 100%;
|
|
101
106
|
margin-bottom: $spacing * 2;
|
|
102
107
|
border-radius: 2px;
|
|
103
108
|
box-shadow: 0px 10px 10px rgba(black, 0.3);
|
|
109
|
+
@media screen and (min-width: 1040px) {
|
|
110
|
+
min-width: 120%;
|
|
111
|
+
margin-left: -10%;
|
|
112
|
+
}
|
|
104
113
|
}
|
|
105
114
|
|
|
106
115
|
> p:first-of-type::first-letter {
|
|
@@ -111,6 +120,9 @@ main {
|
|
|
111
120
|
}
|
|
112
121
|
|
|
113
122
|
img {
|
|
123
|
+
max-width: 100%;
|
|
124
|
+
display: block;
|
|
125
|
+
margin: auto;
|
|
114
126
|
border-radius: 2px;
|
|
115
127
|
}
|
|
116
128
|
}
|
|
@@ -119,7 +131,7 @@ main {
|
|
|
119
131
|
footer {
|
|
120
132
|
font-size: $font-size * 0.8;
|
|
121
133
|
border-top: 1px solid $border-color;
|
|
122
|
-
|
|
134
|
+
|
|
123
135
|
.wrapper {
|
|
124
136
|
padding: $spacing $spacing / 2;
|
|
125
137
|
text-align: center;
|
|
@@ -143,20 +155,14 @@ footer {
|
|
|
143
155
|
}
|
|
144
156
|
}
|
|
145
157
|
|
|
146
|
-
.section-name:not(:first-child) {
|
|
147
|
-
margin-top: $spacing;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
158
|
.articles {
|
|
151
159
|
display: flex;
|
|
152
160
|
flex-wrap: wrap;
|
|
153
|
-
margin-left: -$spacing / 2;
|
|
154
|
-
margin-right: -$spacing / 2;
|
|
155
161
|
|
|
156
162
|
.column {
|
|
157
163
|
width: 33.33%;
|
|
158
164
|
|
|
159
|
-
@media (max-width:
|
|
165
|
+
@media screen and (max-width: $medium-breakpoint - 1) {
|
|
160
166
|
width: 100%;
|
|
161
167
|
}
|
|
162
168
|
}
|
|
@@ -164,6 +170,9 @@ footer {
|
|
|
164
170
|
article {
|
|
165
171
|
padding: $spacing / 2;
|
|
166
172
|
margin-bottom: $spacing * 4 / 5;
|
|
173
|
+
@media screen and (max-width: $medium-breakpoint - 1) {
|
|
174
|
+
padding: 0px;
|
|
175
|
+
}
|
|
167
176
|
|
|
168
177
|
img {
|
|
169
178
|
transition: all 0.3s;
|
|
@@ -172,11 +181,19 @@ footer {
|
|
|
172
181
|
}
|
|
173
182
|
}
|
|
174
183
|
|
|
184
|
+
.post-link {
|
|
185
|
+
display: block;
|
|
186
|
+
}
|
|
187
|
+
|
|
175
188
|
.thumbnail {
|
|
176
189
|
overflow: hidden;
|
|
177
190
|
border-radius: 5px;
|
|
178
191
|
box-shadow: 0px 10px 10px rgba(black, 0.15);
|
|
179
192
|
background-color: #1b1e21;
|
|
193
|
+
|
|
194
|
+
img {
|
|
195
|
+
max-width: 100%;
|
|
196
|
+
}
|
|
180
197
|
}
|
|
181
198
|
|
|
182
199
|
.title {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mindark
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thang-nm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -69,6 +69,7 @@ files:
|
|
|
69
69
|
- _includes/header.html
|
|
70
70
|
- _includes/icon.html
|
|
71
71
|
- _includes/meta.html
|
|
72
|
+
- _includes/style.html
|
|
72
73
|
- _layouts/default.html
|
|
73
74
|
- _layouts/home.html
|
|
74
75
|
- _layouts/post.html
|
|
@@ -79,7 +80,6 @@ files:
|
|
|
79
80
|
- _sass/jetbrains-mono.scss
|
|
80
81
|
- _sass/minidark.scss
|
|
81
82
|
- assets/css/mindark.scss
|
|
82
|
-
- assets/css/style.scss
|
|
83
83
|
- assets/img/apple-touch-icon.png
|
|
84
84
|
- assets/img/favicon.ico
|
|
85
85
|
- assets/img/logo.svg
|
data/assets/css/style.scss
DELETED