Usage
Global config
Globale Konfiguration
In the config.toml
or config.yaml
global values for the following variables can be set:
script_src
: The source from where the embed JavaScript will be loaded, defaults to https://mastodon.social/embed.js
YAML config
params:
kg_shortcodes:
mastodon:
script_src: "https://beispiel-instanz.de/embed.js"
TOML config
[params.kg_shortcodes.mastodon]
script_src = "https://beispiel-instanz.de/embed.js"
Parameters
The Mastodon shortcode takes the following arguments.
Argument | Default Value | Values | Description |
---|---|---|---|
status | - | String | Status ID taken from the URL of a toot. |
width | 400 | Number | The width of the embeded iframe |
height | 333 | Number | The height of the embeded iframe |
Example Usage
Live Example
A live example can be seen on my website
Minimal options
{{% mastodon status="https://mastodon.social/@kevingimbel/100700713283716694" %}}
All options
{{% mastodon status="https://mastodon.social/@kevingimbel/100700713283716694" width="600" height="300" %}}