diff options
author | zhixuan <59254886+zhixuan2333@users.noreply.github.com> | 2021-09-24 21:32:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 21:32:53 +0300 |
commit | 57bfea833850e0565cf81d9a26c52359427151a2 (patch) | |
tree | cc45279c8dc7ffd8c46fa736b864616c4c646bb5 | |
parent | 7845f5dfe73b60e725182bc83fb7800d921e100b (diff) |
fix(shortcodes): mixed content error with bilibili and tencent video (#365)
-rw-r--r-- | exampleSite/content/post/rich-content/index.md | 4 | ||||
-rw-r--r-- | layouts/shortcodes/bilibili.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/tencent.html | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/exampleSite/content/post/rich-content/index.md b/exampleSite/content/post/rich-content/index.md index 407c539..af8a390 100644 --- a/exampleSite/content/post/rich-content/index.md +++ b/exampleSite/content/post/rich-content/index.md @@ -32,3 +32,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme ## Vimeo Simple Shortcode {{< vimeo_simple 48912912 >}} + +## bilibilibi Shortcode + +{{< bilibili av498363026 >}} diff --git a/layouts/shortcodes/bilibili.html b/layouts/shortcodes/bilibili.html index 602406c..cb72e43 100644 --- a/layouts/shortcodes/bilibili.html +++ b/layouts/shortcodes/bilibili.html @@ -13,7 +13,7 @@ {{ end }}
<div class="video-wrapper">
- <iframe src="//player.bilibili.com/player.html?{{ $basicQuery | safeURL }}&{{ $videoQuery | safeURL }}"
+ <iframe src="https://player.bilibili.com/player.html?{{ $basicQuery | safeURL }}&{{ $videoQuery | safeURL }}"
scrolling="no"
frameborder="no"
framespacing="0"
diff --git a/layouts/shortcodes/tencent.html b/layouts/shortcodes/tencent.html index baf5f3c..463dec5 100644 --- a/layouts/shortcodes/tencent.html +++ b/layouts/shortcodes/tencent.html @@ -1,6 +1,6 @@ {{ $vid := .Get 0 }}
<div class="video-wrapper">
- <iframe src="http://v.qq.com/txp/iframe/player.html?vid={{ $vid }}&auto=0"
+ <iframe src="https://v.qq.com/txp/iframe/player.html?vid={{ $vid }}&auto=0"
scrolling="no"
frameborder="no"
framespacing="0"
|