summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Turski <yacoob@gmail.com>2014-08-27 10:36:26 +0100
committerspf13 <steve.francia@gmail.com>2014-08-28 12:59:52 -0400
commit7de320920c5f672d4538c0510930aad571d2a22d (patch)
tree67aaca2ce72c0e46b6f847a047af4c64bee809c0
parent6f9db4a784a58c150863ada2cfd79090a0227d47 (diff)
Shortcodes are content files specific.
This fixes spf13/hugo#440.
-rw-r--r--docs/content/extras/shortcodes.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/content/extras/shortcodes.md b/docs/content/extras/shortcodes.md
index 644153fae..3d0c7d92a 100644
--- a/docs/content/extras/shortcodes.md
+++ b/docs/content/extras/shortcodes.md
@@ -22,8 +22,10 @@ apply styling for display.
To avoid both of these limitations Hugo created shortcodes.
-A shortcode is a simple snippet inside a markdown file that Hugo will render
-using a predefined template.
+A shortcode is a simple snippet inside a content file that Hugo will render
+using a predefined template. Note that shortcodes will not work in template
+files - if you need a functionality like that in a template, you most likely
+want a [partial template](/templates/partial) instead.
## Using a shortcode