Skip to content

Instantly share code, notes, and snippets.

@Chalkin
Created July 17, 2019 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chalkin/636157366d53e324df8172ef5a1f8ac9 to your computer and use it in GitHub Desktop.
Save Chalkin/636157366d53e324df8172ef5a1f8ac9 to your computer and use it in GitHub Desktop.
{{ sections }}
...
{{ if type == 'extended_content' }}
<div class="section-empty">
<div class="container content">
{{ if type == "text" }}
<div class="text">
{{ text }}
</div>
{{ elseif type == "image" }}
<figure>
<img src="{{ image }}" alt="{{ caption }}" />
<figcaption>{{ caption }}</figcaption>
</figure>
{{ /if }}
</div>
</div>
...
{{ /if }}
{{ /sections }}
@jackmcdade
Copy link

Do you have any other vars named body or content that might be conflicting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment