Site settings
Open site settings by clicking Publish changes in the Ribbon, then clicking Change site options (the cog icon).General settings
Appearance settings
Reading experience
Components
Customize navigation order
Navigation items are listed in published order by default. You can reorder them or hide specific notes and folders.1
Open navigation settings
- Click Publish changes in the Ribbon.
- Click Change site options.
- Under Components settings, next to Customize navigation, click Manage.
2
Reorder items
In the Navigation preview, drag notes or folders to your preferred order. You can adjust note order within folders and folder order within other folders, but you cannot move notes between folders here.
3
Hide items
Right-click a note or folder and select Hide in navigation. The item is removed from the visible navigation while remaining published.To reveal hidden items, check Show hidden next to the Navigation Preview title.
4
Save changes
Click Done to apply your navigation changes to the live site.To restore defaults, click the Restore Default icon next to the relevant setting.
Custom CSS
Add apublish.css file to the root directory of your vault to apply custom styles to your site.
CSS that works inside the Obsidian app may not behave the same way on Publish. For best results, develop CSS specifically for Publish. In general, styles that work in Reading view have the best chance of working on Publish.CSS variables for Publish are documented on the Obsidian developer docs.
Use a community theme
1
Locate the theme file
Open your vault’s settings folder (default:
.obsidian), then open the themes folder.2
Copy the theme CSS
Copy the CSS file for the theme you want to use.
3
Rename and place the file
Paste the file into the root folder of your vault and rename it to
publish.css.4
Publish the file
Open Publish changes and publish
publish.css.Many community themes use the Style Settings plugin for configuration. Style Settings does not work on Obsidian Publish.
Favicon
Publish accepts favicons using these naming conventions, where the number indicates pixel dimensions:favicon-32.pngfavicon-32x32.pngfavicon.ico
Custom JavaScript
Add apublish.js file to the root of your vault to run custom scripts on your site.
publish.js must be in the root directory of your vault, just like publish.css. Publish it from the Publish changes dialog.
Social media link previews
When a visitor shares a link to your site on social media, platforms like Twitter/X and Slack display a rich preview card. You can control what appears in these cards using note properties.Custom description
Obsidian automatically generates a description from note content, but you can provide your own:<meta name="description">, og:description, and twitter:description.
Custom image
Useimage or cover (they’re identical — use only one) to set a custom preview image:
og:image.
SEO
Obsidian Publish sites are automatically optimized for search engines. A sitemap is available at/sitemap.xml and an RSS feed at /rss.xml.
Google Search Console
Register your site on Google Search Console to monitor search performance and indexing status.Disable search engine indexing
To prevent search engines from crawling your site, enable Disallow search engine indexing in site settings. This adds arobots.txt file to your site.
Page metadata
Use note properties to customize per-page SEO metadata:Analytics
Google Analytics
- Open Publish changes → Change site options.
- Under Other site settings, enter your tracking code in Google Analytics tracking code.
publish.js.
Plausible, Fathom, and other services
You can add any analytics service by injecting its script throughpublish.js. Replace yourdomain.com and the script URL with values from your analytics provider.