我几乎从0开始使用我的新模板,但是一旦我添加了变量定义并在skin标签下使用它,就会出现错误并且我不明白为什么?
这是这里的代码:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<title>
<data:blog.pageTitle/>
</title>
<b:include data='blog' name='all-head-content'/>
<b:include data='blog' name='google-analytics'/>
<b:skin>
<![CDATA[
/* --------------------------------------------
Blogger Template Style
Name:
Designer:
URL:
----------------------------------------------- */
/* Variable definitions
=========================
<Variable name="mb.color" description="Main Background Color" type="color" default="#ffffff" value="#f1f1f1"/>
*/
/* Content
========================= */
body {
margin:0;
padding:0;
background:$(mb.color);
}
]]>
</b:skin>
</head><!--
<head/>
-->
<body>
<b:section id='main'>
<b:widget id='Blog1' locked='false' title='Articles' type='Blog' visible='true'>
// code here
</b:widget>
</b:section>
</body><!--
</body>
-->
</html>