我正在使用基金会,并使用.kit语言使用CodeKit进行编译。尝试使用$pageTitle变量,我在my _head-red.kit文件中将其称为:
<title><!--$pageTitle--> | David Pindrys</title>它在页面文件中定义为:
<!--- $pageTitle = Page Title -->不知道怎么回事。My _head-ref.kit文件位于/partials目录中,由位于/pages目录中的页面文件(成功)调用。当我尝试编译时,我得到
Line 6 of _head-ref.kit: The variable $pageTitle is undefined.
(This action was triggered by a change to _head-ref.kit任何帮助都是非常感谢的。谢谢
发布于 2014-08-27 22:31:58
<!--- $pageTitle = Page Title -->需要的是
<!-- $pageTitle = Page Title -->开始标记中的破折号太多了
发布于 2015-02-13 07:26:27
在your _head-ref.kit中添加以下内容:
<title><!-- @pageTitle--> | David Pindrys</title>此外,在您的页面中执行以下操作:
<!-- @pageTitle : Page Title -->
<!-- @import '_head-ref' -->这应该是可行的。有关更多信息,请查看以下页面:https://incident57.com/codekit/help.html#kit
https://stackoverflow.com/questions/21596024
复制相似问题