pr0dt0s10k downloadsSpin up a local http server to access your vault via a web browser.
This plugin allows you to serve your Obsidian vault as an HTTP server, while maintaining your theme and ensuring that your image and file links work.
Simply enable the plugin, start the server and open a web browser at http://localhost:8080/A_MARKDOWN_FILE to view the same document you see when opening it in Obsidian.
localhost. However, for other devices on your network, you will need to use your IP address.If you encounter any issues or would like to request a new feature, please submit them here.
This plugin uses variables in the templates to replace content in the HTML that is served. The default variables can be seen by enabling the setting Show Advanced Settings. as shown below.

These variables have default values set in the plugins configuration, but can be modified using the frontmatter of each file. The variables are applied using the following priority:
---
tags: Test File, development
htmlvars:
LANG: en
HTML_TITLE: Custom Tab Title!
RENDERED_CONTENT_FILE_NAME: '<div style="padding:10;
background-color: #a455a1; width: 100%;"> Custom File Title
Content from FrontMatter!</div>'
---
These variables must be set inside a property named
htmlvarsin the frontmatter following YAML syntaxis.
Variable values set in the settings.
These would work as default values if the variable is not set in a specific file.
Internal values set from the plugin.
The internal variables used at the moment are:
theme-dark or theme-light according to your current appearance settings)Please take note that you can overwrite the internal variables either from the settings or from the file's frontmatter.
You can use other frontmatter properties as variables in your templates but they can only be Strings or Numbers and you must prefix FM: to the variable name.
Example:
---
tags: Test File, development
---
And in the html template you would use it like this:
#VAR{FM:tags}

This project is tested with BrowserStack. Check BrowserStack here..