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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee46b2264bb7605f05f7ec74f786503f6a708f423205d42b39feabf69341661a
4
- data.tar.gz: 81445c714c2c21b80055c538c6dad98b555ceeea0744c70534f61de1afab2df2
3
+ metadata.gz: 8d79dc66be016afd01ac17051cdc04dec86ff5623db0569eae97aa651efeed2a
4
+ data.tar.gz: 7700ca4ae0bf672ec3dfb925aa6d43d47a1958e630bff3f17fc276b6b0788972
5
5
  SHA512:
6
- metadata.gz: 293c8a445397e9e785d657ad1ab05fd651822c8ab05db1493325bdb68f66c4b6b75b469b35cc3e4ca78e3abcc6ed25cc712377edee9618803afe817344e7961d
7
- data.tar.gz: 1a6fb3941d7408d59c9ac12478d03dde3d03284dfbdf2aaf26c4a4a1d6aed18bd72cd64258cc233fdba427e1ed560cbfb573c15c3d2b352c4497f9355f2a3f25
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
  ![Preview](/minimal-theme-screenshot.png)
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 / gif that should NOT be resized:
45
+ To insert an image with caption:
54
46
  ```
55
- {% include image.html img="image.gif" description="check this out" %}
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
 
@@ -5,13 +5,15 @@ title_img_link: "/about"
5
5
 
6
6
  plugins:
7
7
  - jekyll-paginate
8
- - jekyll-responsive-image
9
- - jekyll/tagging
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
@@ -1,4 +1,4 @@
1
1
  <figure class="image">
2
- <img src="/assets/images/{{ include.img }}" alt="{{ include.description }}">
2
+ <img src="{{ include.img }}" style="{{ include.style }}" alt="{{ include.description }}">
3
3
  <figcaption>{{ include.description }}</figcaption>
4
4
  </figure>
@@ -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="{{ post.url | absolute_url }}">
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 &#9660;
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
- <span class="post--tag"><a href="tag/{{ tag }}.html">[{{ tag }}]</a></span>&nbsp;
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>&nbsp;
14
26
  {% endfor %}
15
27
  </div>
16
28
  </div>
@@ -4,7 +4,7 @@ layout: default
4
4
 
5
5
  <div class="posts">
6
6
  {% for post in paginator.posts %}
7
- {% include post-block.html %}
7
+ {% include post-block.html show_excerpt=site.show_excerpt %}
8
8
  {% endfor %}
9
9
  </div>
10
10
 
@@ -1,9 +1,11 @@
1
1
  figure.image {
2
2
  text-align: center;
3
3
  margin: 0;
4
+ padding-bottom: 2em;
4
5
  }
5
6
 
6
7
  img {
8
+ width: 100%;
7
9
  max-width: 100%;
8
10
  }
9
11
 
@@ -26,4 +26,15 @@
26
26
  &--tag a {
27
27
  text-decoration: none;
28
28
  }
29
+
30
+ &--read-more {
31
+ text-align: center;
32
+ font-weight: bold;
33
+ margin-bottom: 5vh;
34
+
35
+ a {
36
+ letter-spacing: 0;
37
+ text-decoration: none;
38
+ }
39
+ }
29
40
  }
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.1.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-15 00:00:00.000000000 Z
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: