mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
387dfa59c9
Refs https://github.com/TryGhost/Team/issues/2801 - It was not possible to click latest post links in Outlook due to <a> tag wrapping around a table - The post meta data wouldn't display properly when centered in Outlook --------- Co-authored-by: Simon Backx <simon@ghost.org>
57 lines
2.8 KiB
Handlebars
57 lines
2.8 KiB
Handlebars
{{#each latestPosts}}
|
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="latest-post">
|
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
{{#if ../latestPostsHasImages}}
|
|
{{#if featureImage}}
|
|
<td class="latest-post-img-mobile">
|
|
<a href="{{url}}">
|
|
<img
|
|
src="{{featureImageMobile.src}}"
|
|
{{#if featureImageMobile.width }}
|
|
width="{{featureImageMobile.width}}"
|
|
{{/if}}
|
|
{{#if featureImageMobile.height }}
|
|
height="{{featureImageMobile.height}}"
|
|
{{/if}}
|
|
/>
|
|
</a>
|
|
</td>
|
|
{{/if}}
|
|
{{/if}}
|
|
<td valign="top" align="left" class="latest-post-title">
|
|
<h4 class="{{#if ../latestPostsHasImages}}{{#if (not featureImage)}}no-image{{/if}}{{/if}}">
|
|
<a href="{{url}}">{{{title}}}</a>
|
|
</h4>
|
|
{{#if excerpt}}
|
|
<p>
|
|
<a href="{{url}}">{{{excerpt}}}</a>
|
|
</p>
|
|
{{/if}}
|
|
</td>
|
|
{{#if ../latestPostsHasImages}}
|
|
{{#if featureImage}}
|
|
<td width="100" class="latest-post-img">
|
|
<a href="{{url}}">
|
|
<img
|
|
src="{{featureImage.src}}"
|
|
{{#if featureImage.width }}
|
|
width="{{featureImage.width}}"
|
|
{{/if}}
|
|
{{#if featureImage.height }}
|
|
height="{{featureImage.height}}"
|
|
{{/if}}
|
|
/>
|
|
</a>
|
|
</td>
|
|
{{/if}}
|
|
{{/if}}
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{{/each}}
|