
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
eleventy-plugin-vimeo-embed
Advanced tools
An Eleventy plugin to automatically embed Vimeo videos, using just their URLs.
This Eleventy plugin automatically embeds responsive Vimeo videos from URLs in Markdown files.
In your Eleventy project, install the plugin through npm:
$ npm i eleventy-plugin-vimeo-embed
Then add it to your Eleventy config file:
const embedVimeo = require("eleventy-plugin-vimeo-embed");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(embedVimeo);
};
To embed a Vimeo video into any Markdown page, paste its URL into a new line. The URL should be the only thing on that line.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vehicula, elit vel condimentum porta, purus.
https://vimeo.com/347565673
Maecenas non velit nibh. Aenean eu justo et odio commodo ornare. In scelerisque sapien at.
You can configure the plugin to change its behavior by passing an options object to the addPlugin
function:
eleventyConfig.addPlugin(embedVimeo, {
// edit options here
});
Edit any of the default values in this options object to override the plugin behavior. These are the default settings, which will apply to all embed instances. Currently there’s no way to configure individual embeds.
{
// Default “allowfullscreen” boolean attribute that gets applied to the embed <iframe>.
// Change to false to disable fullscreen.
allowFullscreen: true,
// Default “dnt” (“do-not-track”) boolean attribute that gets applied to the embed URL.
// Change to false to allow cookies and other tracking technology.
dnt: true,
// Default class that gets applied to the wrapper <div>.
// Substitute your preferred string to target embeds with CSS.
embedClass: 'eleventy-plugin-vimeo-embed'
});
The plugin supports common Vimeo URL variants as well. These should also work in your Markdown files.:
<!-- No protocol: -->
vimeo.com/347565673
www.vimeo.com/347565673
<!-- With or without HTTPS: -->
http://vimeo.com/347565673
https://vimeo.com/347565673
<!-- With or without 'www': -->
https://www.vimeo.com/347565673
https://vimeo.com/347565673
<!-- URLs with extra parameters or fragments: -->
https://vimeo.com/347565673?autoplay=1
https://vimeo.com/347565673#t30s
If you run across a URL pattern that you think should work, but doesn’t, please file an issue!
<p>
<a>
FAQs
An Eleventy plugin to automatically embed Vimeo videos, using just their URLs.
The npm package eleventy-plugin-vimeo-embed receives a total of 928 weekly downloads. As such, eleventy-plugin-vimeo-embed popularity was classified as not popular.
We found that eleventy-plugin-vimeo-embed 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.