Code Injection
在公开页面的 head、body 开头和 body 结尾注入全站 HTML 的 EmDash 插件。
插件
Code Injection
在公开页面的 head、body 开头和 body 结尾注入全站 HTML 的 EmDash 插件。
在公开页面的 head、body 开头和 body 结尾注入全站 HTML 的 EmDash 插件。
安装
从 npm 安装该软件包:
npm install @pagelyft/emdash-plugin-code-injection
在 Astro 配置中注册该插件:
import emdash from "emdash/astro";
import { codeInjectionPlugin } from "@pagelyft/emdash-plugin-code-injection";
export default defineConfig({
integrations: [
emdash({
plugins: [codeInjectionPlugin()],
}),
],
});
详细信息
- 最新版本: 0.2.0
- 许可证: MIT
- 发布者: PageLyft
- 要求: EmDash
>=1.0.0 - npm 包: @pagelyft/emdash-plugin-code-injection