Skip to content

Kirby 4.2.0

gist()

Embeds a Github Gist

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

Parameters

Name Type Default
$url * string
$file string|null null

Return type

string

Example

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