From e7a9351f7ec8ade39b9849129add7b8199534e88 Mon Sep 17 00:00:00 2001 From: FarseaSH Date: Fri, 6 Aug 2021 18:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80linklogo=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/link-block.html | 14 ++++++++++++- static/link-logos/bilibili.png | Bin 0 -> 15334 bytes static/link-logos/wechat.png | Bin 0 -> 57808 bytes static/link-logos/zhihu.svg | 34 +++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 static/link-logos/bilibili.png create mode 100644 static/link-logos/wechat.png create mode 100644 static/link-logos/zhihu.svg diff --git a/layouts/partials/link-block.html b/layouts/partials/link-block.html index 38ddb6c..554565a 100644 --- a/layouts/partials/link-block.html +++ b/layouts/partials/link-block.html @@ -1,8 +1,20 @@ +{{ $logo_file := "default_link_logo.png" }} + +{{ if eq 1 (len (findRE `(https?://)?mp\.weixin\.qq\.com([-a-zA-Z0-9()@:%\+.~#?&/=_]*)` .a)) }} + {{ $logo_file = "wechat.png"}} +{{ end }} + +