Remove # in tag names

This commit is contained in:
Jonathan Sundqvist 2021-07-03 13:41:04 +02:00
parent d1d89794d5
commit 28eeacbba4
2 changed files with 8 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
**.egg-info/*
__pycache__

View File

@ -15,11 +15,14 @@ def modify_article_content(article_generator, content):
pass
def modify_metadata(article_generator, context):
def modify_metadata(article_generator, metadata):
"""
Modify the metadata
Modify the tags so we can define the tags as we are used to in obsidian.
"""
pass
for tag in metadata['tags']:
if '#' in tag.name:
tag.name = tag.name.replace('#', '')
def register():