This commit is contained in:
SG
2025-06-09 23:34:36 +03:00
parent 3348df26e5
commit 2d7f1c1f7d
30 changed files with 1312 additions and 67 deletions

View File

@@ -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")