fix(shortcodes): mixed content error with bilibili and tencent video (#365)

This commit is contained in:
zhixuan 2021-09-25 03:32:53 +09:00 committed by GitHub
parent 7845f5dfe7
commit 57bfea8338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -32,3 +32,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Vimeo Simple Shortcode ## Vimeo Simple Shortcode
{{< vimeo_simple 48912912 >}} {{< vimeo_simple 48912912 >}}
## bilibilibi Shortcode
{{< bilibili av498363026 >}}

View File

@ -13,7 +13,7 @@
{{ end }} {{ end }}
<div class="video-wrapper"> <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" scrolling="no"
frameborder="no" frameborder="no"
framespacing="0" framespacing="0"

View File

@ -1,6 +1,6 @@
{{ $vid := .Get 0 }} {{ $vid := .Get 0 }}
<div class="video-wrapper"> <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" scrolling="no"
frameborder="no" frameborder="no"
framespacing="0" framespacing="0"