You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the title of a page is the result of variable interpolation, it shows correctly inside a h1 element, but the value of the variable does not end up inside the <title> element of the rendered HTML page.
Let's say I have this inside example.md of the starter template:
<script setup>
const title = "VitePress 💙 StackBlitz"
</script>
# {{ title }}
Then the title element will contain {{ title }} | VitePress
Describe the bug
When the title of a page is the result of variable interpolation, it shows correctly inside a
h1
element, but the value of the variable does not end up inside the<title>
element of the rendered HTML page.Let's say I have this inside
example.md
of the starter template:Then the
title
element will contain{{ title }} | VitePress
Reproduction
https://stackblitz.com/edit/vite-pivzggyp?file=docs%2Fexample.md
Expected behavior
The
title
element contains the value of the variable, e.gVitePress 💙 StackBlitz | VitePress
System Info
Additional context
Validations
The text was updated successfully, but these errors were encountered: