Astro.generator
Astro.generator is a string identifying the Astro version, suitable for the generator meta tag.
Syntax
const gen = Astro.generator Returns
string — A version string such as "Astro v5.0.0".
Examples
---
const gen = Astro.generator;
---
<meta name="generator" content={gen} />
Output
Adds a generator meta tag like <meta name="generator" content="Astro v5.0.0">.
Notes
Purely informational; commonly placed in a base layout's <head>. The value reflects the installed Astro version at build time.