What should be the code for adding abstract in meta tags

I tried adding the abstract code in the meta tags (in article display.tpl), but that is showing in the main article page instead. This is the code what I have used. I want to show the description in the snippet, so what code should I use?

<meta property="og:description" content="{$article->getLocalizedAbstract()}|strip_unsafe_html}" />

Currently I am using authors name.

Dr. @Vitaliy, I think you are the only one using it. Is my code correct?

You should put meta-tags inside `headerHead.tpl"

1 Like

I tried there already but my front page went completely blank.

Put code inside if condition:

{if $requestedPage|escape == "article"}

1 Like

Awesome it worked. Thanks.