官术网_书友最值得收藏!

Optional but recommended boilerplate

The following items are not required in AMP pages, but are recommended so that you get the most SEO benefit from your web pages:

  • Title tag: Title tags are used as a ranking signal in search engines, and are useful to users in identifying pages. You can add the title tag right after the AMP-JS <script> tag:
<title>Hello World!</title>
  • Structured metadata: Adding structured metadata allows third-party services to more efficiently index and preview your pages. For example, Facebook uses the Open Graph Protocol, while Twitter uses Twitter Cards, to extract images and specific data about your page. Additionally, Google's Top Stories Carousel supports the schema.org Article and Video categories to generate article previews such as the ones shown in the next section.

    To get a structured metadata preview of your page in Google search results, you need to add code similar to this to the head of your page:
<script type="application/ld+json"> 
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"headline": "Article headline",
"image": [
"thumbnail1.jpg"
],
"datePublished": "2017-03-01T08:00:00+08:00"
}
</script>
主站蜘蛛池模板: 江源县| 铁岭市| 定南县| 江津市| 浏阳市| 商城县| 虹口区| 云南省| 丹凤县| 三江| 青海省| 绥芬河市| 永昌县| 金昌市| 合作市| 彝良县| 伊宁市| 延寿县| 博湖县| 梨树县| 抚宁县| 原平市| 喀喇| 巴青县| 凯里市| 广水市| 微博| 东光县| 密山市| 柞水县| 中西区| 鹤壁市| 青海省| 恩施市| 浦城县| 西丰县| 开原市| 遵化市| 锡林郭勒盟| 平顶山市| 靖远县|