Open rossberenson opened 10 months ago
@rossberenson Apologies for the delayed response. This functionality is now supported in v1.8.2+ of eleventy-plugin-metagen
Go ahead and install the latest version npm i eleventy-plugin-metagen@latest
then utilize twitter_image
and og_image
for defining images specifically for Twitter or Open Graph. The custom
tag support has also been updated so your original examples should work as expected. Have a look at the most up-to-date docs and let me know if you still run into any issues. Thanks!
I have a metadata.js file that exports an object with global metadata. Everything works great except for custom tags.
With the above, everything outputs correctly except for custom. What would the proper formatting be for this situation, if its possible? I've been running into compiling issues when attempting the above.
Original error stack trace: TypeError: Cannot read property 'toLowerCase' of undefined [11ty] at getTag (/node_modules/get-tag/dist/get-tag.js:17:15)
Any help would be appreciated! My end goal is to add a custom
twitter:image
vs using the same image for bothog:image
andtwitter:image
. I was going to add a custom meta fortwitter:image
.