Merge pull request #1557 from liuboaibc/update/add-link-shortcode

add content link shortcode
This commit is contained in:
Sherlock113 2021-05-13 15:29:33 +08:00 committed by GitHub
commit dfad3db3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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