mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +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>
|
</tr>
|
||||||
${ templateSettings.showFeatureImage && post.feature_image ? `
|
${ templateSettings.showFeatureImage && post.feature_image ? `
|
||||||
<tr>
|
<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>
|
</tr>
|
||||||
` : ``}
|
` : ``}
|
||||||
${ hasFeatureImageCaption ? `
|
${ hasFeatureImageCaption ? `
|
||||||
|
Loading…
Reference in New Issue
Block a user