mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
dbe00929d3
Refs https://ghost.slack.com/archives/C019B1K4FAM/p1699127038805739 - Removed mobile styles so that latest posts are always in the same layout, instead of in a single column on mobile - Fixed img caption font size rendering too large on mobile
40 lines
1.9 KiB
Handlebars
40 lines
1.9 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>
|
|
<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 class="latest-post-excerpt">
|
|
<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}}
|