소스 검색

Merge pull request #1035 from Lucas-C/fixing_representative_image_missing_Draft_class

Fixing import in representative_image plugin - cf. #953
Justin Mayer 6 년 전
부모
커밋
5a9d6af7b4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      representative_image/representative_image.py

+ 2 - 2
representative_image/representative_image.py

@@ -1,13 +1,13 @@
 import six
 from pelican import signals
-from pelican.contents import Article, Draft, Page
+from pelican.contents import Article, Page
 from pelican.generators import ArticlesGenerator
 from bs4 import BeautifulSoup
 
 
 def images_extraction(instance):
     representativeImage = None
-    if type(instance) in (Article, Draft, Page):
+    if type(instance) in (Article, Page):
         if 'image' in instance.metadata:
             representativeImage = instance.metadata['image']