Hi, how can I add these HTML Attributes when using toHead from “vue-datocms”? Like I need to customize “data-wf-page” code on different page/templates. Thanks
Hi! Simply merge the result of toHead
with your own properties:
const datoMetaInfo = toHead(...);
return {
...datoMetaInfo,
htmlAttrs: {...},
link: [...datoMetaInfo.link, { rel: 'canonical', ... } ],
};
Hope this helps!
Wow, thanks! As always, a really helpful solution. I learned a lot with DatoCMS since 3 years.
1 Like