从主页删除 post
delete post from home page
我正在跟进此事post:
How to hide all post's having certain labels on home page in Google Blogger?.
我测试了建议的解决方案 post。我想从主页中删除 "tips"。 "Tips" 没有任何图像。
所以,我删除了所有建议的代码:
<b:if cond='data:blog.pageType == "static_page"'>
<b:include data='post' name='comment_picker'/>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comment_picker'/>
</b:if>
and replace them with the recommended solution:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>
<b:if cond='data:label.name != "tips"'>
<b:include data='post' name='post' />
</b:if>
</b:if>
</b:loop>
<b:else/>
<b:include data='post' name='post' />
</b:if>
After the update, all my posts disappear from the homepage.
How can remove label "tips" from not appearing on the homepage.
您必须替换行 <b:include data='post' name='post' />
而不是 <b:include data='post' name='comment_picker'/>
此外,"tips" != "Tips"
我正在跟进此事post:
How to hide all post's having certain labels on home page in Google Blogger?.
我测试了建议的解决方案 post。我想从主页中删除 "tips"。 "Tips" 没有任何图像。
所以,我删除了所有建议的代码:
<b:if cond='data:blog.pageType == "static_page"'>
<b:include data='post' name='comment_picker'/>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comment_picker'/>
</b:if>
and replace them with the recommended solution:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>
<b:if cond='data:label.name != "tips"'>
<b:include data='post' name='post' />
</b:if>
</b:if>
</b:loop>
<b:else/>
<b:include data='post' name='post' />
</b:if>
After the update, all my posts disappear from the homepage.
How can remove label "tips" from not appearing on the homepage.
您必须替换行 <b:include data='post' name='post' />
而不是 <b:include data='post' name='comment_picker'/>
此外,"tips" != "Tips"