website/layouts/shortcodes/contentLink.html
liuboaibc 2f70a4a381 add content link shortcode
Signed-off-by: liuboaibc <kukudehero@gmail.com>
2021-05-13 15:27:43 +08:00

1 line
155 B
HTML

<a href="{{ .Get 0 | safeURL | relLangURL }}"{{ if strings.HasPrefix (.Get 0) "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Get 1 }}</a>