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 >}} +```