jekyll-darkred-theme 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/README.md +37 -0
- data/_config.yml +10 -5
- data/_layouts/home.html +1 -1
- data/_sass/main.scss +7 -6
- 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: 7b904dfe59ed10bea2d50f6e0ff60bb451ed30726b8f47a8a1148932d56b7e22
|
4
|
+
data.tar.gz: 5850263521c13d2c54ee0d3feaecab4c67f8e55efeb86cc9a3c5e1e8b1f67ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28aa408dedd05b0c2c1e3ac049f2db0a8df59bc4c949057ec4ea84f034afad45b4067d8c9e4ac2792d4e2769ed18143a21c23def768d52e742f97a5dd1116523
|
7
|
+
data.tar.gz: e4cbdf610775c72e1eeaf5934e7457d2288f6ea4d2683db80649f03a1da1fbe270b14e2be7c9b5876a02a1e13152d84c0ae3d718c5ecf70f507d44ec9188bc6d
|
data/README.md
CHANGED
@@ -1,4 +1,41 @@
|
|
1
1
|

|
2
2
|
|
3
|
+
<p align="center">
|
4
|
+
<img src="https://img.shields.io/travis/kkent030315/jekyll-darkred-theme?style=for-the-badge">
|
5
|
+
<img src="https://img.shields.io/gem/v/jekyll-darkred-theme?style=for-the-badge">
|
6
|
+
<img src="https://img.shields.io/github/license/kkent030315/jekyll-darkred-theme?style=for-the-badge">
|
7
|
+
<img src="https://img.shields.io/github/issues/kkent030315/jekyll-darkred-theme?style=for-the-badge">
|
8
|
+
</p>
|
9
|
+
|
3
10
|
# jekyll-darkred-theme
|
4
11
|
A dark-red theme for Jekyll.
|
12
|
+
|
13
|
+
# Configurations
|
14
|
+
|
15
|
+
The theme is designed to use on blogs, thus you are free to use thumbnails for each posts.
|
16
|
+
|
17
|
+
These configurations are available on `_config.yml`:
|
18
|
+
|
19
|
+
```yml
|
20
|
+
# following configurations allow showing thumbnails on post list
|
21
|
+
|
22
|
+
# enable/disable thumbnails forcibly
|
23
|
+
post_thumbnails: true
|
24
|
+
|
25
|
+
# this image will shown if the thumbnail was not specified in the post
|
26
|
+
post_default_thumbnail: "/relative/path/to/<my_default_thumbnail.png>"
|
27
|
+
|
28
|
+
# show default thumbnail in the post list if not specified
|
29
|
+
post_thumbnail_defaults: true
|
30
|
+
```
|
31
|
+
|
32
|
+
Also you have to specify `thumbnail` option in `_posts/0000-00-00-your-post.md`:
|
33
|
+
(if not, the default thumbnail will be attached if `post_thumbnail_defaults` is true)
|
34
|
+
|
35
|
+
```yml
|
36
|
+
---
|
37
|
+
layout: post
|
38
|
+
title: Hello World!
|
39
|
+
thumbnail: "/relative/path/to/thumbnail.png"
|
40
|
+
---
|
41
|
+
```
|
data/_config.yml
CHANGED
@@ -2,10 +2,15 @@ title: Jekyll Dark-Red Theme
|
|
2
2
|
description: "A dark-red theme for Jekyll."
|
3
3
|
lang: en
|
4
4
|
|
5
|
-
|
6
|
-
copyright_text: "Copyright © 2020 Jekyll Dark-Red Theme. All Rights Reserved."
|
5
|
+
exclude: [vendor]
|
7
6
|
|
8
7
|
# following configurations allow showing thumbnails on post list
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
|
9
|
+
# enable/disable thumbnails forcibly
|
10
|
+
post_thumbnails: false
|
11
|
+
|
12
|
+
# this image will shown if the thumbnail was not specified in the post
|
13
|
+
post_default_thumbnail: "/relative/path/to/<my_default_thumbnail.png>"
|
14
|
+
|
15
|
+
# show default thumbnail in the post list if not specified
|
16
|
+
post_thumbnail_defaults: true
|
data/_layouts/home.html
CHANGED
@@ -12,7 +12,7 @@ layout: default
|
|
12
12
|
{%- if post.thumbnail -%}
|
13
13
|
<img class="post-thumbnail" src="{{ post.thumbnail | relative_url }}" alt="">
|
14
14
|
{%- elsif site.post_thumbnail_defaults -%}
|
15
|
-
<img class="post-thumbnail" src="{{ site.
|
15
|
+
<img class="post-thumbnail" src="{{ site.post_default_thumbnail | relative_url | default: "/assets/images/jekyll-og.png" }}" alt="">
|
16
16
|
{%- endif -%}
|
17
17
|
{%- endif -%}
|
18
18
|
<div class="post-detail-container">
|
data/_sass/main.scss
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
body {
|
15
|
-
font-family:
|
15
|
+
font-family: "Open Sans", sans-serif;
|
16
16
|
background: $color-background;
|
17
17
|
color: $color-font;
|
18
18
|
min-height: 100vh;
|
@@ -202,6 +202,10 @@ code {
|
|
202
202
|
font-family: "Source Code Pro", monospace, sans-serif !important;
|
203
203
|
}
|
204
204
|
|
205
|
+
.highlight > pre {
|
206
|
+
padding: 10px !important;
|
207
|
+
}
|
208
|
+
|
205
209
|
.post-body {
|
206
210
|
width: 100%;
|
207
211
|
|
@@ -274,15 +278,12 @@ code {
|
|
274
278
|
}
|
275
279
|
|
276
280
|
.highlighter-rouge,
|
277
|
-
&.highlighter-rouge
|
281
|
+
&.highlighter-rouge,
|
282
|
+
pre {
|
278
283
|
background: $color-background-inner;
|
279
284
|
padding: 2px 4px 2px 4px;
|
280
285
|
border-radius: 4px;
|
281
286
|
border: 1px solid $color-border-thin;
|
282
|
-
|
283
|
-
pre {
|
284
|
-
padding: 10px;
|
285
|
-
}
|
286
287
|
}
|
287
288
|
}
|
288
289
|
|