Fix illegal character in render-link.html example

Closes #993
This commit is contained in:
Agrim Prasad 2019-12-28 23:33:23 +08:00 committed by Bjørn Erik Pedersen
parent 7a85c789b9
commit ca06c9a56e

View File

@ -131,7 +131,7 @@ A Markdown example for an inline-style link with title:
A very simple template example given the above: A very simple template example given the above:
{{< code file="layouts/_default/_markup/render-link.html" >}} {{< code file="layouts/_default/_markup/render-link.html" >}}
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination http }} target="_blank"{{ end }}>{{ .Text }}</a> <a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a>
{{< /code >}} {{< /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. [^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.