Skip to main content

Easily embed YouTube videos in your posts

Project description

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

Installation

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

$ pip install pelican-youtube

Then enabled it in your pelicanconf.py

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

Usage

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

.. youtube:: VIDEO_ID

Which will result in:

<div class="youtube" align="left">
<iframe width="420" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0"></iframe>
</div>

Additional arguments

You can also specify a width, height and alignment

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

Which will result in:

<div class="youtube" align="center">
<iframe width="800" height="500" src="https://www.youtube.com/embed/37818131" frameborder="0"></iframe>
</div>

License

MIT license.

Project details


Download files

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

Source Distribution

pelican_youtube-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pelican_youtube-0.1.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

pelican_youtube-0.1.0-py2.7.egg (5.9 kB view details)

Uploaded Egg

File details

Details for the file pelican_youtube-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pelican_youtube-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b4c4b0d41a01e4a79bccdd6afc3fc9392865bc09eaf552207d593128bbc539a
MD5 15c7424b8d9c4bd21e0d0e5c8871295e
BLAKE2b-256 15a443d44e20f3ddb556a5b3dd39ae7f994986a36a78e880ad3258c15c646c8d

See more details on using hashes here.

File details

Details for the file pelican_youtube-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pelican_youtube-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b5f603a3f3c7db5d9b44d365caced7e56cfbb2d519645f11525f4aefb98a6f32
MD5 8aecd5c7d32912418addf8c558d43f46
BLAKE2b-256 4154555fc060fc57bce3aadcb5226a5faba0aeb1c5c4aab61fd128d3641279a8

See more details on using hashes here.

File details

Details for the file pelican_youtube-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for pelican_youtube-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 debabc079cae63cd32752885199597ab38d90fba8b21bd8163566eba0b8ee0e6
MD5 7cdaa253b9606ad11c8829cd45a72e56
BLAKE2b-256 8a2928cfe937d7942a0339bdd30f188c4ddaa4cc9cbc9bc1214937daea893b87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page