diff --git a/layouts/partials/link-block.html b/layouts/partials/link-block.html index ae86e25..60d2bb1 100644 --- a/layouts/partials/link-block.html +++ b/layouts/partials/link-block.html @@ -1,3 +1,4 @@ +{{ $resource_type := "link" }} {{ $logo_file := "default_link_logo.png" }} {{ if eq 1 (len (findRE `(https?://)?mp\.weixin\.qq\.com([-a-zA-Z0-9()@:%\+.~#?&/=_]*)` .a)) }} @@ -20,6 +21,20 @@ {{ $logo_file = "zhihu.svg"}} {{ end }} +{{ $netease_music_song_id := "0" }} +{{ if eq 1 (len (findRE `(https?://)?music\.163\.com/song\?id=([0-9]*)([-a-zA-Z0-9()@:%\+.~#?&/=_]*)` .a)) }} + {{ $resource_type = "netease_music" }} + {{ $netease_music_song_id = replaceRE `(https?://)?music\.163\.com/song\?id=([0-9]*)([-a-zA-Z0-9()@:%\+.~#?&/=_]*)` "$2" .a }} +{{ end }} + +{{ if eq "netease_music" $resource_type}} + +{{ end }} + +{{ if eq "link" $resource_type }}
\ No newline at end of file + +{{ end }} \ No newline at end of file