feat: add Bilibili shortcode

This commit is contained in:
George Cushen committed 2023-10-22 23:01:23 +01:00
1 parent 24a7641f41
commit 110377e4b8
4 files changed
+42 -20

No files matched your search

@@ -44,3 +44,22 @@ details p {
.dark details p {
border-left: 1px solid rgba(255, 255, 255, 0.8);
}
// Bilibili Video
.bilibili {
position: relative;
width: 100%;
height: auto;
margin: 1rem auto;
text-align: center;
iframe {
position: absolute;
width: 100%;
height: 100%;
border: none;
left: 0;
top: 0;
}
}
@@ -0,0 +1,3 @@
<div class="bilibili">
<iframe src="//player.bilibili.com/player.html?bvid={{ .Get `id` }}&page={{ .Get `p` | default 1 }}" allow="fullscreen"></iframe>
</div>