Hi Team,
I am facing few strange problems with @hst.headcontribution tag, I have checked the official documentation as well but no luck. Please help.
My Issue is if I am putting multiple items inside headcontribution its giving Error, However for single item its working perfectly fine. So take below example:
Example 1: Its working fine
<@hst.headContribution category="htmlHead">
<title>${document.title?html} - Dainikinsider </title>
</@hst.headContribution>
Example 2: Its not working and throwing Error
<@hst.headContribution category="htmlHead">
<title>${document.title?html} - Dainikinsider </title>
<meta content='${document.description?html}' name='description' ></meta>
<meta content='${document.keywords?html}' name='keywords' ></meta>
<meta content='${document.title?html}' property='og:title' ></meta>
<meta content='blog details canonical URL' property='og:url' ></meta>
<meta content='article' property='og:type' ></meta>
</@hst.headContribution>
NOTE: I Tried with inline meta tag as well, but that was also not working
Also it it possible to have Javascript code inside head contribution, I tried but It was not working
Now Below are my Questions based on above problems:
- If its not possible to place multiple items inside HeadContribution, then do we have any other way ?
- if its possible then what;s wrong with above code ?