Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 806 Bytes

File metadata and controls

29 lines (22 loc) · 806 Bytes

Title

Renders the <title> tag. The template must contain %s — TypeScript enforces this at the type level.

Import

---
import { Title } from "@mannisto/astro-metadata"
---

Usage

<Title value="My Page" />
<!-- Output: <title>My Page</title> -->

<Title value="My Page" template="%s | My Site" />
<!-- Output: <title>My Page | My Site</title> -->

<!-- With Head -->
<Head title="My Page" titleTemplate="%s | My Site" />

Props

Prop Type Description
value string Page title. Required.
template `${string}%s${string}` Template string. Must contain %s.