matt-j-m / grav-plugin-aura

The Aura Plugin for Grav CMS adds meta tags and structured data to your pages for visually appealing and informative search results and social media shared links.
MIT License
26 stars 7 forks source link

With set multilanguage doesn't work #13

Closed 01Kuzma closed 3 years ago

01Kuzma commented 3 years ago

It seems that with multi language and Grav 1.7 plug-in doesn't work. Only once switched to default language meta data is rendered, while switching to secondary language meta tags renders: " . . . "

Karmalakas commented 3 years ago

Did you save a page in second language? I have no issue there (both LT and EN are rendered)

01Kuzma commented 3 years ago

@Karmalakas, that's strange, on one website everything works fine, on other the secondary language doesn't render description and keyword tags... Probably I should debug deeper

Karmalakas commented 3 years ago

Check how page frontmatter looks like. Default metadata template (unless you use custom) takes everything from page.metadata, which is saved in frontmatter as:

metadata:
  'og:description': 'Description'
01Kuzma commented 3 years ago

Thank you! On localhost it works, while on production - it's struggles. Probably there is a typo somewhere on a production version :/

01Kuzma commented 3 years ago

My bad, it was a conflict with other plug-in

Karmalakas commented 3 years ago

You use two plugins for metadata? Which other one?

01Kuzma commented 3 years ago

It was grav-plugin-seo I used it in past to change some data, so there was a conflict between them. I just've deleted it