
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/jorjafox/mod-bs5-lightbox
A Hugo module for Lightbox for Boostrap 5 that is compatible with Hinode
While I can't imagine anyone else wanting to use this, it loads the JS for the lightbox after Bootstrap, which is required for the lightbox to work.
The module is "optional" per default. In this case the module must be enabled in the frontmatter of the pages that use the lightbox by adding: modules: ["bs5-lightbox"]
To make it work with your images, you need to wrap a URL around it with the following params: data-toggle="lightbox" data-gallery="gallery"
Example:
<a href="{{ $image }}" data-toggle="lightbox" data-gallery="gallery">
{{- partial "assets/image.html" (dict "url" {{ $image }} "ratio" "1x1" "wrapper" "mx-auto" "class" "img-fluid") -}}
</a>
For the shortcode to content, your front matter must include:
----
modules: ["bs5-lightbox"]
photogallery:
- /img/path/to/image1.jpg
- /img/path/to/image2.jpg
----
And in your post content:
{{< bs5-lightbox title="Alt text" >}}
Images should be located in the assets/img
folder, and will be resized by Hinode. If you don't use a title, it will use the page title.
This module uses semantic-release to automate the release of new versions. The package uses husky
and commitlint
to ensure commit messages adhere to the Conventional Commits specification. You can run npx git-cz
from the terminal to help prepare the commit message.
FAQs
Unknown package
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.