We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5faba25 commit 6110d68Copy full SHA for 6110d68
pelican/plugins/featured_image/featured_image.py
@@ -30,7 +30,7 @@ def images_extraction(instance):
30
if not featured_image:
31
soup = BeautifulSoup(instance._content, "html.parser")
32
imageTag = soup.find("img")
33
- if imageTag:
+ if imageTag and imageTag.get("src"):
34
featured_image = imageTag["src"]
35
36
# Set the attribute to content instance
0 commit comments