From 829d05c32c93b3f75a11989fe4b4332f1be70cc4 Mon Sep 17 00:00:00 2001 From: Damian Flynn Date: Wed, 15 Feb 2023 23:21:54 +0000 Subject: [PATCH] fix: missing author duplicate category --- .github/scripts/release.py | 0 main.py | 2 +- obsidian_parser/obsidianparser.py | 6 +++--- setup.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) mode change 100755 => 100644 .github/scripts/release.py diff --git a/.github/scripts/release.py b/.github/scripts/release.py old mode 100755 new mode 100644 diff --git a/main.py b/main.py index c8f4b13..0d5675f 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ import argparse import os -__version__ = "0.3.3" +__version__ = "0.3.5" parser = argparse.ArgumentParser() diff --git a/obsidian_parser/obsidianparser.py b/obsidian_parser/obsidianparser.py index 46c07f6..0878d6d 100644 --- a/obsidian_parser/obsidianparser.py +++ b/obsidian_parser/obsidianparser.py @@ -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" diff --git a/setup.py b/setup.py index 5905e49..d6a2846 100644 --- a/setup.py +++ b/setup.py @@ -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",