vaersaagod / seomate

SEO, mate! It's important. That's why SEOMate provides the tools you need to craft all the meta tags, sitemaps and JSON-LD microdata you need - in one highly configurable, open and friendly package - with a super-light footprint.
MIT License
36 stars 8 forks source link

How to overwrite image within a twig-template ? #40

Closed amkdev closed 4 years ago

amkdev commented 4 years ago
       {% set seomate = {
            image: imageObject????
        } %}

Is it possible to overwrite the default image within a twig template?

I need to use the second image of an image field as default image on a special section type.

aelvan commented 4 years ago

When overriding meta data, you do that within the meta key of the seomate, try:

{% set seomate = {
    meta: {
        image: asset
    }
} %}