parent
a2f26ac7ad
commit
5bc30a1fd9
3 changed files with 12 additions and 1 deletions
@ -0,0 +1,8 @@ |
||||
'use strict'; |
||||
|
||||
function postVideo(args) { |
||||
let src = args[0].trim() |
||||
return `<video controls preload width='100%' height='100%'><source src='${src}' type='video/mp4'>Your browser does not support the video tag.</video>`; |
||||
} |
||||
|
||||
hexo.extend.tag.register('video', postVideo); |
Loading…
Reference in new issue