🐛 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:
Kevin Ansfield 2021-07-15 09:44:34 +01:00
parent 62ee693310
commit 9c5a25b060

View File

@ -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 ? `