Skip to content

织梦标签替换

核心页面标签

  • 首页

  • 列表页

  • 内容页

  • 封面页

  • 单张页(类似联系我们,搜索页)

首页描述,关键字,标题调用标签

html
<title>{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}" />
<meta name="keywords" content="{dede:global.cfg_keywords/}" />

封面页描述,关键字,标题调用标签

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

列表页描述,关键字,标题调用标签

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

文章页描述,关键字,标题调用标签

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

搜索页描述,关键字,标题调用标签

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