ref: 7de320920c5f672d4538c0510930aad571d2a22d
parent: 6f9db4a784a58c150863ada2cfd79090a0227d47
author: Jakub Turski <[email protected]>
date: Wed Aug 27 06:36:26 EDT 2014
Shortcodes are content files specific. This fixes spf13/hugo#440.
--- a/docs/content/extras/shortcodes.md
+++ b/docs/content/extras/shortcodes.md
@@ -22,8 +22,10 @@
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