我在Blogger中有一个帖子模板,并且该模板中有一个字符串需要将其发布到索引页中(它会根据帖子而变化)。我该怎么办?
抱歉,这是代码:
HTML模板是: 特价中 此item_status字符串:每个帖子的On Sale均不同。我想将其放在变量中以便在Main Post Widget中调用它:
<b:includable id='post' var='post'>
<b:if cond='data:blog.pageType not in {"item","static_page"}'>
<div class="simpleCart_shelfItem post index-page col-xs-12 col-sm-6 col-md-4 col-lg-3">
<meta expr:content='data:blog.blogId' itemprop='blogId'/>
<meta expr:content='data:post.id' itemprop='postId'/>
<a expr:name='data:post.id'/>
<div class='index-page-inner'>
PUT IT HERE
<div class='index-page-image'>
<a expr:href='data:post.url'>
<b:if cond='data:post.firstImageUrl != ""'>
<img expr:alt='data:post.title' expr:src='data:post.firstImageUrl'/>
<b:else/>
......