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 · 802 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 Sebadamus, 2 days ago
3 74 5 hours ago
Themes & Styling · by martynfoster735, 4 days ago
1 161 3 days ago
Themes & Styling · by Justin Young, 3 weeks ago
1 221 2 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 349 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 709 3 months ago