diff --git a/layouts/partials/link-block.html b/layouts/partials/link-block.html index 554565a..54e0fe5 100644 --- a/layouts/partials/link-block.html +++ b/layouts/partials/link-block.html @@ -4,6 +4,15 @@ {{ $logo_file = "wechat.png"}} {{ end }} +{{ if eq 1 (len (findRE `(https?://)?(www\.)?bilibili\.com/video/([-a-zA-Z0-9()@:%\+.~#?&/=_]*)` .a)) }} + {{ $logo_file = "bilibili.png"}} +{{ end }} + +{{ if eq 1 (len (findRE `(https?://)?(www\.)?github\.com([-a-zA-Z0-9()@:%\+.~#?&/=_]*)` .a)) }} + {{ $logo_file = "github.png"}} +{{ end }} + +