mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Update configuration-markup.md (add rel="noopener")
This commit is contained in:
1 parent
95bd7974ee
commit
2ce21c34b2
1 file changed
+1
-1
@@ -134,7 +134,7 @@ PlainText
|
|||||||
Here is a code example for how the render-link.html template could look:
|
Here is a code example for how the render-link.html template could look:
|
||||||
|
|
||||||
{{< 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 | safeHTML }}</a>
|
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
#### Image Markdown example:
|
#### Image Markdown example:
|
||||||
|
|||||||
Reference in new issue
Block a user