所有插件

站点地图

在站点根目录生成 sitemap.xml 和 robots.txt。

内置 @docmd/plugin-sitemap

概览

遍历渲染输出并生成符合标准的 sitemap.xml 和 robots.txt。遵循页面级 noindex frontmatter,并使用 docmd.config.json 中配置的规范 URL。

安装

# Sitemap ships with docmd — nothing to install. docmd build

This plugin is built into docmd — nothing to install.

权限

该插件在构建过程中的运行时行为:

权限项使用状态
读取项目文件是
写入 site/是
网络请求否
运行子进程否

功能特性

此插件注册的 docmd 钩子:

post-build

标签

sitemapseoxml