lektor-twitter-embed
Lektor template filter to convert twitter links to embeds
Installation
pip install lektor-twitter-embed
Usage
{{ "https://twitter.com/MaiaFranklyn/status/1277100235928621058" | tweet }}
It is possible to pass an optional 'params' object to configure the embed. Any of the params documented at https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-oembed may be supplied
{{
"https://twitter.com/MaiaFranklyn/status/1277100235928621058" | tweet(
params={'align': 'center', 'hide_thread': 'true'}
)
}}
By default if the request to publish.twitter.com fails, your page will not build.
This behaviour can be changed so that a failed request to publish.twitter.com will fall back to rendering a link to the tweet.
{{ "https://twitter.com/lucaviftw/status/1347311486012686336" | tweet(fallback=True) }}
Release files for lektor-twitter-embed 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lektor-twitter-embed-0.2.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lektor_twitter_embed-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / lektor-twitter-embed-0.2.0.tar.gz
| Download URL | lektor-twitter-embed-0.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bee84c267541347ad2b704f731ca168fab1366ac0d482928800fc21b6a84cb3f
|
|
BLAKE2b-256 checksum How to use checksums |
099dd5d569a538f401c19f1154a6bbc5f63a9abc4e9be14e528667073788c2e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic
|
Release files / lektor_twitter_embed-0.2.0-py3-none-any.whl
| Download URL | lektor_twitter_embed-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afdaa10ebd07a68d42694cef421bd9bf8f0ab105ae58d2cca0384b18018a6436
|
|
BLAKE2b-256 checksum How to use checksums |
3a4d93d8b9db31f17060521273eb286bdda84dce3e141ec3b380685fca8abc9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.10 Linux/5.4.0-88-generic
|