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

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>
主站蜘蛛池模板: 张家界市| 伊宁市| 大同市| 万盛区| 河北省| 缙云县| 资溪县| 同德县| 屏东市| 道孚县| 巨野县| 禹州市| 米易县| 杭锦后旗| 辽阳县| 抚州市| 宽甸| 丹阳市| 喜德县| 刚察县| 贡山| 晋宁县| 临沭县| 蛟河市| 安康市| 新河县| 博湖县| 麻栗坡县| 攀枝花市| 阿鲁科尔沁旗| 宿迁市| 两当县| 黄龙县| 建平县| 阳江市| 洪湖市| 红桥区| 红安县| 吐鲁番市| 宣武区| 莱芜市|