- Create a file in the root of your Obsidian Vault called
publish.js- You'll need to use an editor like VS Code for this as Obsidian won't handle it.
- Add this code to that file, replacing
<your-site-code>with your actual site code.
- Use Obsidian to publish the
publish.jsfile just like any other file.