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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

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 · 665 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 Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 43 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago