IndexNow Ping

当你配置的集合中的条目发布或取消发布时,向 IndexNow 发送通知的 EmDash 插件。

插件

IndexNow Ping

当你配置的集合中的条目发布或取消发布时,向 IndexNow 发送通知的 EmDash 插件。

  • 分类: SEO
  • 状态: 可用
  • 版本: 0.1.1
  • 价格: 未知
  • 来源: npm 软件包
  • 安装方式: npm 原生集成
  • 核实日期: 2026-11-01

当你配置的集合中的条目发布或取消发布时,向 IndexNow 发送通知的 EmDash 插件。

安装

从 npm 安装该软件包:

npm install emdash-plugin-indexnow

在 Astro 配置中注册该插件:

import emdash from "emdash/astro";
import { indexnow } from "emdash-plugin-indexnow";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [
        indexnow({
          // Collection slug -> public URL pattern for its entries.
          routes: { pages: "/:slug", posts: "/blog/:slug" },
        }),
      ],
    }),
  ],
});

详细信息