diff options
Diffstat (limited to 'docs/content/en/methods/shortcode/InnerDeindent.md')
-rw-r--r-- | docs/content/en/methods/shortcode/InnerDeindent.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/en/methods/shortcode/InnerDeindent.md b/docs/content/en/methods/shortcode/InnerDeindent.md index 0b8c8e2d8..3d7536b6b 100644 --- a/docs/content/en/methods/shortcode/InnerDeindent.md +++ b/docs/content/en/methods/shortcode/InnerDeindent.md @@ -35,7 +35,7 @@ In the example above, notice that the content between the opening and closing sh With this shortcode, calling `Inner` instead of `InnerDeindent`: -```go-html-template {file="layouts/shortcodes/gallery.html"} +```go-html-template {file="layouts/_shortcodes/gallery.html"} <div class="gallery"> {{ .Inner | strings.TrimSpace | .Page.RenderString }} </div> @@ -66,7 +66,7 @@ Hugo renders the Markdown to: Although technically correct per the CommonMark specification, this is not what we want. If we remove the indentation using the `InnerDeindent` method: -```go-html-template {file="layouts/shortcodes/gallery.html"} +```go-html-template {file="layouts/_shortcodes/gallery.html"} <div class="gallery"> {{ .InnerDeindent | strings.TrimSpace | .Page.RenderString }} </div> @@ -94,5 +94,5 @@ Hugo renders the Markdown to: ``` [commonmark]: https://commonmark.org/ -[indentation]: https://spec.commonmark.org/0.30/#indented-code-blocks +[indentation]: https://spec.commonmark.org/current/#indented-code-blocks [`Inner`]: /methods/shortcode/inner/ |