public notes work now

This commit is contained in:
venus
2026-03-05 00:02:39 -06:00
parent 13d7676ff4
commit 427c3b6427
5 changed files with 176 additions and 9 deletions

View File

@@ -11,13 +11,15 @@ PRIVATE_VAULT_DIR = Path("/vault")
PUBLIC_VAULT_DIR = "/content"
build.obsidian_vault(PRIVATE_VAULT_DIR) # initialize the private obsidian repo
# build.public_vault(PUBLIC_VAULT_DIR) # initialize the public notes from the private repo
build.public_vault(PRIVATE_VAULT_DIR, PUBLIC_VAULT_DIR) # initialize the public notes from the private repo
@app.route("/")
def index():
md_content = "# Welcome to my blog!\nThis is rendered from **Markdown**.\n##[test](http://localhost/test)"
html_content = markdown.markdown(md_content)
return html_content
@app.route("/api/push") #webhook for vault updated
def
@app.route ("/<filename>") # renders a filename if not otherwise specified
def render_post(filename):