Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@11in/cloudinary
Advanced tools
This provides some shortcodes and filters for generating Cloudinary URLs. It's mostly just a wrapper around the Cloudinary Node SDK, although it will attempt some coercion to get valid public IDs from various kinds of input.
Install the plugin with npm or yarn:
$ npm -i @11in/cloudinary --save
Add it to your eleventy.config.js
:
module.exports = function (conf) {
conf.namespace('cl_', () => {
conf.addPlugin(cloudinary, {
name: "your-cloud-name",
})
});
}
You can alternatively set an environment variable called
CLOUDINARY_URL
. It's found on your Cloudinary dashboard, and looks something like this:CLOUDINARY_URL=cloudinary://api-key:api-secret@your-cloud-name
Use the shortcodes & filters:
{% cl_img { path: 'image.jpg', transforms: [{ width: 670 }] } %}
{{ 'image.jpg' | cl_url({width: 670}) }}
Cloudinary is fairly good at extracting your asset ids from various URLs you might get out of Cloudinary (or, say, Forestry). So you can also do something like this:
{% cl_img { path: '/v1610229506/directory/2021/01/image.jpg', transforms: [{ width: 670 }] } %}
{{ 'https://res.cloudinary.com/your-cloud-name/image/upload/v1613447983/image.jpg' | cl_url({width: 670}) }}
For more information, see the full documentation.
FAQs
Gives us some cloudinary stuff for 11ty
We found that @11in/cloudinary 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.