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 · 854 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 stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 317 2 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago