Pelican Vimeo is a plugin to enabled you to embed Vimeo videos in your pages and articles.
To install pelican-vimeo, simply install it from PyPI:
$ pip install pelican-vimeoThen enabled it in your pelicanconf.py
PLUGINS = [
# ...
'pelican_vimeo',
# ...
]In your article or page, you simply need to add a line to embed you video.
.. vimeo:: VIDEO_IDWhich will result in:
<div class="vimeo" align="left">
<iframe width="420" height="315" src="https://player.vimeo.com/video/VIDEO_ID" frameborder="0"
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>You can also specify a width, height and alignment
.. vimeo:: 37818131
:width: 800
:height: 500
:align: centerWhich will result in:
<div class="vimeo" align="center">
<iframe width="800" height="500" src="https://player.vimeo.com/video/37818131" frameborder="0"
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>Additionally, this plugin allows to specify the following Vimeo player URL parameters as options (values are passed through):
autopauseautoplaybackgroundbylinecolorcontrolsdntfunloopmutedplaysinlineportraitqualityspeedttexttracktitletransparent
If you encounter Vimeo player URL parameters not supported by this
plugin, you can also specify those appended to the video ID
(e.g., .. vimeo:: 37818131?another_option=another_value&foo=bar).
MIT license.