删除 Bloggers 模板中的 <b:includable>
Remove <b:includable> in Bloggers Template
所以我设法通过仅在博客小部件和主要部分下添加 'main' 和 'post' b:includable 来缩小模板范围,但每次我尝试时它都会重置保存。如果可能的话,我想原样保存。
<b:section class='main' id='main' name='Main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog' visible='true'>
<b:includable id='main' var='top'>
<b:if cond='data:mobile == "false"'>
<div>
<b:loop values='data:posts' var='post'><!-- Start Post Loop -->
<div class='post-outer'>
<b:include data='post' name='post'/>
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comment_picker'/>
</b:if>
</div>
</b:loop>
</div>
<b:include name='nextprev'/>
</b:if>
</b:includable>
<b:includable id='post' var='post'>
<a expr:href='data:post.url'><data:post.title/></a>
<data:post.timestamp/>
<p><data:post.body/></p>
</b:includable>
</b:widget>
</b:section>
您无法删除所有不需要的 b:includables。但是可以滚动它们:只需在 includable 的标题末尾添加斜线即可。
示例:
<b:includable id='shareButtons' var='post'/>
所以我设法通过仅在博客小部件和主要部分下添加 'main' 和 'post' b:includable 来缩小模板范围,但每次我尝试时它都会重置保存。如果可能的话,我想原样保存。
<b:section class='main' id='main' name='Main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog' visible='true'>
<b:includable id='main' var='top'>
<b:if cond='data:mobile == "false"'>
<div>
<b:loop values='data:posts' var='post'><!-- Start Post Loop -->
<div class='post-outer'>
<b:include data='post' name='post'/>
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comment_picker'/>
</b:if>
</div>
</b:loop>
</div>
<b:include name='nextprev'/>
</b:if>
</b:includable>
<b:includable id='post' var='post'>
<a expr:href='data:post.url'><data:post.title/></a>
<data:post.timestamp/>
<p><data:post.body/></p>
</b:includable>
</b:widget>
</b:section>
您无法删除所有不需要的 b:includables。但是可以滚动它们:只需在 includable 的标题末尾添加斜线即可。
示例:
<b:includable id='shareButtons' var='post'/>