getherbie / plugin-xmlsitemap
为 Herbie (Google 及其他) 的 XML-Sitemap 插件
v1.0.0
2016-04-05 15:03 UTC
Requires
- getherbie/herbie: ^1.0.0
This package is auto-updated.
Last update: 2024-09-22 18:07:55 UTC
README
Xml-Sitemap
是一个 Herbie 插件,它可以从你的页面和博客文章中自动生成 XML-Sitemap,并将其作为页面提供给 Google 和其他搜索引擎。
安装
您可以通过 Composer 安装此插件。
$ composer require getherbie/plugin-xmlsitemap
之后,您需要在配置文件中激活此插件。
plugins:
enable:
- xmlsitemap
配置
在 plugins.config.xmlsitemap
中,您可以找到以下选项
# if set no pages will be included (you do it manually)
no_page: false
自定义页面
如果您已经通过 plugins.config.xmlsitemap.no_page
禁用了自动添加页面,您可以添加自定义页面。有关此类页面的结构,最好查看 Xmlsitemap 插件的代码。