newsletter template improvements

This commit is contained in:
keyan 2023-09-03 11:59:55 -05:00
parent 89e64351dd
commit e6ffeb8f76
1 changed files with 4 additions and 3 deletions

View File

@ -61,11 +61,12 @@ Have a great weekend!
##### Top Posts
${top.data.items.items.slice(0, 10).map((item, i) =>
`${i + 1}. [${item.title}](https://stacker.news/items/${item.id})${item.url ? `\n - ${item.url}` : ''}
- ${abbrNum(item.sats)} sats${item.boost ? ` \\ ${abbrNum(item.boost)} boost` : ''} \\ ${item.ncomments} comments\n`).join('')}
`${i + 1}. [@${item.user.name}](https://stacker.news/${item.user.name}) [${item.title}](https://stacker.news/items/${item.id})
- [${item.title}](https://stacker.news/items/${item.id})
- ${abbrNum(item.sats)} sats${item.boost ? ` \\ ${abbrNum(item.boost)} boost` : ''} \\ ${item.ncomments} comments\n`).join('')}
##### Don't miss
${top.data.items.items.slice(0, 15).map((item, i) =>
${top.data.items.items.map((item, i) =>
`- [${item.title}](https://stacker.news/items/${item.id})\n`).join('')}
##### Top meta