mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
docs: typos II #682
This commit is contained in:
parent
dd692f79ee
commit
842b96ef57
1 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ Certain shortcodes make use of additional JavaScript files. The theme only loads
|
|||
|
||||
Say you want to add a shortcode `myshortcode` that also requires the `jquery` JavaScript library.
|
||||
|
||||
1. Write the shortcode file `layouts/shortcode/myshortcode.html` and add the following line
|
||||
1. Write the shortcode file `layouts/shortcodes/myshortcode.html` and add the following line
|
||||
|
||||
````go
|
||||
{{- .Store.Set "hasMyShortcode" true }}
|
||||
|
@ -179,7 +179,7 @@ Say you want to add a shortcode `myshortcode` that also requires the `jquery` Ja
|
|||
|
||||
Character casing is relevant!
|
||||
|
||||
- the `name` setting in your `config.toml` must match the key (that needs to be prefixed with a `has`) you used for the store in your `layouts/shortcode/myshortcode.html`.
|
||||
- the `name` setting in your `config.toml` must match the key (that needs to be prefixed with a `has`) you used for the store in your `layouts/shortcodes/myshortcode.html`.
|
||||
- the key on `params.relearn.dependencies` in your `config.toml` must match the base file name of your loader file.
|
||||
|
||||
See the `math`, `mermaid` and `openapi` shortcodes for examples.
|
||||
|
|
Loading…
Reference in a new issue