Skip to content

Commit

Permalink
Add conditional logic to comment link
Browse files Browse the repository at this point in the history
Only show comment link if comments=true for the post
  • Loading branch information
jabenninghoff committed Nov 22, 2015
1 parent 5b60932 commit 5757f45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ <h1 class="post-title">

{{ post.content }}

{% if post.comments %}
<a class="comment" href="{{ site.baseurl }}{{ post.url }}">comment</a>

{% endif %}
</article>
{% endfor %}
</div>
Expand Down

0 comments on commit 5757f45

Please # to comment.