博客页面标题格式
请考虑博客中页面标题的以下格式:[博客名称].[页面名称]。 我曾经将以下代码放在标题标签中,但没有像某些编程站点中引用的标题标签:
<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
问题是我只得到 [页面名称] 而没有 [博客名称] 。非常感谢任何帮助。
Consider the following format for page title in blogger:[blog Name].[page Name].
I used to place the following code in the title tags and without the title tags as cited in some programming site:
<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
The problem is that I get only [page Name] without the [blog Name]. Any help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不要在条件的
else
部分中包含博客名称。看看你的样本,你可能想要这个:You don't include the blog name in the
else
part of the conditional. Looking at your sample you probably want this: