From: Jakub Turski <yacoob@gmail.com> Date: Wed, 27 Aug 2014 09:36:26 +0000 (+0100) Subject: Shortcodes are content files specific. X-Git-Tag: v0.12~21 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7de32092;p=brevno-suite%2Fhugo Shortcodes are content files specific. This fixes spf13/hugo#440. --- diff --git a/docs/content/extras/shortcodes.md b/docs/content/extras/shortcodes.md index 644153fa..3d0c7d92 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