mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 18:18:09 +00:00
feat: add Bilibili shortcode
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user