pcouy / jekyll-picture-tag-ng Goto Github PK
View Code? Open in Web Editor NEWTransparently generate and use alternative picture sizes
Home Page: https://pierre-couy.dev/projects/jekyll-picture-tag-ng.html
License: MIT License
Transparently generate and use alternative picture sizes
Home Page: https://pierre-couy.dev/projects/jekyll-picture-tag-ng.html
License: MIT License
Using the default config from the README and a Jekyll site with a bunch of jpg,png and webp images in assets/images
, the plugin only generates variants for the webp images I have.
As I understand the README, any jpg/png/webp would autmoatically gets variants generated of different sizes and formats. More specifically I'm looking to have my jpg/png images to get automatic webp variants generated an inserted to the generated HTML with the <picture>
tag.
^ did I understand it correct how the plugins should work? If so, is there some configuration that I would need to change from the default to get this? :)
Hey, first thanks for this cool plugin. It looks like exactly what I need!
I installed the Gem, added it to the Jekyll plugins configuration and on jekyll build I get:
~/.local/share/asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/jekyll-picture-tag-ng-0.6.0/lib/jekyll-picture-tag-ng/jekyll/site.rb:11:in
write': undefined method
[]' for nil:NilClass (NoMethodError)if config["picture_tag_ng"]["parallel"] ^^^^^^^^^^^^ from ~/.local/share/asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:82:in `process' from ~/.local/share/asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:28:in `process_site' from ~/.local/share/asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:65:in `build' from ~/.local/share/asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:36:in `process' from ~/.local/share/asdf/installs/ruby/3.1.0/lib/ruby/gems/3.1.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
If I add the default configuration from the README to the jekyll config, it does work!
It would be much nicer if the plugin worked by using default values. If one needs to change from default, then one could start adding the config :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.