minimal-days-theme 0.1.0 → 0.2.4
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 +5 -12
- data/_config.yml +4 -54
- data/_includes/image.html +1 -1
- data/_includes/post-block.html +14 -2
- data/_layouts/home.html +1 -1
- data/_sass/_image.scss +2 -0
- data/_sass/_post.scss +11 -0
- data/assets/images/2020-07-05-dalat1-1400.JPG +0 -0
- metadata +3 -3
- data/assets/images/2020-07-05-hello-world.gif +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d79dc66be016afd01ac17051cdc04dec86ff5623db0569eae97aa651efeed2a
|
4
|
+
data.tar.gz: 7700ca4ae0bf672ec3dfb925aa6d43d47a1958e630bff3f17fc276b6b0788972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae56b7afd8bc19d73aafd015b10b9b8263bda54554226841c130f1d974cef388c851df231f38ad2c15117ec29e2193a820c18f70c54f8c8ab7554b7915caa4eb
|
7
|
+
data.tar.gz: 13912eba7b8181846e1364098c233721f8953cb7b3ca2391e5298dd3de6f16d005a6c4acd205dc73765139507bf714fb66a6dedf2955efa5ee286de602ef9e5c
|
data/README.md
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
# minimal-days-theme
|
2
2
|
|
3
|
-
A minimalistic static [Jekyll](http://jekyllrb.com) blog theme! Displays full posts in single-column list.
|
4
|
-
|
5
|
-
Includes:
|
6
|
-
* pagination
|
7
|
-
* tags
|
3
|
+
A minimalistic static [Jekyll](http://jekyllrb.com) blog theme! Displays full posts in single-column list. [**Demo**](https://zenje.github.io/minimal-days-theme/)
|
8
4
|
|
9
5
|

|
10
6
|
|
@@ -32,6 +28,7 @@ Or install it yourself as:
|
|
32
28
|
|
33
29
|
## Usage
|
34
30
|
### _config.yml options
|
31
|
+
|
35
32
|
General settings:
|
36
33
|
```
|
37
34
|
title: here & there # update title
|
@@ -44,16 +41,12 @@ paginate: 3 # change posts per page
|
|
44
41
|
```
|
45
42
|
|
46
43
|
### Images in posts
|
47
|
-
To insert a responsive image in a post:
|
48
|
-
```
|
49
|
-
{% responsive_image path:"assets/image/image.png" alt:"nice image bro" %}
|
50
|
-
```
|
51
|
-
When Jekyll builds the site, [jekyll-responsive-image](https://github.com/wildlyinaccurate/jekyll-responsive-image) will resize your images and load / display them in a responsive manner.
|
52
44
|
|
53
|
-
To insert an image
|
45
|
+
To insert an image with caption:
|
54
46
|
```
|
55
|
-
{% include image.html img="image.gif" description="
|
47
|
+
{% include image.html img="image.gif" description="nice image bro" %}
|
56
48
|
```
|
49
|
+
Will generate an image in a `<figure>` with `<figurecaption>` block.
|
57
50
|
|
58
51
|
## License
|
59
52
|
|
data/_config.yml
CHANGED
@@ -5,13 +5,15 @@ title_img_link: "/about"
|
|
5
5
|
|
6
6
|
plugins:
|
7
7
|
- jekyll-paginate
|
8
|
-
|
9
|
-
|
8
|
+
#- jekyll-responsive-image
|
9
|
+
#- jekyll/tagging
|
10
10
|
|
11
11
|
# Other settings
|
12
12
|
code_css: "default" # replace with highlight.js css style
|
13
13
|
paginate: 3
|
14
14
|
paginate_path: "/page/:num/"
|
15
|
+
show_excerpt: true
|
16
|
+
excerpt_separator: <!--more-->
|
15
17
|
|
16
18
|
# Tag settings
|
17
19
|
tag_page_dir: tag
|
@@ -26,55 +28,3 @@ responsive_image:
|
|
26
28
|
# [Required]
|
27
29
|
# Path to the image template.
|
28
30
|
template: _includes/responsive-image.html
|
29
|
-
|
30
|
-
# [Optional, Default: 85]
|
31
|
-
# Quality to use when resizing images.
|
32
|
-
default_quality: 90
|
33
|
-
|
34
|
-
# [Optional, Default: []]
|
35
|
-
# An array of resize configuration objects. Each object must contain at least
|
36
|
-
# a `width` value.
|
37
|
-
sizes:
|
38
|
-
- width: 480 # [Required] How wide the resized image will be.
|
39
|
-
quality: 80 # [Optional] Overrides default_quality for this size.
|
40
|
-
- width: 800
|
41
|
-
- width: 1400
|
42
|
-
quality: 90
|
43
|
-
|
44
|
-
# [Optional, Default: false]
|
45
|
-
# Rotate resized images depending on their EXIF rotation attribute. Useful for
|
46
|
-
# working with JPGs directly from digital cameras and smartphones
|
47
|
-
auto_rotate: false
|
48
|
-
|
49
|
-
# [Optional, Default: false]
|
50
|
-
# Strip EXIF and other JPEG profiles. Helps to minimize JPEG size and win friends
|
51
|
-
# at Google PageSpeed.
|
52
|
-
strip: false
|
53
|
-
|
54
|
-
# [Optional, Default: assets]
|
55
|
-
# The base directory where assets are stored. This is used to determine the
|
56
|
-
# `dirname` value in `output_path_format` below.
|
57
|
-
base_path: assets
|
58
|
-
|
59
|
-
# [Optional, Default: assets/resized/%{filename}-%{width}x%{height}.%{extension}]
|
60
|
-
# The template used when generating filenames for resized images. Must be a
|
61
|
-
# relative path.
|
62
|
-
#
|
63
|
-
# Parameters available are:
|
64
|
-
# %{dirname} Directory of the file relative to `base_path` (assets/sub/dir/some-file.jpg => sub/dir)
|
65
|
-
# %{basename} Basename of the file (assets/some-file.jpg => some-file.jpg)
|
66
|
-
# %{filename} Basename without the extension (assets/some-file.jpg => some-file)
|
67
|
-
# %{extension} Extension of the file (assets/some-file.jpg => jpg)
|
68
|
-
# %{width} Width of the resized image
|
69
|
-
# %{height} Height of the resized image
|
70
|
-
#
|
71
|
-
output_path_format: assets/images/resized/%{width}/%{basename}
|
72
|
-
|
73
|
-
# [Optional, Default: true]
|
74
|
-
# Whether or not to save the generated assets into the source folder.
|
75
|
-
save_to_source: false
|
76
|
-
|
77
|
-
# [Optional, Default: false]
|
78
|
-
# Cache the result of {% responsive_image %} and {% responsive_image_block %}
|
79
|
-
# tags. See the "Caching" section of the README for more information.
|
80
|
-
cache: false
|
data/_includes/image.html
CHANGED
data/_includes/post-block.html
CHANGED
@@ -1,16 +1,28 @@
|
|
1
|
+
{% assign post_url = post.url | absolute_url %}
|
1
2
|
<div class="post">
|
2
3
|
<div class="post--date">{{ post.date | date: "%A %m.%d.%y" | downcase }}</div>
|
3
4
|
<h1 class="post--title">
|
4
|
-
<a href="{{
|
5
|
+
<a href="{{ post_url }}">
|
5
6
|
{{ post.title }}
|
6
7
|
</a>
|
7
8
|
</h1>
|
8
9
|
|
10
|
+
{% if include.show_excerpt == true and post.show_excerpt != false %}
|
11
|
+
{{ post.excerpt }}
|
12
|
+
<div class="post--read-more">
|
13
|
+
<a href="{{ post_url }}">
|
14
|
+
read more ▼
|
15
|
+
</a>
|
16
|
+
</div>
|
17
|
+
{% else %}
|
9
18
|
{{ post.content }}
|
19
|
+
{% endif %}
|
10
20
|
|
11
21
|
<div class="post--tags">
|
12
22
|
{% for tag in post.tags %}
|
13
|
-
|
23
|
+
{% capture tag_url %}tag/{{ tag }}.html{% endcapture %}
|
24
|
+
{% assign absolute_tag_url = tag_url | absolute_url %}
|
25
|
+
<span class="post--tag"><a href="{{ absolute_tag_url }}">[{{ tag }}]</a></span>
|
14
26
|
{% endfor %}
|
15
27
|
</div>
|
16
28
|
</div>
|
data/_layouts/home.html
CHANGED
data/_sass/_image.scss
CHANGED
data/_sass/_post.scss
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal-days-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jessica Zeng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -51,8 +51,8 @@ files:
|
|
51
51
|
- _sass/_tags.scss
|
52
52
|
- _sass/_variables.scss
|
53
53
|
- assets/css/main.scss
|
54
|
+
- assets/images/2020-07-05-dalat1-1400.JPG
|
54
55
|
- assets/images/2020-07-05-dalat1.JPG
|
55
|
-
- assets/images/2020-07-05-hello-world.gif
|
56
56
|
- assets/images/theme/cloud.gif
|
57
57
|
homepage: https://github.com/zenje/minimal-days-theme
|
58
58
|
licenses:
|
Binary file
|