Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
5 lines
312 B
HTML
5 lines
312 B
HTML
{{- /* Markdown links: external ones open in a new tab */ -}}
|
|
{{- $external := findRE `(?i)^(https?:)?//` .Destination -}}
|
|
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $external }} target="_blank" rel="noopener"{{ end }}>{{ .Text }}</a>
|
|
{{- /* no trailing newline */ -}}
|