Easily embed Time.Graphics timelines in your Pelican articles
Project description
Time.Graphics plugin for Pelican: A Plugin for Pelican
Easily embed Time.Graphics timelines in your Pelican articles
Installation
This plugin can be installed via:
pip install pelican-timegraphics-plugin
Next add it to the PLUGINS
section of pelicanconf.py
.
PLUGINS = [
'...',
'pelican.plugins.timegraphics'
'...',
]
Usage
In your articles, just add lines to your posts that look like:
[timegraphics:id=123456,width=100%,height=400,allowfullscreen=1,frameborder=0]
The resulting html will look like
<iframe src="https://time.graphics/embed?v=1&id=123456" width="100%" height="400" frameborder="0" allowfullscreen></iframe>
<a style="font-size: 12px; text-decoration: none;" title="Powered by Time.Graphics" href="https://time.graphics">Powered by Time.Graphics</a></div>
Settings
TIMEGRAPHICS_DEFAULT_WIDTH
The default with of a timeline. Default is '100%'
- Can be overruled on each timeline with the
width
parameter
TIMEGRAPHICS_DEFAULT_HEIGHT
- The default height of a timeline. Default is
'400'
- Can be overruled on each timeline with the
height
parameter
TIMEGRAPHICS_ALLOW_FULLSCREEN
- Sets the default on whether users of your site can view timelines in fullscreen.
- Allowed values are
'0'
and'1'
- Default is
'1'
- Can be overruled on each timeline with the
allowfullscreen
parameter
TIMEGRAPHICS_SHOW_FRAMEBORDER
- Whether to show a border around each timeline
- Allowed values are
'0'
and'1'
- Default is
'0'
- Can be overruled on each timeline with the
frameborder
parameter
TIMEGRAPHICS_SHOW_POWERED_BY
- Whether to show "Powered by Time.Graphics" under the timeline
- Allowed values are
True
andFalse
- Default is
True
Contributing
Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on existing issues.
To start contributing to this plugin, review the Contributing to Pelican documentation, beginning with the Contributing Code section.
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
Built Distribution
Hashes for pelican-timegraphics-plugin-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07371bdb7bb7541e212bade4a11b315790f99975247c2deef55e227997db762e |
|
MD5 | 6dc4ce085932e6984d42dcaf1a3705de |
|
BLAKE2b-256 | 44373696a6de8a4a982323de7c4dfc4141e4919046a6f4df899f1f87e97aa81c |
Hashes for pelican_timegraphics_plugin-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 444d3f5697f1de916c04f5f97d654e3cbb2e24568435b6a8529cefd8b371a47d |
|
MD5 | 8abef152e7ed744b2b119a2a9b5c8eea |
|
BLAKE2b-256 | 440482013ce230622861fd87d6efa863b2a3d8f2acead4b85c2d10f8818e7fc4 |