From 239d68f94c6250276850fbe95eaa6cdd5c38fb26 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 16 Nov 2024 19:32:18 +0300 Subject: Своя тема, полностью всё переделал MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layouts/shortcodes/bilibili.html | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/bilibili.html (limited to 'themes/hugo-theme-stack/layouts/shortcodes/bilibili.html') diff --git a/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html b/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html deleted file mode 100644 index cb72e43..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ $vid := (.Get 0) }} -{{ $videopage := default 1 (.Get 1) }} -{{ $basicQuery := querify "page" $videopage "high_quality" 1 "as_wide" 1 }} -{{ $videoQuery := "" }} - -{{ if strings.HasPrefix (lower $vid) "av" }} - {{ $videoQuery = querify "aid" (strings.TrimPrefix "av" (lower $vid)) }} -{{ else if strings.HasPrefix (lower $vid) "bv" }} - {{ $videoQuery = querify "bvid" $vid }} -{{ else }} -

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

-

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

-{{ end }} - -
- -
-- cgit v1.2.3