From f78cf64909558e1c46b3ebfb52ef9d0ade39fa50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 30 Sep 2017 11:40:52 +0200 Subject: [PATCH] Fix code example --- content/contribute/documentation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/contribute/documentation.md b/content/contribute/documentation.md index e717d4b72..1bde791e9 100644 --- a/content/contribute/documentation.md +++ b/content/contribute/documentation.md @@ -143,8 +143,7 @@ This example HTML code block tells Hugo users the following: 2. This snippet is complete enough to be downloaded and implemented in a Hugo project, as demonstrated by `download="single.html"`. ``` -{{%/* code file="layouts/_default/single.html" download="single.html" */%}} -``` +{{}} {{ define "main" }}
@@ -162,14 +161,14 @@ This example HTML code block tells Hugo users the following:
{{ end }} -``` -{{%/* /code */%}} +{{}} ``` ##### Example 'code' Display The output of this example will render to the Hugo docs as follows: +```html {{< code file="layouts/_default/single.html" download="single.html" >}} {{ define "main" }}
@@ -189,6 +188,7 @@ The output of this example will render to the Hugo docs as follows:
{{ end }} {{< /code >}} +```