Skip to content

Commit

Permalink
verify image on post
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored May 20, 2023
1 parent 6b0cedf commit a1b486f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v7/import_jekyll/import_jekyll.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ def extract_image():
metadata['title'] = extract_title()
metadata['slug'] = slugify_file(path)
metadata['date'] = extract_date()
metadata['previewimage'] = extract_image()
if 'image' in jmetadata:
metadata['previewimage'] = extract_image()
if 'description' in jmetadata:
metadata['description'] = jmetadata['description']
metadata['tags'] = ','.join(tags + categories)
Expand Down

0 comments on commit a1b486f

Please sign in to comment.