AMP:如何创建站点地图

AMP: How can I create sitemap

我的网站基于 AMP(加速移动页面);如果我的页面仅使用 AMP,我该如何创建站点地图文件。谢谢。

您可以查看此 tutorial. Be noted that AMP does not need a sitemap (HTML or XML) if the content is marked up correctly: engines know where AMP content is by this piece of code present in your regular pages: <link rel="amphtml" href="https://www.example.com/url/to/amp/document.html">. You can also check this link 以获取更多信息和解释。只需使用可自定义的短代码,即可将站点地图添加到您的网站。 [amp-sitemap append='amp' heading='AMP Sitemap' max='5']

站点地图可以指向任何内容,只是按照惯例,它们通常指向网页,它们可以指向 PDF 文件、Word 文档、html 页面 运行 AMP 等!

像往常一样创建您的站点地图,它将被选取并编入索引。

如 abielita 所述,如果您还有标准的 HTML 页面,首选方法是在站点地图中包含 它们,然后使用 rel="amphtml" link.