Giter Club home page Giter Club logo

jekyll-picture-tag-ng's People

Contributors

pcouy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

jekyll-picture-tag-ng's Issues

Only webp images gets variants generated

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? :)

Configuration should work with default values

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.