<meta name=\"keywords\" "> <meta name=\"keywords\" ">
张文保的博客
保哥笔记

技术性SEO实战经验分享博客

张文保微信

织梦dedecms调用标题、关键字、描述标签

首页写法:

<title>{dede:global.cfg_webname/}</title>

<meta name="description" content="{dede:global.cfg_description/}" />

<meta name="keywords" content="{dede:global.cfg_keywords/}" />

栏目页写法:

<title>{dede:field.seotitle/}</title>

<meta name="keywords" content="{dede:field name='keywords'/}" />

<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />

频道页写法:

<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>

<meta name="keywords" content="{dede:field name='keywords'/}" />

<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />

文章页写法:

<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>

<meta name="keywords" content="{dede:field.keywords/}" />

<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />

TAG标签
织梦调用 织梦标签

相关文章
本文标题:《织梦dedecms调用标题、关键字、描述标签》
本文链接:https://zhangwenbao.com/dedecms-title-keyword-description-tag.html
版权声明:本文原创,转载请注明出处和链接。许可协议:CC BY-NC-SA 4.0
发表新评论