diff --git a/layouts/partials/link-block.html b/layouts/partials/link-block.html index 54e0fe5..ae86e25 100644 --- a/layouts/partials/link-block.html +++ b/layouts/partials/link-block.html @@ -12,7 +12,13 @@ {{ $logo_file = "github.png"}} {{ end }} - +{{ if eq 1 (len (findRE `(https?://)?(www\.)?zhihu\.com/question/([0-9]*)/answer/[0-9]*` .a)) }} + {{ $logo_file = "zhihu.svg"}} +{{ end }} + +{{ if eq 1 (len (findRE `(https?://)?zhuanlan\.zhihu\.com/p/([0-9]*)` .a)) }} + {{ $logo_file = "zhihu.svg"}} +{{ end }}