Clarify shortcode usage (#2600)

This commit is contained in:
Rik Huijzer 2024-08-15 14:25:42 +02:00 committed by GitHub
parent 43af34ec54
commit bbd8dd1900
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,8 +35,8 @@ following:
```
This template is very straightforward: an iframe pointing to the YouTube embed URL wrapped in a `<div>`.
In terms of input, this shortcode expects at least one variable: `id`. Because the other variables
are in an `if` statement, they are optional.
In terms of input, this shortcode expects at least one variable: `id` ([example here](#shortcodes-without-body)).
Because the other variables are in an `if` statement, they are optional.
That's it. Zola will now recognise this template as a shortcode named `youtube` (the filename minus the `.html` extension).