💄 Support more of analytics engine such as baidu, google, busuanzi and so on, then add new web information widget. close #19
This commit is contained in:
@@ -3,14 +3,19 @@
|
||||
{{ $fmt := "%s/%s@%s/%s" }}
|
||||
|
||||
{{ $npm := .res.name }}
|
||||
{{ with .res.alias }}
|
||||
{{ with .res.alias2 }}
|
||||
{{ $npm = . }}
|
||||
{{ end }}
|
||||
{{ $file := .res.file }}
|
||||
{{ if eq .vendor "cdnjs" }}
|
||||
{{ $file = replaceRE `(dist|lib|source\/js)\/` "" .res.file }}
|
||||
{{ $fmt = "%s/%s/%s/%s" }}
|
||||
{{ end }}
|
||||
{{- $file := .res.file }}
|
||||
|
||||
{{- if eq .vendor "cdnjs" }}
|
||||
{{- with .res.alias }}
|
||||
{{- $npm = . }}
|
||||
{{- end }}
|
||||
{{- $file = replaceRE `(dist|lib|source\/js)\/` "" .res.file }}
|
||||
{{- $fmt = "%s/%s/%s/%s" }}
|
||||
{{- end }}
|
||||
|
||||
{{ $pluginRes := printf $fmt .router $npm .res.version $file }}
|
||||
|
||||
{{ return $pluginRes }}
|
||||
Reference in New Issue
Block a user