diff --git a/layouts/shortcodes/bilibili.html b/layouts/shortcodes/bilibili.html new file mode 100644 index 0000000..d991aee --- /dev/null +++ b/layouts/shortcodes/bilibili.html @@ -0,0 +1,18 @@ +{{ $vid := (.Get 0) }} +{{ $videopage := (.Get 1) }} +{{ if (strings.HasPrefix $vid "av") }} +
+ +
+{{ else if (strings.HasPrefix $vid "AV") }} +
+ +
+{{ else if (strings.HasPrefix $vid "BV" )}} +
+ +
+{{ else }} +

Bilibili 视频av号或BV号错误!请检查视频av号或BV号是否正确

+

当前视频av或BV号:{{ $vid }},视频分P:{{ $videopage }}

+{{ end }} \ No newline at end of file