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
Release history Release notifications | RSS feed
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 hashes)
Built Distributions
Close
Hashes for pelican_youtube-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f603a3f3c7db5d9b44d365caced7e56cfbb2d519645f11525f4aefb98a6f32 |
|
MD5 | 8aecd5c7d32912418addf8c558d43f46 |
|
BLAKE2b-256 | 4154555fc060fc57bce3aadcb5226a5faba0aeb1c5c4aab61fd128d3641279a8 |