From 084804447402ab99b51bf49f0da809bee8c16339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 28 Oct 2018 00:24:49 +0200 Subject: [PATCH] Update shortcode-templates.md --- content/en/templates/shortcode-templates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/en/templates/shortcode-templates.md b/content/en/templates/shortcode-templates.md index 3244c599e..ce58c686e 100644 --- a/content/en/templates/shortcode-templates.md +++ b/content/en/templates/shortcode-templates.md @@ -34,6 +34,14 @@ Hugo's built-in shortcodes cover many common, but not all, use cases. Luckily, H To create a shortcode, place an HTML template in the `layouts/shortcodes` directory of your [source organization][]. Consider the file name carefully since the shortcode name will mirror that of the file but without the `.html` extension. For example, `layouts/shortcodes/myshortcode.html` will be called with either `{{}}` or `{{%/* myshortcode /*/%}}` depending on the type of parameters you choose. +You can organize your shortcodes in subfolders, e.g. in `layouts/shortcodes/boxes`. These shortcodes would then be accessible with their relative path, e.g: + +``` +{{< boxes/square >}} +``` + +Note the forward slash. + ### Shortcode Template Lookup Order Shortcode templates have a simple [lookup order][]: