mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
🐛 Fixed alt="null"
for feature image in emails
no issue - when no alt text was set for feature images we were incorrectly rendering `alt="null"` in emails
This commit is contained in:
parent
62ee693310
commit
9c5a25b060
@ -954,7 +954,7 @@ ${ templateSettings.showBadge ? `
|
||||
</tr>
|
||||
${ templateSettings.showFeatureImage && post.feature_image ? `
|
||||
<tr>
|
||||
<td class="feature-image ${hasFeatureImageCaption ? 'feature-image-with-caption' : ''}"><img src="${post.feature_image}"${post.feature_image_width ? ` width="${post.feature_image_width}"` : ''} alt="${post.feature_image_alt}"></td>
|
||||
<td class="feature-image ${hasFeatureImageCaption ? 'feature-image-with-caption' : ''}"><img src="${post.feature_image}"${post.feature_image_width ? ` width="${post.feature_image_width}"` : ''}${post.feature_image_alt ? ` alt="${post.feature_image_alt}"` : ''}></td>
|
||||
</tr>
|
||||
` : ``}
|
||||
${ hasFeatureImageCaption ? `
|
||||
|
Loading…
Reference in New Issue
Block a user