Skip to main content

Easily embed Vimeo videos in your posts

Project description

Pelican Vimeo is a plugin to enabled you to embed Vimeo videos in your pages and articles.

Installation

To install pelican-vimeo, simply install it from PyPI:

$ pip install pelican-vimeo

Then enabled it in your pelicanconf.py

PLUGINS = [
    # ...
    'pelican_vimeo',
    # ...
]

Usage

In your article or page, you simply need to add a line to embed you video.

.. vimeo:: VIDEO_ID

Which will result in:

<div class="vimeo" align="left">
<iframe width="420" height="315" src="https://player.vimeo.com/video/VIDEO_ID" frameborder="0"></iframe>
</div>

Additional arguments

You can also specify a width, height and alignment

.. vimeo:: 37818131
:width: 800
:height: 500
:align: center

Which will result in:

<div class="vimeo" align="center">
<iframe width="800" height="500" src="https://player.vimeo.com/video/37818131" frameborder="0"></iframe>
</div>

License

MIT license.

Release history Release notifications

This version
History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pelican_vimeo-0.1.1-py2.py3-none-any.whl (6.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Nov 16, 2015
pelican_vimeo-0.1.1.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Nov 16, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page