jekyll-theme-jsblog 1.0.23 → 1.0.24
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/_layouts/home.html +11 -11
- data/_sass/jsblog.scss +4 -4
- data/_sass/jsblog/_base.scss +11 -0
- data/_sass/jsblog/_layout.scss +25 -7
- data/assets/home.scss +1 -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: b3c8d290a85768e14f67b264ae1f8f097e0e4165dddb9dcaaa703b9cc34bc81d
|
4
|
+
data.tar.gz: e62484b1a29b89b313a3c915f8d4789376c9a1ac4c5e1a575fe57e0d983eb86b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90a1c06de9c33bd517d9518c292a9cebef4f8723a15c164a94f5623cdbba53c31a8b9bd0e7e8e56141019c5c2d0a65abc90e9c00dabcda34b94df103cb350fda
|
7
|
+
data.tar.gz: fd143418a085ad255d367736dd1085502ad3007f724e9ec3f6c0d54a899a3c7245dfd875b044f17d46ed6f8d067b8ccd46f52ad48f1c542f61721365fd4ea655
|
data/_layouts/home.html
CHANGED
@@ -8,13 +8,20 @@ layout: default
|
|
8
8
|
|
9
9
|
{% capture site_lang %}{{ site.lang | default: "en" }}{% endcapture %}
|
10
10
|
|
11
|
-
<
|
11
|
+
<div class="post-list">
|
12
12
|
{% for post in paginator.posts %}
|
13
13
|
{% capture post_lang %}{{ post.lang | default: site_lang }}{% endcapture %}
|
14
14
|
{% capture lang %}{% if post_lang != site_lang %}{{ post_lang }}{% endif %}{% endcapture %}
|
15
15
|
|
16
|
-
<
|
16
|
+
<article{% if lang != empty %} lang="{{ lang }}"{% endif %}>
|
17
17
|
<header class="post-header">
|
18
|
+
<p class="post-meta">
|
19
|
+
{{ post.date | date: "%b %-d, %Y" }}
|
20
|
+
{% if post.external-url %}
|
21
|
+
• <a href="{{ post.url | relative_url }}">Permalink</a>
|
22
|
+
{% endif %}
|
23
|
+
</p>
|
24
|
+
|
18
25
|
<h1 class="post-title">
|
19
26
|
{% if post.external-url %}
|
20
27
|
<a class="post-link" href="{{ post.external-url }}">{{ post.title | escape }} →</a>
|
@@ -22,13 +29,6 @@ layout: default
|
|
22
29
|
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
23
30
|
{% endif %}
|
24
31
|
</h1>
|
25
|
-
|
26
|
-
<p class="post-meta">
|
27
|
-
{{ post.date | date: "%b %-d, %Y" }}
|
28
|
-
{% if post.external-url %}
|
29
|
-
• <a href="{{ post.url | relative_url }}">Permalink</a>
|
30
|
-
{% endif %}
|
31
|
-
</p>
|
32
32
|
</header>
|
33
33
|
|
34
34
|
<div class="post-content">
|
@@ -39,9 +39,9 @@ layout: default
|
|
39
39
|
<a href="{{ post.url | relative_url }}">Read on →</a>
|
40
40
|
</p>
|
41
41
|
{% endif %}
|
42
|
-
</
|
42
|
+
</article>
|
43
43
|
{% endfor %}
|
44
|
-
</
|
44
|
+
</div>
|
45
45
|
|
46
46
|
{% include pagination.html %}
|
47
47
|
|
data/_sass/jsblog.scss
CHANGED
@@ -13,14 +13,14 @@ $site-footer-font-size: 16px !default;
|
|
13
13
|
// Font Sizes
|
14
14
|
// $title-large-font-size: 1px !default;
|
15
15
|
$title-font-size: 42px !default;
|
16
|
-
$title-medium-font-size:
|
16
|
+
$title-medium-font-size: 34px !default;
|
17
17
|
$title-small-font-size: 27px !default;
|
18
18
|
|
19
19
|
$subtitle-font-size: 24px !default;
|
20
20
|
$subtitle-small-font-size: 22px !default;
|
21
21
|
|
22
|
-
$meta-font-size:
|
23
|
-
$meta-small-font-size:
|
22
|
+
$meta-font-size: 18px !default;
|
23
|
+
$meta-small-font-size: 16px !default;
|
24
24
|
|
25
25
|
$lead-font-size: 21px !default;
|
26
26
|
$lead-small-font-size: 19px !default;
|
@@ -73,7 +73,7 @@ $on-small: 735px !default;
|
|
73
73
|
--grey-color-darker: #{$grey-color-darker};
|
74
74
|
|
75
75
|
--content-width: 750px; // Original 980px
|
76
|
-
--header-content-width:
|
76
|
+
--header-content-width: 1180px;
|
77
77
|
|
78
78
|
--header-background-color: #2C2C2C;
|
79
79
|
--footer-background-color: #f2f2f2;
|
data/_sass/jsblog/_base.scss
CHANGED
@@ -8,7 +8,17 @@ dl, dd, ol, ul, figure {
|
|
8
8
|
padding: 0;
|
9
9
|
}
|
10
10
|
|
11
|
+
html {
|
12
|
+
-webkit-box-sizing: border-box;
|
13
|
+
-moz-box-sizing: border-box;
|
14
|
+
box-sizing: border-box;
|
15
|
+
}
|
11
16
|
|
17
|
+
*, *:before, *:after {
|
18
|
+
-webkit-box-sizing: inherit;
|
19
|
+
-moz-box-sizing: inherit;
|
20
|
+
box-sizing: inherit;
|
21
|
+
}
|
12
22
|
|
13
23
|
/**
|
14
24
|
* Basic styling
|
@@ -210,6 +220,7 @@ pre {
|
|
210
220
|
*/
|
211
221
|
.wrapper {
|
212
222
|
width: var(--content-width);
|
223
|
+
max-width: 95%;
|
213
224
|
margin-right: auto;
|
214
225
|
margin-left: auto;
|
215
226
|
@extend %clearfix;
|
data/_sass/jsblog/_layout.scss
CHANGED
@@ -113,7 +113,7 @@
|
|
113
113
|
position: absolute;
|
114
114
|
bottom: 0;
|
115
115
|
width: 100%;
|
116
|
-
height:
|
116
|
+
// height: 80px;
|
117
117
|
line-height: 18px;
|
118
118
|
padding: 10px 0;
|
119
119
|
font-size: $site-footer-font-size;
|
@@ -156,20 +156,34 @@
|
|
156
156
|
}
|
157
157
|
|
158
158
|
.post-list {
|
159
|
-
|
160
|
-
|
159
|
+
display: flex;
|
160
|
+
flex-wrap: wrap;
|
161
|
+
justify-content: space-between;
|
162
|
+
align-items: stretch;
|
161
163
|
|
162
164
|
.post-link:hover {
|
163
165
|
text-decoration: none;
|
164
166
|
}
|
165
167
|
|
166
|
-
>
|
167
|
-
|
168
|
+
> article {
|
169
|
+
float: left;
|
170
|
+
width: 30%;
|
171
|
+
margin-bottom: 50px;
|
168
172
|
|
169
|
-
|
170
|
-
|
173
|
+
@include media-query($on-small) {
|
174
|
+
width: 100%;
|
171
175
|
}
|
172
176
|
}
|
177
|
+
|
178
|
+
.post-title {
|
179
|
+
font-size: $title-medium-font-size;
|
180
|
+
line-height: 1.125;
|
181
|
+
letter-spacing: .004em;
|
182
|
+
}
|
183
|
+
|
184
|
+
.post-content > p {
|
185
|
+
font-size: $small-font-size;
|
186
|
+
}
|
173
187
|
}
|
174
188
|
|
175
189
|
.post-meta {
|
@@ -192,6 +206,10 @@
|
|
192
206
|
line-height: 1.21053;
|
193
207
|
letter-spacing: .012em;
|
194
208
|
}
|
209
|
+
|
210
|
+
& + .post-title {
|
211
|
+
margin-top: .4em;
|
212
|
+
}
|
195
213
|
}
|
196
214
|
|
197
215
|
.post-link {
|
data/assets/home.scss
CHANGED