jekyll-imgflow 0.1.8 → 0.1.10

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: '096d8389110e5128cb043db130059fed14d477e859068074645aa2d915453d78'
4
- data.tar.gz: 47808ceb1562c5445bb3d6b6acbca1477a19ab9477e414c712bce676c8dd579e
3
+ metadata.gz: 94373ec599b8e291a5a76cb072d27db634329d5a2c345a42d2bbade48860a143
4
+ data.tar.gz: 45c949cf624fafb3c290898ccca514677d1b336514fb8cb06dc9009a0936faac
5
5
  SHA512:
6
- metadata.gz: 6a22f23719023088512647af702af94e220f7697016cac7ee85d1d894e49be7e2f35c67439e1e6701d14d3a1be20d5cc52cf1961d9dd64da39ae06431b868994
7
- data.tar.gz: e25a2fb82d17e77791776935adfe333cd2f127396702902988b3956b10d41e4a4e3101ec9a50a09aaf44a876c7baa42c32135c37b1fdb785179a946c2472c793
6
+ metadata.gz: 3715974b3af0d82d439e1b96a0d80650ae360a142c61898845b1ed6dda1a6fdbc53a6648f2ca6150df82d40d1a7f123bd4a84524657947638cf1a076df45a3c0
7
+ data.tar.gz: 1eeed12f791b156bfc87e4a3479845cae4e975a4067ebe9530f6cc87e6b1f3e23a48ddb7b27e892bbb3441bcfd1be83aed0bc998438ecf647be5dfc345d8ae1a
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # ImgFlow
2
2
 
3
+ ![Jekyll ImgFlow](docs/assets/images/jekyll-imgflow-logo.png)
4
+
3
5
  A [Jekyll](https://jekyllrb.com/) plugin for automatic image optimization with multiple providers and formats.
4
6
 
5
7
  [![DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/gundestrup/jekyll-imgflow)
@@ -207,13 +207,16 @@ module Jekyll
207
207
  path_resolver = JekyllImgFlow::PathResolver.new(config)
208
208
 
209
209
  # Handle different path formats
210
- if image_path.start_with?("/")
211
- # Absolute site-root path: /assets/images/originals/valdemar/photo.jpg
212
- File.join(site.source, image_path)
210
+ normalized_path = image_path.delete_prefix("/")
211
+ originals_prefix = "#{config.originals.chomp('/')}/"
212
+
213
+ if image_path.start_with?("/") || normalized_path.start_with?(originals_prefix)
214
+ # Site-root path, with or without a leading slash:
215
+ # /assets/images/originals/valdemar/photo.jpg
216
+ File.join(site.source, normalized_path)
213
217
  else
214
- # Relative path: photo.jpg or valdemar/photo.jpg
215
- # Always resolve against the configured originals directory
216
- path_resolver.cli_path(image_path)
218
+ # Originals-relative path: photo.jpg or valdemar/photo.jpg
219
+ path_resolver.cli_path(normalized_path)
217
220
  end
218
221
  end
219
222
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllImgFlow
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-imgflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svend Gundestrup
@@ -242,6 +242,7 @@ licenses:
242
242
  - AGPL-3.0-or-later
243
243
  metadata:
244
244
  rubygems_mfa_required: 'true'
245
+ icon_uri: https://raw.githubusercontent.com/gundestrup/jekyll-imgflow/v0.1.10/docs/assets/images/jekyll-imgflow-icon.png
245
246
  rdoc_options: []
246
247
  require_paths:
247
248
  - lib