From 6cea660c2d97689aec39788e05d098f7e49c70d9 Mon Sep 17 00:00:00 2001 From: FarseaSH Date: Fri, 6 Aug 2021 18:29:10 +0800 Subject: [PATCH] add github and bilibili --- layouts/partials/link-block.html | 9 +++++++++ static/link-logos/github.png | Bin 0 -> 4268 bytes 2 files changed, 9 insertions(+) create mode 100644 static/link-logos/github.png 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 }} + +