Skip to content

Commit

Permalink
Update tasks for the new post path
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Oct 6, 2024
1 parent b8b4cb2 commit affed06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def new_post(c, title=None, post_type="md"):
title_string = title
new_post_path = (
Path(SETTINGS["PATH"])
/ "rst"
/ "posts"
/ f"{datetime.date.today().isoformat()}{filename_title_string}.{post_type}"
)

Expand Down Expand Up @@ -285,7 +285,7 @@ def get_category(doc: docutils.nodes.document) -> str:
return v.fields["category"].strip()


def content_paths(relative="content/rst", extensions=(".rst",)):
def content_paths(relative="content/posts", extensions=(".rst",)):
for root, _, files in os.walk(relative):
for f in files:
p = Path(root) / f
Expand Down

0 comments on commit affed06

Please sign in to comment.