# {% ifchanged %} code disables blog post accessibility?

**URL:** <https://community.hubspot.com/t/ifchanged-code-disables-blog-post-accessibility/33876>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [March 15, 2021, 2:01pm UTC](https://community.hubspot.com/t/ifchanged-code-disables-blog-post-accessibility/33876 "2021-03-15T14:01:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dani\_k](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dani_k/32/57633_2.png) [@dani\_k](https://community.hubspot.com/u/dani_k)\
**Post date:** [March 15, 2021, 2:01pm UTC](https://community.hubspot.com/t/ifchanged-code-disables-blog-post-accessibility/33876/1 "2021-03-15T14:01:46Z")

</div>

[Saw a new little paragraph on this beauty here for ifchanged.](https://developers.hubspot.com/docs/cms/hubl/if-statements) However,

```lia-code-sample
{% ifchanged %}
(<i>Updated</i> {{ content.updated|datetimeformat('%Y/%m/%d') }})
{% endifchanged %}

```

these three lines load a white screen on ALL blog posts. Blog listings, I believe, were unaffected.

//edit: goal is, if content was updated after publishing, then include “(Updated [date])” text.

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [March 15, 2021, 2:45pm UTC](https://community.hubspot.com/t/ifchanged-code-disables-blog-post-accessibility/33876/2 "2021-03-15T14:45:14Z")

</div>

[@dani\_k](https://community.hubspot.com/t5/user/viewprofilepage/user-id/54846) you need to add the condition to the if statement like so:

```lia-code-sample
{% ifchanged my_variable %}
// your code
{% endifchanged %}

```

You may want to try a different approach and instead use the ` **content.updated** ` and the ` **content.publish\_date** ` variables with the `**[|between\_times](https://developers.hubspot.com/docs/cms/hubl/filters#between-times)**` filter.
