mirror of
https://github.com/getzola/zola
synced 2025-03-04 06:57:17 +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>`.
|
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
|
In terms of input, this shortcode expects at least one variable: `id` ([example here](#shortcodes-without-body)).
|
||||||
are in an `if` statement, they are optional.
|
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).
|
That's it. Zola will now recognise this template as a shortcode named `youtube` (the filename minus the `.html` extension).
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue