Skip to content

Commit

Permalink
fix(shortcodes): mixed content error with bilibili and tencent video (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixuan2333 authored Sep 24, 2021
1 parent 7845f5d commit 57bfea8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions exampleSite/content/post/rich-content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 >}}
2 changes: 1 addition & 1 deletion layouts/shortcodes/bilibili.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/tencent.html
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 57bfea8

Please sign in to comment.