Hi, I want to add an image alongside my text within a text component.
I have located the text.hbs file and have added the following code (shown in bold):
<div class="text-inner component-inner">
{{#if title}}
<div class="text-title component-title">
<h4 class="text-title-inner component-title-inner">
{{{title}}}
</h4>
</div>
{{/if}}
{{#if body}}
<div class="text-body component-body">
<div class="text-body-inner component-body-inner">
{{{body}}}
</div>
</div>
{{/if}}
{{/if}}
{{#if graphic}}
<div class="text-graphic component-graphic-inner">
<img src="{{graphic.src}}" alt="{{graphic.alt}}" title="{{{graphic.title}}}"/>
</div>
{{/if}}
</div>
I have inserted a graphic name/value pair within my components.json file and re-built but I am getting the following error:
Warning: Handlebars failed to compile src/components/adapt-contrib-text/templates/text.hbs. Use --force to continue. Aborted due to warnings.
I am very new to Adapt and wonder if someone could please tell me where I am going wrong.
Thanks in advance for any help
Julie