How to include video tag / mp4 videos in a Jekyll blog

牧云@^-^@ 提交于 2020-01-03 16:01:28

问题


I am not looking for a way to link to Youtube. I want to refer to a self-hosted mp4 file.

I already have {% audio my-file.mp3 %} working.

I am looking for an equivalent {% video my-file.mp4 %}.

If I use <video ... /> directly, I get an error "Liquid exception: Unknown tag 'video' in my-text.md".


Edit: I think there is an existing Octopress plugin. But how do I install this / make it known to Jekyll?


回答1:


To use the Octopress plugin, just save the video tag plugin in a _plugins folder.



来源:https://stackoverflow.com/questions/26983987/how-to-include-video-tag-mp4-videos-in-a-jekyll-blog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!