template paths

This commit is contained in:
cellarspoon
2021-12-15 11:55:51 +01:00
parent c0dd9c51af
commit 3b56fca00e
4 changed files with 12 additions and 5 deletions

View File

@ -8,6 +8,7 @@ import datetime
import json
import os
import shutil
from pathlib import Path
import arrow
import jinja2
@ -118,7 +119,8 @@ output_dir = os.environ.get(
if not os.path.exists(output_dir):
os.mkdir(output_dir)
template = env.get_template("index_template.md")
cwd = Path.resolve()
template = env.get_template(os.path.join(cwd, "templates" "video.md"))
existing_posts = os.listdir(output_dir)