If statement Blogger:使用IF条件实现数据:blog.homepageUrl

If statement Blogger:使用IF条件实现数据:blog.homepageUrl,if-statement,blogger,If Statement,Blogger,在我的博客模板中,我有以下代码: <b:if cond='data:blog.url == data:blog.homepageUrl + "search/label/BLOG"'> <style type="text/css"> body { width: 100%; height: 100vh; background-color: #CCFF99;

在我的博客模板中,我有以下代码:

<b:if cond='data:blog.url == data:blog.homepageUrl + "search/label/BLOG"'>
    <style type="text/css">
      body {
        width: 100%;
        height: 100vh;
        background-color: #CCFF99;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
      }
    </style>
    <b:else />
    <style type="text/css">
      body {
        width: 100%;
        height: 100vh;
        background-color: #FFFFCD;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
      }
    </style>
  </b:if>

身体{
宽度:100%;
高度:100vh;
背景色:#CCFF99;
背景位置:中心;
背景尺寸:封面;
背景重复:无重复;
背景附件:固定;
}
身体{
宽度:100%;
高度:100vh;
背景色:#FFFFCD;
背景位置:中心;
背景尺寸:封面;
背景重复:无重复;
背景附件:固定;
}
但是,它不工作,如何修复

<b:if cond='data:blog.url == data:blog.homepageUrl + "search/label/CSS"'>

不工作。 不管怎样,知道怎么做是一件好事