documentation/layouts/shortcodes/bilibili.html

10 lines
431 B
HTML

<figure>
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
<iframe src="https://player.bilibili.com/player.html?aid={{ .Get "id" }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="{{ .Get "caption" }}"></iframe>
</div>
<figcaption>
<p>{{- .Get "caption" | markdownify -}}</p>
</figcaption>
</figure>