<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: {% ifchanged %} code disables blog post accessibility? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/ifchanged-code-disables-blog-post-accessibility/m-p/418665#M21721</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54846"&gt;@dani_k&lt;/a&gt;&amp;nbsp;you need to add the condition to the if statement like so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% ifchanged my_variable %}
// your code
{% endifchanged %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to try a different approach and instead use the `&lt;SPAN&gt;&lt;STRONG&gt;content.updated&lt;/STRONG&gt;` and the `&lt;STRONG&gt;content.publish_date&lt;/STRONG&gt;` variables with the `&lt;STRONG&gt;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/filters#between-times" target="_blank" rel="noopener"&gt;|between_times&lt;/A&gt;&lt;/STRONG&gt;` filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 14:45:14 GMT</pubDate>
    <dc:creator>stefen</dc:creator>
    <dc:date>2021-03-15T14:45:14Z</dc:date>
    <item>
      <title>{% ifchanged %} code disables blog post accessibility?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/ifchanged-code-disables-blog-post-accessibility/m-p/418651#M21720</link>
      <description>&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/if-statements" target="_blank" rel="noopener"&gt;Saw a new little paragraph on this beauty here for ifchanged.&lt;/A&gt; However,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% ifchanged %}
(&amp;lt;i&amp;gt;Updated&amp;lt;/i&amp;gt; {{ content.updated|datetimeformat('%Y/%m/%d') }})
{% endifchanged %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;these three lines load a white screen on ALL blog posts. Blog listings, I believe, were unaffected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//edit: goal is, if content was updated after publishing, then include "(Updated [date])" text.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:07:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/ifchanged-code-disables-blog-post-accessibility/m-p/418651#M21720</guid>
      <dc:creator>dani_k</dc:creator>
      <dc:date>2021-03-15T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: {% ifchanged %} code disables blog post accessibility?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/ifchanged-code-disables-blog-post-accessibility/m-p/418665#M21721</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54846"&gt;@dani_k&lt;/a&gt;&amp;nbsp;you need to add the condition to the if statement like so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% ifchanged my_variable %}
// your code
{% endifchanged %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to try a different approach and instead use the `&lt;SPAN&gt;&lt;STRONG&gt;content.updated&lt;/STRONG&gt;` and the `&lt;STRONG&gt;content.publish_date&lt;/STRONG&gt;` variables with the `&lt;STRONG&gt;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/filters#between-times" target="_blank" rel="noopener"&gt;|between_times&lt;/A&gt;&lt;/STRONG&gt;` filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:45:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/ifchanged-code-disables-blog-post-accessibility/m-p/418665#M21721</guid>
      <dc:creator>stefen</dc:creator>
      <dc:date>2021-03-15T14:45:14Z</dc:date>
    </item>
  </channel>
</rss>

