Skip to content

Commit

Permalink
no whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored May 20, 2023
1 parent 69434d6 commit 6b0cedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/import_jekyll/import_jekyll.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ def extract_title():
return None
name = m.group('name')
return name

def extract_image():
raw_image = jmetadata.get('image')
new_image_path = ''
if isinstance(raw_image, str):
new_image_path = raw_image.replace('/assets', '/images')
new_image_path = new_image_path.replace('posts/images', 'posts')
return new_image_path

tags = [x for x in jmetadata.get('tags') or [] if x]
categories = [x for x in jmetadata.get('categories') or [] if x]

Expand Down

0 comments on commit 6b0cedf

Please sign in to comment.