Add article updated date for blog post

Mavi90
Excursionist
31 0 4

I'm working on improving my site's SEO, which has significantly declined. From my research, updating older blogs with new information and including an updated date is recommended.

 

Since my site is hosted on Shopify and currently displays the published date, should I add an updated date, or should I change the published date?

 

I’ve been reading mixed things. Some say you should adjust published dates if I write something new or change something significantly. Others say to leave the original published date intact can help maintain and context and credibility.

 

Check out my site at feedmomandme.com.

Reply 1 (1)

Mavi90
Excursionist
31 0 4

I figured this out on my own! YAYAYYA MEEE

 

Go to Online Store > The three dots on your Current theme > Edit Code > Search for article-template.liquid

 

Within the first 10 lines look for:

{% if section.settings.blog_show_date %}
<span class="article__date">
{{ article.published_at | time_tag: format: 'date' }}
</span>
{% endif %}
 
and updated with:
 
{% if section.settings.blog_show_date %}
<span class="article__date">
Published: {{ article.published_at | time_tag: format: 'date' }}<br>
{% if article.updated_at %}
Updated: {{ article.updated_at | time_tag: format: 'date' }}
{% endif %}
</span>
{% endif %}
 
I added Published: and Updated: to the dates.
 
Enjoy!!
 
Screenshot 2024-02-19 at 8.20.27 PM.pngScreenshot 2024-02-19 at 8.20.41 PM.png