开发工具 请教,Octopress 怎么读取 github 的 Repository 作为代码片段?

hi54yt · October 01, 2012 · Last by hi54yt replied at October 02, 2012 · 3886 hits

就是这哥们博客里的效果: http://geron.heroku.com/blog/2012/03/octo-cate-cn-spo/ 自带的 include_code 插件只能插入本地路径的代码。怎么插入外部链接的,比如 github 的 repo?

本身就有这个功能,看文档

#1 楼 @search 自带的是读取相对地址,{% include_code [title] [lang:language] path/to/file %},path 是 code_dir 参数配置的。

#3 楼 @artone 哦,多谢,问了博主,原来代码是粘贴进去的,不是从 repo 读取的。你这个 js 我也收了,以后研究。

You need to Sign in before reply, if you don't have an account, please Sign up first.