Skip to content

Commit

Permalink
italicise comments
Browse files Browse the repository at this point in the history
  • Loading branch information
callum-oakley committed Jul 7, 2019
1 parent c06dd6f commit b665aa0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions templates/post.handlebars
Expand Up @@ -4,13 +4,19 @@
<div>{{{dot.content}}}</div>
<p class="date">Written on the {{dot.metadata.date}}.</p>
{{#if (and dot.metadata.hacker_news dot.metadata.reddit)}}
Comments on <a href="{{dot.metadata.hacker_news}}">Hacker News</a> or <a href="{{dot.metadata.reddit}}">Reddit</a>.
<p class="comments">
Comments on <a href="{{dot.metadata.hacker_news}}">Hacker News</a> or <a href="{{dot.metadata.reddit}}">Reddit</a>.
</p>
{{/if}}
{{#if (and dot.metadata.hacker_news (not dot.metadata.reddit))}}
Comments on <a href="{{dot.metadata.hacker_news}}">Hacker News</a>.
<p class="comments">
Comments on <a href="{{dot.metadata.hacker_news}}">Hacker News</a>.
</p>
{{/if}}
{{#if (and (not dot.metadata.hacker_news) dot.metadata.reddit)}}
Comments on <a href="{{dot.metadata.reddit}}">Reddit</a>.
<p class="comments">
Comments on <a href="{{dot.metadata.reddit}}">Reddit</a>.
</p>
{{/if}}
</div>
{{> footer}}

0 comments on commit b665aa0

Please sign in to comment.