Trying to add date to Casper theme post cards


#1

I’ve been trying to edit the handlebars and css in my Casper theme so that each post card displays the date that the user posted it. I feel like I have tried EVERYTHING.

I tried following these instructions
https://docs.ghost.org/api/handlebars-themes/helpers/date/

The post.hbs has a datetime class, and, it works with the full post only.

As you can see, I added the same datetime line from the post.hbs to my post-card.hbs and edited the tag in the screen.css, still NOTHING:

What did I do wrong here? Does anybody have any suggestions? Please help.


#2

Did you restart Ghost after you made the change? Any changes made to the theme needs to be saved and then Ghost restarted to take effect.


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.