Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying comments on tiles #510

Open
wftl opened this issue Mar 22, 2023 · 1 comment
Open

Displaying comments on tiles #510

wftl opened this issue Mar 22, 2023 · 1 comment

Comments

@wftl
Copy link

wftl commented Mar 22, 2023

Is there a way to do this? I'm subscribed to the GHOST Pro tier that, theoretically, allows me to edit a theme. Ideally, it would just be a simple line above the date and time to read. For example.

 7 Comments
 8 days ago    *    5 min read

Just something like that would be awesome. Thanks!

@Phonbopit
Copy link

You can edit partials/loop.hbs file by adding this line 39:

{{comment_count empty="" singular="comment" plural="comments" autowrap="span" class=""}}

but it will add the same line as published date

or If you need a position above the date and time to read, you can wrap with div

<div>
  {{comment_count empty="0 comment" singular="comment" plural="comments" autowrap="span" class=""}}
  <div  class="m-article-card__timestamp">
    <span>{{date published_at timeago="true"}}</span>
    <span>&bull;</span>
    <span>{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
  </div>
</div>

Reference : https://ghost.org/docs/themes/helpers/comments/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants