Ghost/ghost/email-service/lib/email-templates/partials/latest-posts.hbs
Sanne de Vries 3f0ec1af3d Updated subscription box in email preview and email template
Refs https://github.com/TryGhost/Team/issues/2738

- With all footer additions and changes, the subscription box did not match the rest of the design and is therefore updated.
2023-03-23 19:39:58 +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: 96px;{{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="120" 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}}