From e1ca9c7649ba55ac359aff2680fe34a54b78d9c3 Mon Sep 17 00:00:00 2001 From: Jakub Turski Date: Wed, 27 Aug 2014 10:36:26 +0100 Subject: [PATCH] Shortcodes are content files specific. This fixes spf13/hugo#440. --- content/extras/shortcodes.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/extras/shortcodes.md b/content/extras/shortcodes.md index 644153fae..3d0c7d92a 100644 --- a/content/extras/shortcodes.md +++ b/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