Ghost/ghost/email-service/lib/email-templates/partials/latest-posts.hbs
Simon Backx 814f7ac6fb Updated latest posts feature image resolution to 100x100
refs https://github.com/TryGhost/Team/issues/2675

Updated resolution to be square and 100x100 (200x200 actual to have retina).
2023-03-24 10:18:37 +01:00

51 lines
2.7 KiB
Handlebars

{{#each latestPosts}}
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="latest-post">
<a href="{{url}}" style="{{#if ../latestPostsHasImages}}{{#if featureImage}}height: 100px;{{else}}padding-bottom: 12px;{{/if}}{{/if}}">
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
{{#if ../latestPostsHasImages}}
{{#if featureImage}}
<td class="latest-post-img-mobile">
<img
src="{{featureImageMobile.src}}"
{{#if featureImageMobile.width }}
width="{{featureImageMobile.width}}"
{{/if}}
{{#if featureImageMobile.height }}
height="{{featureImageMobile.height}}"
{{/if}}
/>
</td>
{{/if}}
{{/if}}
<td valign="top" align="left" class="latest-post-title">
<h4 class="{{#if ../latestPostsHasImages}}{{#if (not featureImage)}}no-image{{/if}}{{/if}}">{{title}}</h4>
{{#if excerpt}}
<p>{{excerpt}}</p>
{{/if}}
</td>
{{#if ../latestPostsHasImages}}
{{#if featureImage}}
<td width="100" class="latest-post-img">
<img
src="{{featureImage.src}}"
{{#if featureImage.width }}
width="{{featureImage.width}}"
{{/if}}
{{#if featureImage.height }}
height="{{featureImage.height}}"
{{/if}}
/>
</td>
{{/if}}
{{/if}}
</tr>
</table>
</a>
</td>
</tr>
</table>
{{/each}}