Using CSS, you can hide specific folders and files in the left navigation on your Obsidian Publish site.
Note: Hiding the folders or pages from the left navigation does not remove them from your site, and visitors can still access these files through links or even search.
You may want to do this if you wish to clean up your left navigation, you want to keep the search box, or you only want to hide specific folders or pages. Otherwise, you can toggle the navigation to be entirely off through your Obsidian Publish settings.
- Copy the following CSS to your publish.css file.
- Update the data-path value to include the name of the file or folder you want to hide. Make a copy of the line for each folder or file you want to add.
- Publish your updated publish.css file to the root of your Obsidian Publish site.