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

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>
主站蜘蛛池模板: 镇康县| 蓝田县| 黔西| 龙江县| 蓬安县| 南召县| 云安县| 碌曲县| 临夏市| 桑日县| 获嘉县| 兴山县| 安国市| 房产| 乌拉特中旗| 登封市| 庐江县| 洪泽县| 卢龙县| 金山区| 大同县| 桑植县| 静海县| 永州市| 玉溪市| 红桥区| 社旗县| 建湖县| 五寨县| 杭州市| 大庆市| 砀山县| 东丰县| 上虞市| 赫章县| 聂拉木县| 伊宁市| 通渭县| 吴忠市| 梁平县| 咸宁市|