diff --git a/content/en/getting-started/configuration-markup.md b/content/en/getting-started/configuration-markup.md index a0791ee6e..c69bbb6ed 100644 --- a/content/en/getting-started/configuration-markup.md +++ b/content/en/getting-started/configuration-markup.md @@ -125,17 +125,31 @@ Text PlainText : The plain variant of the above. -A Markdown example for an inline-style link with title: +#### Link with title Markdown example : ```md [Text](https://www.gohugo.io "Title") ``` -A very simple template example given the above: +Here is a code example for how the render-link.html template could look: {{< code file="layouts/_default/_markup/render-link.html" >}} {{ .Text }} {{< /code >}} +#### Image Markdown example: + +```md +![Text](https://d33wubrfki0l68.cloudfront.net/c38c7334cc3f23585738e40334284fddcaf03d5e/2e17c/images/hugo-logo-wide.svg "Title") +``` + +Here is a code example for how the render-image.html template could look: + +{{< code file="layouts/_default/_markup/render-image.html" >}} +

+ {{ .Text }} +

+{{< /code >}} + [^hooktemplate]: It's currently only possible to have one set of render hook templates, e.g. not per `Type` or `Section`. We may consider that in a future version.