I just want to know why the date that appears when I’m on the article page or when I open or read the article is “today’s date” and not the published date. However, if I just visit the blog page and don’t open the article, the published date of the article is displayed there. How can I change this? What do I need to do?
Thank you.
Hey @Jessa1 this is likely down to the template you’re using. The dates are pulled in through what are called hubl variables, the variable on the post is likely incorrect. I’d recomend reaching out to your developer, or the developer who created your blog template to update this!
Hi @Jessa1 , the date that appears when you’re viewing an article can be customized to show either the publication date or another date, such as the last updated date. This user here has provided the snippet. You can try it out!
Thanks!
Hi!
Good day! Where can I input this code?
<div class=“blog-post__meta”>
<time datetime=“{{ content.publish_date }}” class=“blog-post__timestamp”>
{{ content.publishDate|datetimeformat(‘%B %e, %Y’) }}
</time>
</div>
Thank you so much.