Created
July 13, 2022 15:17
-
-
Save webrgp/4f03f99693d870354dd0093874a937a4 to your computer and use it in GitHub Desktop.
CraftCMS content blocks partial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# prettier-ignore #} | |
{% if blocks is defined and blocks is iterable %} | |
{% for blk in blocks %} | |
{% if blk.type is defined %} | |
{% include '_blocks/_' ~ blk.type ~ '.twig' ignore missing with { | |
blk: blk, | |
index: loop.index, | |
} %} | |
{% endif %} | |
{% endfor %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment