From b8fba275b323d4158e8982835afcf39935a6c573 Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Sun, 19 Feb 2017 02:15:42 -0600 Subject: [PATCH] Add shortcode from live site for readfile example in local files template --- content/templates/local-file-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/templates/local-file-templates.md b/content/templates/local-file-templates.md index 39ceaee97..a34253b7f 100644 --- a/content/templates/local-file-templates.md +++ b/content/templates/local-file-templates.md @@ -41,7 +41,7 @@ So, let's create a new shortcode using `readDir`: **layouts/shortcodes/directoryindex.html** ```html -{{}} +{{< readfile "layouts/shortcodes/directoryindex.html" >}} ``` For the files in any given directory, this shortcode usefully lists their basenames and sizes, while providing links to them.