Buckygem is a Jekyll plugin tighly linked to the Kids theme.
Add this line to your application's Gemfile:
gem 'buckygem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install buckygem
To get an Array
of the absolute paths of images contained in folder with the relative path foo
:
images_collection = Buckygem::ImagesCollection.new("foo")
images_collection.images
To get dimensions of an image located at the relative path foo.png
:
image_metadata = Buckygem::ImageMetadata.new("foo.png")
image_metadata.absolute_path # /bar/.../foo.png
image_metadata.name # foo
image_metadata.width # 640
image_metadata.height # 480
image_metadata.to_less
will return a String
containing the following:
@foo_width: 640px;
@foo_height: 480px;
To apply ImageMagick's convert
command line tool to every image in folder source
and store
copies respecting the same arboresence in target
, use:
image_folder_converter = Buckygem::ImageFolderConverter.new
image_folder_converter.convert 'source' 'target' '-scale 25%'
i18n_date
filterUsage:
{{ my_date | i18n_date: 'default', 'en' }} # 'June 20, 2015'
{{ my_date | i18n_date: 'default', 'fr' }} # '20 juin 2015'
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)