什么是智能摘要?

如下图所示,简单那来说就是让360搜索引擎抓取文章标题,图片和缩略内容等

360搜索智能摘要.jpg

以博客性质网站举例

在站点模板head中添加下列代码即可

<!--必填-->
<meta property="og:type" content="blog"/>
<meta property="og:image" content="图片地址"/>
<meta property="og:release_date" content="发表时间"/>
<!--选填-->
<meta property="og:title" content=" 博客标题"/>
<meta property="og:description" content=" 博客描述" />
<meta property="og:author" content="博客作者"/>

代码中的中文描述换成自己对于的图片地址,文章发布时间,博客标题等等即可

例如我的某篇文章

<meta property="og:type" content="blog"/> 
<meta property="og:image" content="https://zezeshe.com/usr/themes/yodu/img/tag/typecho.jpg"/> 
<meta property="og:release_date" content="2017-07-22"/> 
<meta property="og:title" content="QQ爹の博客"/> 
<meta property="og:description" content="因为一般首页很少有全文输出的,而且一般隐藏内容都放在文章后面,所以就不需要处理首页的输出内容了。直接处理post.php就可以了,使用下面的代码&lt;?php$db = Typecho_Db:..." /> 
<meta property="og:author" content="Jrotty"/>

Typecho对应的代码如下

<?php if($this->is('post')||$this->is('page')): ?>
<meta property="og:type" content="blog"/>
<meta property="og:image" content="<?php showThumbnail($this); ?>"/>
<meta property="og:release_date" content="<?php $this->date('Y-m-j'); ?>"/>
<meta property="og:title" content="<?php $this->title(); ?>"/>
<meta property="og:description" content="<?php $this->description() ?>" />
<meta property="og:author" content="<?php $this->author(); ?>"/>
<?php endif; ?>

注意:上述代码中的<?php showThumbnail($this); ?>不具有通用性,请填写自己博客缩略图输出函数。

其他性质网站怎么写呢

详见360官方文档说明http://www.so.com/help/help_3_9.html

版权属于:泽泽社长
本文链接:https://blog.zezeshe.com/archives/360-so-seo.html
本站未注明转载的文章均为原创,并采用 CC BY-NC-SA 4.0 授权协议,转载请注明来源,谢谢!