2013-08-27 46 views

回答

3

你复制的代码段有什么问题?

其工作原理如下:在index.html,它检索第一个博客帖子(site.posts.first),并将其存储在post变量,而它的内容存储在content。毕竟,它调用(includepost_detail.html部分,它使用与前面相同的上下文。

因此,最终它使用post_detail.html部分中的第一篇文章(post变量)及其内容(content变量)。

希望有帮助!

相关问题