mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 08:43:40 +00:00
Tweak theme
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{{- $isExternal := strings.HasPrefix .Destination "http" -}}
|
||||
<a
|
||||
href="{{ .Destination | safeURL }}"
|
||||
{{ with .Title }}
|
||||
title="{{ . }}"
|
||||
{{ end }}
|
||||
{{ if $isExternal }}
|
||||
class="link--external" target="_blank" rel="noreferrer"
|
||||
{{ end }}
|
||||
>
|
||||
{{- .Text | safeHTML -}}
|
||||
</a>
|
||||
{{- /* Trimm trailing whitespace */ -}}
|
Reference in New Issue
Block a user