Skip to content

Commit

Permalink
fix: tags on index loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmonjo committed Feb 26, 2024
1 parent 297e800 commit 42b3b42
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions partials/loop.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@

{{/if}}
<div {{#if feature_image}}class="content-column" {{/if}}>
{{#unless feature_image}}<span class="article-tag">{{primary_tag.name}}</span>{{/unless}}
{{#unless feature_image}}
{{#if primary_tag}}
<span class="article-tag">{{primary_tag.name}}</span>
{{/if}}
{{/unless}}
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<span class="post-meta">
{{t "By"}}
{{authors separator=", "}}
{{#primary_tag}}{{t "in"}} <a class="post-meta-tag" href="{{url}}">{{name}}</a>{{/primary_tag}}

{{t "on"}}
<time datetime="{{date format='DD-MM-YYYY'}}">{{date format="DD MMM YYYY"}}</time>
</span>
Expand Down

0 comments on commit 42b3b42

Please sign in to comment.