如何在Jekyll博客中包含视频标签/ mp4视频 [英] How to include video tag / mp4 videos in a Jekyll blog

查看:126
本文介绍了如何在Jekyll博客中包含视频标签/ mp4视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在寻找链接到Youtube 。我想引用一个自托管的mp4文件。

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

我已经有 {%audio my-file。 mp3%} 工作。

我正在寻找等价的 {%video my-file.mp4%}

如果我直接使用< video ... /> ,我得到错误液体异常:my-text.md中的未知标签'视频'。

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

编辑:我认为现有的 Octopress插件。但是如何安装它/让它知道Jekyll?

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

推荐答案

要使用Octopress插件,只需保存视频标记插件 _plugins 文件夹。

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

这篇关于如何在Jekyll博客中包含视频标签/ mp4视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆