diff --git a/template/index.twig b/template/index.twig index 43e704f..36a6397 100644 --- a/template/index.twig +++ b/template/index.twig @@ -24,10 +24,10 @@
{{ post.vote }} votes - {{ post.created|ago }} + {{ post.created|ago }} by {{ post.username }} • - {{ post.commentsCount ? post.commentsCount ~ ' comments' : 'discuss' }} + {{ post.commentsCount ? post.commentsCount ~ ' comments' : 'discuss' }}
diff --git a/template/post.twig b/template/post.twig index 757c686..9aaca20 100644 --- a/template/post.twig +++ b/template/post.twig @@ -23,7 +23,7 @@
by {{ post.username }} {{ post.created|ago }} - — {{ post.vote }} votes, {{ post.commentsCount }} comments + — {{ post.vote }} votes, {{ post.commentsCount }} comments {% if user and post.userId == user.id %} — Edit @@ -37,6 +37,9 @@ {{ post.text|markdown|raw }}
+ {# An anchor for where the comments section starts #} + + {% if user %}