We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87db7b commit 230fad5Copy full SHA for 230fad5
layouts/_default/_markup/render-link.html
@@ -1,4 +1,5 @@
1
-{{- if (not (or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "#"))) }}
+{{ $isExternal := (strings.HasPrefix .Destination "http") }}
2
+{{- if (not (or $isExternal (strings.HasPrefix .Destination "#"))) }}
3
{{ $style := "" }}
4
{{ with $.PageInner.GetPage (index (strings.Split .Destination "#") 0) }}
5
{{ else }}
@@ -16,6 +17,7 @@
16
17
{{- with .Title }} title="{{ . }}"{{ end -}}
18
{{- if (strings.HasPrefix .Destination "http") }} target="_blank" rel="external"{{ end -}}
19
>
20
+ {{ if $isExternal }}🔗 {{ end }}
21
{{- with .Text }}{{ . }}{{ end -}}
22
</a>
23
{{ end -}}
0 commit comments