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

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>
主站蜘蛛池模板: 沽源县| 武胜县| 正宁县| 上虞市| 西乡县| 马公市| 察隅县| 南充市| 苏尼特左旗| 黑龙江省| 桑植县| 九江市| 青阳县| 西城区| 高雄县| 麟游县| 海宁市| 蓬安县| 天水市| 安乡县| 德令哈市| 永州市| 玉门市| 苏尼特右旗| 大冶市| 天台县| 双流县| 绥滨县| 莲花县| 安乡县| 道孚县| 水城县| 正宁县| 屏边| 巨野县| 克拉玛依市| 陵川县| 丹东市| 容城县| 巴彦淖尔市| 吉林省|