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
Adding a <script> tag globally is easy with +Head. But using +Head doesn't work for adding a <script> tag to only one page, because +Head isn't applied upon client-side navigation.
Potential solutions:
New +scripts setting
Support +Head.shared.ts
Also apply +Head upon client-side navigation, while adding a new HTML-only setting +metadata that is meant for bots & browsers.
Mixing high-level props (e.g. description) and low-level props (e.g. og.description).
Isn't it a DX paper cut that +title doesn't live in +metadata? (Since +metadata is server-only but the title needs to updated upon client-side navigation.)
Description
Adding a
<script>
tag globally is easy with+Head
. But using+Head
doesn't work for adding a<script>
tag to only one page, because+Head
isn't applied upon client-side navigation.Potential solutions:
+scripts
setting+Head.shared.ts
+Head
upon client-side navigation, while adding a new HTML-only setting+metadata
that is meant for bots & browsers.description
) and low-level props (e.g.og.description
).+title
doesn't live in+metadata
? (Since+metadata
is server-only but the title needs to updated upon client-side navigation.)I like
3.
the most so far.See also: Blankeos/vike-metadata#9.
The text was updated successfully, but these errors were encountered: