Browse Source

Clarify where to use shortcodes

index-subcmd
Vincent Prouillet 5 years ago
parent
commit
f920b873b8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      docs/content/documentation/content/shortcodes.md

+ 2
- 1
docs/content/documentation/content/shortcodes.md View File

@@ -8,7 +8,8 @@ HTML to add some styling for example.

To solve this, Gutenberg borrows the concept of [shortcodes](https://codex.wordpress.org/Shortcode_API)
from WordPress.
In our case, the shortcode corresponds to a template that is defined in the `templates/shortcodes` directory or a built-in one.
In our case, the shortcode corresponds to a template that is defined in the `templates/shortcodes` directory or a built-in one that can
be used in a Markdown file. If you want to use something similar to shortcodes in your templates, try [Tera macros](https://tera.netlify.com/docs/templates/#macros).

## Writing a shortcode
Let's write a shortcode to embed YouTube videos as an example.


Loading…
Cancel
Save