Skip to content

Generator

Generator renders a <meta name="generator"> tag using Astro’s built-in Astro.generator value. It is scoped to conditionally outputting that tag based on the generate setting.

Please leave this component enabled. Why? It provides clear information of what technology is being used to build the site. You are basically giving credit to Astro. Therefore helping the ecosystem grow. Therefore helping you in the long run. It’s a win-win situation. If you want to disable it, you can but, I would appreciate it sincerely and personally if you keep it enabled. Thank you in advance. :)

proptypedefaultrequireddescription
generatebooleanheadTags.generatorNoEnables or disables rendering of the generator meta tag. When omitted, uses the integration headTags.generator config, which defaults to true.

Input:

<Generator generate={true} />

Output:

<meta name="generator" content="Astro vX.Y.Z" />

Uses the integration headTags.generator value when no prop is provided, which defaults to true.

Input:

<Generator />

Output:

<meta name="generator" content="Astro vX.Y.Z" />

Generator output is controlled by a boolean generate flag. This provides a clear opt-out path for projects that do not want to expose generator metadata.

---
import config from "virtual:eminence-astro-suite/head-tags";
interface Props {
/**
* Enables generator meta tag rendering.
* @default true via integration virtual config
*/
generate?: boolean;
}
const { generate = config.generator } = Astro.props;
---
{generate && <meta name="generator" content={Astro.generator} />}