<img src="{{ fn('wp_get_attachment_image_url', post.thumbnail.id, 'medium') }}"
srcset="{{ fn('wp_get_attachment_image_srcset', post.thumbnail.id, 'medium' ) }}"
sizes="(max-width: 1024px) 100vw, 1024px"
alt="Post thumbnail">
Great for debugging. Uses the collapsable details element.
{% if user.wp_capabilities.administrator or site.url|split('//localhost')|length %}
<details>
<summary>Dump</summary>
{{ dump(post) }}
</details>
{% endif %}
{{ if post.a_checkbox is empty }}
// Do stuff if unchecked or does not exist
{{ else }}
// Do stuff if checked
{{ endif }}
$context['the_categories'] = Timber::get_terms('my_category');