Remove # in tag names

main
Jonathan Sundqvist 3 years ago
parent d1d89794d5
commit 28eeacbba4
  1. 2
      .gitignore
  2. 9
      pelican/plugins/obsidian/obsidian.py

2
.gitignore vendored

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

@ -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():

Loading…
Cancel
Save