improved readability
This commit is contained in:
@@ -5,15 +5,13 @@ import markdown
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
vault_path = os.getenv("VAULT_PATH", "/vault") # Optional default value
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
PRIVATE_VAULR_DIR = Path("/content")
|
||||
PUBLIC_VAULT_DIR = "/vault"
|
||||
PRIVATE_VAULT_DIR = Path("/vault")
|
||||
PUBLIC_VAULT_DIR = "/content"
|
||||
|
||||
build.obsidian_vault(VAULT_DIR) # initialize the private obsidian repo
|
||||
build.public_vault(VAULT_DIR) # initialize the public notes from the private repo
|
||||
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
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
@@ -25,4 +23,4 @@ def index():
|
||||
|
||||
@app.route ("/<filename>") # renders a filename if not otherwise specified
|
||||
def render_post(filename):
|
||||
return build.html_file(filename, CONTENT_DIR)
|
||||
return build.html_file(filename, PUBLIC_VAULT_DIR)
|
||||
|
||||
Reference in New Issue
Block a user