Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

Empty content for meta name"description"

plugins theme

Solved by P. Mergey View solution

Started by P. Mergey 6 years ago · 1 replies · 740 views
6 years ago

I'm currently working on a forked theme and I'm facing an issue with the insertion of meta name= "description".

Indeed, while everything works with post and page templates, this metadata doesn't return any content for the homepage. Where it should be something as <meta name="description" content="{{ site.description }}"/> for example, the generated code remains only this single line : <meta name="description" /> without any content).

I looked for any solution on this forum, but I don't think that this issue is related to this question for example (because I don't use same extensions). Nevertheless, an extension (grav-plugin-seo) is installed to manage metadata: I have checked its configuration and everything seems working for the homepage in the admin panel.

As I don't understand all the subtleties of the loop set in system\templates\partials\metadata.html.twig, I admit that I don't know how to find a solution.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Slebeig, 3 weeks ago
4 221 3 weeks ago
Themes & Styling · by Pedro M, 3 months ago
4 492 2 months ago
Themes & Styling · by Ian, 3 months ago
3 263 3 months ago
Themes & Styling · by Norbert, 2 years ago
11 649 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 202 3 months ago