template paths
This commit is contained in:
@ -7,6 +7,7 @@ import os
|
||||
import shutil
|
||||
import time
|
||||
from ast import literal_eval as make_tuple
|
||||
from pathlib import Path
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import arrow
|
||||
@ -201,7 +202,8 @@ output_dir = os.environ.get(
|
||||
if not os.path.exists(output_dir):
|
||||
os.makedirs(output_dir)
|
||||
|
||||
template = env.get_template("post_template.md")
|
||||
cwd = Path.resolve()
|
||||
template = env.get_template(os.path.join(cwd, "templates" "feed.md"))
|
||||
|
||||
# add iframe to the allowlist of feedparser's sanitizer,
|
||||
# this is now handled in parse_post()
|
||||
|
Reference in New Issue
Block a user