summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/page/HasShortcode.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/page/HasShortcode.md')
-rw-r--r--docs/content/en/methods/page/HasShortcode.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/methods/page/HasShortcode.md b/docs/content/en/methods/page/HasShortcode.md
index 616b6de09..2e585da31 100644
--- a/docs/content/en/methods/page/HasShortcode.md
+++ b/docs/content/en/methods/page/HasShortcode.md
@@ -29,7 +29,7 @@ By example, let's use [Plotly] to render a chart:
The shortcode is simple:
-```go-html-template {file="layouts/shortcodes/plotly.html"}
+```go-html-template {file="layouts/_shortcodes/plotly.html"}
{{ $id := printf "plotly-%02d" .Ordinal }}
<div id="{{ $id }}"></div>
<script>
@@ -39,7 +39,7 @@ The shortcode is simple:
Now we can selectively load the required JavaScript on pages that call the "plotly" shortcode:
-```go-html-template {file="layouts/_default/baseof.html"}
+```go-html-template {file="layouts/baseof.html"}
<head>
...
{{ if .HasShortcode "plotly" }}