mirror of
https://github.com/getzola/zola
synced 2024-12-12 13:22:29 +00:00
Clarify shortcode usage (#2600)
This commit is contained in:
parent
43af34ec54
commit
bbd8dd1900
1 changed files with 2 additions and 2 deletions
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in a new issue