File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,12 @@ <h2>{{ T "community_develop" }}</h2>
2626< ul >
2727{{ range . -}}
2828 < li title ="{{ .name }} ">
29- < a target ="_blank " rel ="noopener " href ="{{ .url }} "> < i class ="{{ .icon }} "> </ i > {{ .name }}</ a > :
29+ {{ $isExternal := hasPrefix .url "http" -}}
30+ < a href ="{{ .url }} "
31+ {{- if $isExternal }} target ="_blank " rel ="noopener " {{- end -}}
32+ > {{/**/ -}}
33+ < i class ="{{ .icon }} "> </ i > {{ .name -}}
34+ </ a > :
3035 {{ .desc }}
3136 </ li >
3237{{ end }}
Original file line number Diff line number Diff line change 22 {{ range . }}
33 {{ $isExternal := hasPrefix .url "http" -}}
44 < li class ="td-footer__links-item " data-bs-toggle ="tooltip " title ="{{ .name }} " aria-label ="{{ .name }} ">
5- < a
6- {{- if $isExternal }} target ="_blank " rel ="noopener " {{- end -}}
7- {{ /**/}} href="{{ .url }} " aria-label ="{{ .name }} "
5+ < a href ="{{ .url }} " aria-label ="{{ .name }} "
86 {{- with .rel }} rel ="{{ . }} " {{- end -}}
7+ {{ if $isExternal }} target ="_blank " rel ="noopener " {{- end -}}
98 >
109 < i class ="{{ .icon }} "> </ i >
1110 </ a >
You can’t perform that action at this time.
0 commit comments