Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
6 lines
249 B
HTML
6 lines
249 B
HTML
{{- /* attributes for a link to this address: external ones open in a new tab */ -}}
|
|
{{- if findRE `(?i)^(https?:)?//` (string .) -}}
|
|
{{- return (` target="_blank" rel="noopener"` | safeHTMLAttr) -}}
|
|
{{- end -}}
|
|
{{- return ("" | safeHTMLAttr) -}}
|