![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
jekyll-image-gallery
Advanced tools
A image gallery generator for Jekyll. The differentiating feature from other gallery plugins is that it generates galleries automatically grouped into years.
The feature list is pretty standard:
Example can be found at photos.jacobessex.com [source]
Also consider:
See the Jekyll guide on installing plugins and install "jekyll-image-gallery"
Ensure you install the transitive dependency ImageMagick, as this is required by the mini_magick gem. On Mac this is as simple as
$ brew install imagemagick
After installation, create a _galleries
directory and within the _galleries
directory, create sub-directories for each gallery. For example your directory structure could look like this:
- _galleries/
--- 2022/
----- 2022-05-23-first-gallery/
------- first_image.jpg
------- second_image.png
----- 2022-09-01-second/
------- awesome.jpg
This will result in the generated galleries:
- _site/
--- index.html (optional root index.html)
--- 2022/
----- index.html
----- 05/
------- first-gallery.html
------- first_image.jpg
------- second_image.png
------- [.. and thumbnails ..]
----- 09/
------- second.html
------- awesome.jpg
------- [.. and thumbnails ..]
As you can see from the example, the directory structure you use doesn't matter, each sub directory containing images will be considered its own gallery (even subdirectories nested in an existing gallery) and the structure will be based on the year and the month of each gallery.
The year and month of the gallery is inferred from the first of
This plugin generates pages which use two layouts
gallery_index
- an index of galleriesgallery_page
- the gallery itselfThese layouts are not included in the plugin and so you will need to implement them yourself. An example can be found here
The gallery index page displays a thumbnail for the image gallery. By default this is the first image but a specific image
can be chosen by prefixing the image name with hl_
or suffixing it with _hl
. e.g. myimage_hl.png
.
Global gallery configuration uses the standard Jekyll configuration (default of _config.yaml
)
gallery:
generate_root_index: true # Generate a index gallery at the root of the gallery (default false)
path: 'some/path' # Slash seperated output path of the gallery, set to an empty string to generate a gallery in the root of the site
# (default is 'gallery')
title_prefix: 'Photos' # The prefix of the title variable (default is 'Photos')
title_seperator: '|' # The seperator between the title components (prefix, year and gallery title). (default is '|')
thumbnail_size: # Size of generated thumbnails
x: 512
y: 512
image_size: # The maximum size of images, remove the configuration to not compress images (default is no compression)
x: 2048
y: 2048
Gallery configuration can be overridden by adding a _metadata.toml
or _metadata.json
file to the gallery directory.
name = "Gallery Name"
datetime = "2001-02-03T04:05:06+07:00"
The datetime field is parsed using the Datetime::parse method
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that jekyll-image-gallery 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.