Skip to content

cigar-factory/lektor-youtube-embed

Repository files navigation

lektor-youtube-embed

Run tests codecov PyPI Version License Python Compatibility Code style: black

Lektor template filter to convert youtube links to embeds

Installation

pip install lektor-youtube-embed

Usage

{{ "https://www.youtube.com/watch?v=9Yk9iRDESDo" | youtube }}
{{ "https://youtu.be/BdXDT-5jci0" | youtube(width=640, height=480, attrs={'class': 'video'}) }}