head entry in its site config to every page. You add the widget there.
Before you start
- Your website widget. Kelu makes one for you when you create a knowledge base. Its Install tab shows these steps with your widget id and key already in the code.
- Your site on the widget’s Sites it works on list (Install tab).
Add the widget
Add a script entry to head
Add this inside Replace
defineConfig({ ... }). If head already exists, add the entry to it..vitepress/config.ts
YOUR_WIDGET_ID and kl_pk_... with the values from your widget’s snippet. async: "" writes the async attribute with no value.