Mastodon

A shortcode for including Mastodon statuses on your website

Usage

Global config

Globale Konfiguration

In the config.toml or config.yaml global values for the following variables can be set:

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.

ArgumentDefault ValueValuesDescription
status-String Status ID taken from the URL of a toot.
width400NumberThe width of the embeded iframe
height333NumberThe 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" %}}