diff options
| author | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
| commit | 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch) | |
| tree | 62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/_markup/render-link.html | |
| parent | 3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff) | |
chore: move templates out of site repo
Diffstat (limited to 'layouts/_markup/render-link.html')
| -rw-r--r-- | layouts/_markup/render-link.html | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/layouts/_markup/render-link.html b/layouts/_markup/render-link.html deleted file mode 100644 index 2e8d32f7..00000000 --- a/layouts/_markup/render-link.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ $url := .Destination | safeURL }} -{{ if or (strings.HasPrefix $url "http://") (strings.HasPrefix $url "https://") }} - <a href="{{ $url }}" class="external-link" target="_blank" rel="noopener noreferrer">{{ .Text }}</a> -{{ else }} - <a href="{{ $url }}">{{ .Text }}</a> -{{ end }} |
