dede模板各页面调用标题关键字描述标签

2025-11-28 08:24:36

1、首页写法:

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

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

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

调用的地方,如图

dede模板各页面调用标题关键字描述标签

2、栏目页写法:

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

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

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

dede模板各页面调用标题关键字描述标签

3、频道页写法:

<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)'/}" />

dede模板各页面调用标题关键字描述标签

4、文章页写法:

<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)'/}" />

文章页默认调用文章标题和网站名就OK。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢