Code Injection
EmDash plugin that injects site-wide HTML into the head, body start, and body end of public pages.
Plugin
Code Injection
EmDash plugin that injects site-wide HTML into the head, body start, and body end of public pages.
EmDash plugin that injects site-wide HTML into the head, body start, and body end of public pages.
Installation
Install the package from npm:
npm install @pagelyft/emdash-plugin-code-injection
Register the plugin in your Astro config:
import emdash from "emdash/astro";
import { codeInjectionPlugin } from "@pagelyft/emdash-plugin-code-injection";
export default defineConfig({
integrations: [
emdash({
plugins: [codeInjectionPlugin()],
}),
],
});
Details
- Latest version: 0.2.0
- License: MIT
- Publisher: PageLyft
- Requires: EmDash
>=1.0.0 - npm package: @pagelyft/emdash-plugin-code-injection