updated index
This commit is contained in:
@@ -17,7 +17,7 @@ build.public_vault(PRIVATE_VAULT_DIR, PUBLIC_VAULT_DIR) # initialize the public
|
||||
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
|
||||
return build.html_file("index.md", PUBLIC_VAULT_DIR)
|
||||
@app.route("/api/vault-update", methods=['POST', 'GET']) #webhook for vault updated
|
||||
def update_vault():
|
||||
# TODO SECURE THIS WITH SECRETTTTT or auth header
|
||||
|
||||
@@ -45,6 +45,7 @@ def obsidian_vault(dest = "/vault"): # makes sure there is a vault in dest
|
||||
return 1
|
||||
|
||||
def public_vault(privateVault = "/vault", dest = "/content"): # build the public vault in dest from an obsidian repo in src
|
||||
#TODO delete old documents
|
||||
vault = Vault(privateVault)
|
||||
if not(vault):
|
||||
print("could not find vault")
|
||||
|
||||
Reference in New Issue
Block a user