很多人都想添加智能摘要或者时间因子,我们先来看看官方的解释:360搜索智能摘要,是通过网页特殊的标签将需要的数据提供给搜索引擎,并在搜索结果中按照既定的模版展现的实现形式,目的是为了提升搜索结果的体验,帮助站长提升搜索结果点击率。360搜索智能摘要得到很多大站的支持,包括阿里巴巴,搜狐,新浪,迅雷看看,纵横中文网,爆米花等等,取得良好效果。 我们以常见的文章和新闻举例,当然你也可以根据网站类型选择合适的。 普通文章 <!--必填--> <meta property="og:type" content="article"/> <meta property="og:image" content="图片地址 "/> <meta property="og:release_date" content="发表时间"/> <meta property="og:url" content="页面URL地址"/> <meta property="og:release_date" content="发布时间"/> 新闻类 <!--必填--> <meta property="og:type" content="news"/> <meta property="og:title" content="新闻标题"/> <meta property="og:description" content="新闻摘要"/> <meta property="og:image" content="新闻图片"/> <meta property="og:url" content="页面URL地址"/> <meta property="og:release_date" content="发布时间"/> dz3.4的调用格式为: 1.当前文章地址获取:https://www.jiaxan.com$_SERVER["REQUEST_URI"] 2.文章发布时间:$article[dateline] 3.文章缩略图地址:https://www.jiaxan.com/$article[pic] 4.摘要获取:{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if} 5.标题获取:$article[title]<!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--> 前面的网址换成你自己的就行。效果如上图 |
独家评论
新手用织梦dede系统如何发表文章
dedecms 批量删除清空文章摘要描述 然后重