updates
This commit is contained in:
13
functions.py
13
functions.py
@@ -1,7 +1,7 @@
|
||||
import os, subprocess
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
from classes import DefaultFrontmatterHeader
|
||||
from classes import *
|
||||
from config import Config
|
||||
from logger import logger
|
||||
|
||||
@@ -22,7 +22,7 @@ def edit_content(filename):
|
||||
filename = Path(f"{Config.CONTENT_DIR}/{filename}.md")
|
||||
subprocess.call([editor, filename])
|
||||
|
||||
def init_site():
|
||||
def init_site_old():
|
||||
logger.debug(f"Initializing new site")
|
||||
|
||||
# Recreate output directory if necessary
|
||||
@@ -39,7 +39,10 @@ def init_site():
|
||||
# Create "About.md" content item
|
||||
create_content("about")
|
||||
|
||||
def build_site():
|
||||
logger.debug(f"Starting build")
|
||||
def init_site():
|
||||
logger.debug(f"Initializing new site")
|
||||
site = SitePrototype
|
||||
site.init_site()
|
||||
|
||||
|
||||
def build_site():
|
||||
logger.debug("Building site")
|
||||
Reference in New Issue
Block a user