Skip to content

Meta Description

Ben Wong edited this page May 11, 2017 · 3 revisions

Meta 描述是在头部输出了类似如下的语句:

Meta descrption will be output in the header like that:

<meta name="description" content="这里是对此文章的描述,有利于收录">

自定义的方法是在文章的 Front-matter 里定义 desc: 。如:

If you want to set meta description information, please set desc property and value to each post, just like:

title: Lorem ipsum dolor
date: 2015-12-31 14:49:13
desc: 这里是对此文章的描述,有利于收录
---
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Totam, non numquam saepe ex ut. Deleniti culpa inventore consectetur nam saepe!

如果没有定义,主题会自动截取文章开头的 150 个字符内容。

If there is no desc property or value, hexo-theme-Anatole will use the first 150 characters of your post instead of it.

请不要将此与自定义摘要功能弄混。

Don't be stupidly see meta description as index description.