Skip to content

Kirby 5.0.4

gist()

Embeds a Github Gist

gist(string $url, string|null $file = null): string

Parameters

Name Type Default
$urlrequired string no default value
$file stringornull null

Return type

string

Examples

<?= gist('https://gist.github.com/bastianallgeier/b79615a9f7ca76c810b7') ?>