jekyll-images 0.2.1 → 0.2.2

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: b61dff2c6710eddeb885f339f68eb3c5c8df598c9bb83cc1065d130c7d2f0bb5
4
- data.tar.gz: 6626adea05ae4f94829c815d0f4a71427b949478e22732a8e387d9b654d099a5
3
+ metadata.gz: ae6326d21281e0a11c937c7cd9399804b514330097c030e13d4afde55abe168d
4
+ data.tar.gz: ce83123dfc3be33db70d6f310deb9f25d859b3d6efb19059149ead1182b93fcc
5
5
  SHA512:
6
- metadata.gz: d33086b2bfc1bad9a0d051ffdb2f5383aa616f2bbb989fc2b16520cb7cd9dfd159568ad531af67dcd94557efb3dffa3c0bcb4394ff2a0fbc2a5e677b0c9bb320
7
- data.tar.gz: be91ff3b175356cf2f66f26ff0bfe8b9536001c89924a9106f8b191a47a289c8e2401ed12f37059a57dd827c4935c3345ea0a06e5457e33a0d4e2441758f09ea
6
+ metadata.gz: c041e5a823e8cedcc6f792696c24bead1a33a8d57102eabec3fa01b4ffd2dee90a1598225bf0c6bce215a12419d5f62fbdb76e2f0e8ffde11aed393e50cd34ff
7
+ data.tar.gz: d8af52b5b829e774e5e3eec70b87c9229a7803eb02b4c688847792608580d4010e185fbe59beceff9401408a0ccdbe0f88958c53bdf04dbd34365ba29fbe71a1
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Image optimization for Jekyll
2
2
 
3
3
  This Jekyll plugin helps you optimize images by thumbnailing them to
4
- the sizes you specify in templates and in the configuration for images
5
- in posts and collections.
4
+ the sizes you specify in templates.
6
5
 
7
6
  It uses [Libvips](https://libvips.github.io/libvips/) for performance
8
7
  and low resource usage. It'll also cache the thumbnails so it only runs
@@ -70,31 +69,13 @@ Options for this filter are in the following order:
70
69
  If you want to pass `crop` and `auto_rotate` but not `height`, just set
71
70
  `height` to `0` or `''`.
72
71
 
73
- ### Configuration and posts
74
-
75
- Images in a post content need to be configured globally:
76
-
77
- ```yaml
78
- # _config.yml
79
- images:
80
- # These are bootstrap4 breakpoints in pixels
81
- sizes:
82
- - 576
83
- - 768
84
- - 992
85
- - 1200
86
- thumbnail:
87
- width: 600
88
- height: 0 # Leave this out for proportional thumbnailing
89
- crop: attention # See Vips::Interesting
90
- auto_rotate: true
91
- ```
92
-
93
72
  ## TODO
94
73
 
95
74
  * Use `<picture>` and the `srcset` attribute automatically for posts
96
75
  <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture>
97
76
 
77
+ * Download and thumbnail images in posts and other documents.
78
+
98
79
  ## Contributing
99
80
 
100
81
  Bug reports and pull requests are welcome on GitHub at
data/lib/jekyll-images.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pry'
4
3
  require_relative 'jekyll/images/thumbnail'
5
4
  require_relative 'jekyll/filters/thumbnail'
6
5
  require_relative 'jekyll/images/oxipng'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Images
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-vips