新手问题 jekyll 中的变量 content

tsinghan · June 17, 2013 · Last by TsingHan replied at June 17, 2013 · 3546 hits

jekyll 中 content 变量用来引用当前 page/post 中的内容 在 post.html 文件中 应该引用的是 post 模板的内容

在 page.html 和 default.html 中 也有 {{ content }} 变量 这个变量引用的是什么模板的内容? 没理解,求解释

layout 中的 content 引用的就是 post 的内容啊,post 上有定义该 post 使用的 layout,那么 layout 就会把 post 填充到 content 中

#1 楼 @Teddy 奥 之前是我理解错了

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