Site settings
Open site settings by clicking Publish changes in the Ribbon, then clicking Change site options (the cog icon).General settings
| Setting | Description |
|---|---|
| Site name | The public title shown at the top of your site. |
| Homepage file | The note that loads when a visitor opens your site’s root URL. |
| Logo | A published image displayed as a site banner. The image must be published to your site. |
| Custom domain | Configure a custom domain for your site. See Custom domains. |
| Disallow search engine indexing | Adds a robots.txt file to prevent search engines from crawling your site. |
Appearance settings
| Setting | Description |
|---|---|
| Theme | Choose Light, Dark, or Adapt to System. |
| Light/Dark toggle | Show a toggle on your site that lets visitors switch between light and dark mode. |
Reading experience
| Setting | Description |
|---|---|
| Show hover preview | Show a page preview when visitors hover over an internal link. |
| Hide page title | Hide the inline title at the top of each note. |
| Readable line length | Limit line width for comfortable reading. |
| Strict line breaks | Render single line breaks as visible breaks. |
| Stack pages | Enable stacked tab navigation (sliding panels). |
Components
| Setting | Description |
|---|---|
| Show navigation | Display the file explorer sidebar. |
| Show search bar | Add a search bar to your site. |
| Show graph view | Show the graph view in the right sidebar. |
| Show table of contents | Show a table of contents for each page. |
| Show backlinks | Show backlinks at the bottom of each page. |
Customize navigation order
Navigation items are listed in published order by default. You can reorder them or hide specific notes and folders.Open navigation settings
- Click Publish changes in the Ribbon.
- Click Change site options.
- Under Components settings, next to Customize navigation, click Manage.
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.
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.
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
Locate the theme file
Open your vault’s settings folder (default:
.obsidian), then open the themes folder.Rename and place the file
Paste the file into the root folder of your vault and rename it to
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:| Property | Effect |
|---|---|
description | Sets the page meta description and social preview description. |
image / cover | Sets the social preview image (og:image). |
permalink | Sets a custom, permanent URL for the page. |
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.