mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 20:24:49 -04:00
parent
7a85c789b9
commit
ca06c9a56e
@ -131,7 +131,7 @@ A Markdown example for an inline-style link with title:
|
||||
A very simple template example given the above:
|
||||
|
||||
{{< 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 >}}
|
||||
|
||||
[^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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user