src/views/templates/partials/post.hbs
<article class="post">
<header>
<div class="title">
<h2>
<a href="/single-post/{{id}}">
{{title}}
</a>
</h2>
<p>{{>tags tags}}</p>
</div>
<div class="meta">
<time class="published" datetime=(dateFormatter date)>
{{dateFormatter date}}
</time>
<a
href="https://renzhen1024.com/u/sambro/summary"
class="author"
target="_blank"
>
<span class="name">
{{name}}
</span>
<img src="{{authorImageUrl}}" alt="" />
</a>
</div>
</header>
{{#if heroImage}}
<a href="/single-post/{{id}}" class="image featured heroImage">
<img src={{heroImage.srcStr}} alt={{heroImage.altStr}} />
</a>
{{/if}}
<p>
{{#if content}}
{{{content}}}
{{else}}
{{t "i18n-content-is-hidden"}}
{{/if}}
</p>
<footer>
<ul class="actions">
<li>
<a href="/single-post/{{id}}" class="button large">
{{t "i18n-post-continue-reading"}}
</a>
</li>
</ul>
<ul class="stats">
<li>
<a href="#" class="border-none">
{{t "i18n-post-category" category=category}}
</a>
</li>
<li>
<a href="#" class="icon fa-heart">
{{numLikes}}
</a>
</li>
<li>
<a href="#" class="icon fa-comment">
{{numComments}}
</a>
</li>
</ul>
</footer>
</article>