|
|
|
<div class="card background-link-container" style="border-color: {../bgColor}">
|
|
|
|
{{{each ./posts}}}
|
|
|
|
<!-- IF @first -->
|
|
|
|
<div component="category/posts">
|
|
|
|
<a class="background-link" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->"></a>
|
|
|
|
<p>
|
|
|
|
<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
|
|
|
|
<a class="permalink" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">
|
|
|
|
<small class="timeago" title="{../timestampISO}"></small>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<div class="post-content">
|
|
|
|
{../content}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- ENDIF @first -->
|
|
|
|
{{{end}}}
|
|
|
|
|
|
|
|
<!-- IF !../posts.length -->
|
|
|
|
<div component="category/posts">
|
|
|
|
<div class="post-content">
|
|
|
|
[[category:no_new_posts]]
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- ENDIF !../posts.length -->
|
|
|
|
</div>
|