Add post: 暗黑能天使
This commit is contained in:
7
layouts/partials/utils/get-video.html
Normal file
7
layouts/partials/utils/get-video.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ if or (hasPrefix .url "//") (or (hasPrefix .url "http://") (hasPrefix .url "https://")) }}
|
||||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
|
||||
<iframe src="{{ .url }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
{{ else if .url }}
|
||||
<video class="w-full" src="{{ .url | absURL }}" controls></video>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user