Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
jekyll-lazy-load-image
Advanced tools
Edit img tag optimized lazy load images for your Jekyll site
Gemfile
Add the following to your site's Gemfile
:
group :jekyll_plugins do
gem 'jekyll-lazy-load-image', require: 'jekyll-lazy-load-image/auto-execution'
end
and run bundle.
_config.yml
Add the following to your site's _config.yml
:
lazy_load_image:
src_attr_name: data-src # [required] You need to specify the attributes to be saved for lazy loading
preload_image: /path/to/image # [optional] you can add a data uri or loading image as fallback src
class_attr_values: # [optional] if you want to add custom class value, please add values
- lazyload
ignore_selectors: # [optional] if you want to ignore applying lazy load image, please add selector (css or xpath)
- ".ignore-lazy-image-load"
- "/*[@class='ignore-lazy-image-load']"
additional_attrs: # [optional] if you want to add attributes, please add key value
"data-size": auto
Select your favorite library and add your site. For example:
You can change applying jekyll hook container.
This library is :posts
by default.
See also: https://jekyllrb.com/docs/plugins/#hooks
Gemfile
Add the following to your site's Gemfile
:
gem 'jekyll-lazy-load-image'
_plugins
Add the following to your site's _plugins
, for example create _plugins/lazy-load-image.rb
:
JekyllLazyLoadImage.configure do |config|
config.owners = %i[posts documents]
end
JekyllLazyLoadImage.execute
bin/setup
to setup your local development environment.bin/console
to load a local Pry console with the Gem.bundle exec rake spec
FAQs
Unknown package
We found that jekyll-lazy-load-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.