A Pelican plugin that wrapps references to twitter et al. Forked from pelican-advance-embed-tweet
Project description
Embedding tweets into your Pelican blog posts. This repo is an advance version of the plugin from lqez which hasn’t the config for the style.
Author | Chris Rose |
||
---|---|---|
Homepage |
||
Github |
||
Mastodon |
# How to use it
Install the plugin with pip install pelican-embed-microblog
Put pelican_embed_microblog into plugin list of settings.
PLUGINS = ['pelican_embed_microblog']
Add your config into the pelicanconf.py
Config
The config implement the Twitter Api.
Config Label |
Description |
---|---|
TWITTER_CARDS |
When set to hidden, links in a Tweet are not expanded to photo, video, or link previews. |
TWITTER_THEME |
When set to none, only the cited Tweet will be displayed even if it is in reply to another Tweet. |
TWITTER_CONVERS ATION |
When set to dark, displays Tweet with light text over a dark background. |
TWITTER_LINK_C OLOR |
Adjust the color of Tweet links with a hexadecimal color value. |
TWITTER_WIDTH |
The maximum width of the rendered Tweet in whole pixels. This value should be between 250 and 550 pixels. |
TWITTER_ALIGN |
Float the Tweet left, right, or center relative to its container. Typically set to allow text or other content to wrap around the Tweet. |
TWITTER_LANG |
A supported Twitter language code. Loads text components in the specified language. Note: does not affect the text of the cited Tweet. |
TWITTER_DNT |
When set to true, the Tweet and its embedded page on your site are not used for purposes that include personalized suggestions and personalized ads. |
Acknowledgments
Thanks to lqez for the original, and to fundor333 who forked the original embed tweet plugin, on which this is based.
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_embed_microblog-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65fcd77141bf2db2f6c2e8c451895a91152623e665c8f3ade937d72b2f87854e |
|
MD5 | 520531d1bc8ad82d007b2c5f1379a320 |
|
BLAKE2b-256 | 0ab28c5c5cede03b4605cf568e9279212ac4ee1f75c3635c2ec782ef8fb5d34e |
Hashes for pelican_embed_microblog-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1076ea142baf842aa9951de7cf00c748d6ff4dc58765760a3d499f766b097722 |
|
MD5 | 89954a6faea3fe58fc20d1413d2c590c |
|
BLAKE2b-256 | 93330add47d5a8da39cedc62e3eaebf2930db60c59091fd25f780e956b6b6177 |