Skip to content

Commit

Permalink
fix: missing author
Browse files Browse the repository at this point in the history
duplicate category
  • Loading branch information
DamianFlynn committed Feb 15, 2023
1 parent 9b142f2 commit 829d05c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Empty file modified .github/scripts/release.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import argparse
import os

__version__ = "0.3.3"
__version__ = "0.3.5"

parser = argparse.ArgumentParser()

Expand Down
6 changes: 3 additions & 3 deletions obsidian_parser/obsidianparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ def check_frontmatter(self, hugo_page: str):
newpost += f"tags: {post['tags']}\n" if post['tags'] != [] else f"tags: ['untagged'] \n"
else:
newpost += f"tags: ['untagged'] \n"
if 'categories' in post.keys():
newpost += f"categories: {post['categories']}\n" if post['categories'] != [] else f"categories: ['reflection'] \n"
if 'authors' in post.keys():
newpost += f"authors: {post['authors']}\n" if post['authors'] != [] else f"authors: ['damian'] \n"
else:
newpost += f"categories: ['reflection'] \n"
newpost += f"authors: ['damian'] \n"
newpost += f"draft: {post['draft']}\n" if 'draft' in post.keys() else f"draft: false \n"
if 'lastmod' in post.keys(): newpost += f"lastmod: {post['lastmod']}\n"
if 'url' in post.keys(): newpost += f"url: {post['url']}\n"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# This call to setup() does all the work
setup(
name="obsidian-parser",
version="0.3.3",
version="0.3.5",
description="Grabs all the notes from an Obsidian vault and processes them into a Hugo content directory.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 829d05c

Please sign in to comment.