metadata:
description: 'Herstellerunabhängig, Kugellagerrollen für leichten und leisen Lauf bei langer Haltbarkeit. Ab 20€ - rufen Sie uns an 030 / 120 11 352'
refresh: '30'
generator: Grav
keywords: 'Koffer Rollen Ersatz Räder reparieren austauschen'
author: 'Wolf Drechsel'
robots: 'index, follow'
my_key: my_value
---
> # Koffer Rollen ersetzen
> Die oft minderwertigen - oder einfach verschlissenen - Rollen der meisten Koffer lassen sich leicht gegen hochwertige, kugelgelagerte austauschen. ```
Whatever I do - the contents of the "description" metadata are not shown in the page's source code and cannot be found by a analysis tool like [https://www.seocentro.com/tools/search-engines/metatag-analyzer.html](https://www.seocentro.com/tools/search-engines/metatag-analyzer.html). Instead the first lines of my page content is used.
What could be wrong ? - Grav 1.5.6
Cheers,
Wolf
Think you misunderstood me. The analysis tool shows for “Description”:
“Koffer Rollen ersetzen als ServiceWir haben Erfahrung im Austausch von Koffer und Trolleyrollen seit 2014…”, which is the beginning of my page contents.
But I inserted there: “Herstellerunabhängig, Kugellagerrollen für leichten und leisen Lauf bei langer Haltbarkeit. Ab 20€ - rufen Sie uns an 030 / 120 11 352”
I tried to create metadata to other pages on my site, as well as new sites. Nowhere my individual metadata show up, always the first lines of page contents are used for that.
Hi, thanks for your care.
I have text in user/config/site.yaml-description: ‘mytexthere’, and it shows up in the source code, meta data analysis tools can find it and say Meta Description is “mytextthere”; but only after I altered “summary” to “false”.
But it is not the individual Meta Description text for that specific sub-page. I think this one should be there.
So what you’re saying is meta desctription is set the same for all pages and based on the site config setting or first para. In that case you would need to adjust or override the current page layout, or specify a new layout (may already exist) so the page in question pulls from the page meta where appropriate.
Thank you very much for your patience.
I’m quite certain to have intended correctly, as I copied the code from the documentation. It is quoted above, so you could check it.
I created a frontmatter.yaml in the directory where default.de.md lives with this content:
generator: 'Super Grav'
description: 'Give your page a powerup with Grav!'
as well as:
metadata:
generator: 'Super Grav'
description: Give your page a powerup with Grav!
Thanks to a fellow friend who wrote a PM to me, I found that deactivating the “Social & SEO
Meta tags” plugin leads close to the desired results. This plugin may contain a bug. We’re examining this at the moment.
TL;DR: It is a mix of issues caused by plugin and theme:
Plugin ‘Social & Seo Meta Tags’ falsely overlooks a ‘metadata:description’ definition in pages and generates a description based on the summary of page.
Theme Machine leads to a second issue with duplicate <meta name=“description”> tags.
First part of page content is being used as meta:description (Grav doesn’t do that).
Enabled/disabled summary having influence on the description.
It all works fine on my own fresh install.
… I got the feeling it has nothing to do with Grav itself, but possibly with a SEO plugin.
So I looked at some of the SEO plugins and found that TinySeo ignores the usual Grav frontmatter ‘metadata:description’ in pages.
OP appeared to be using plugin ‘Social & Seo Metatags’ instead. This plugin does check for the presence of ‘metadata:description’, but unfortunately it never finds it due to a bug.
After fixing the above, the description became a concatenation of the value of ‘metadata:description’ in the page and the value of ‘site:metadata:description’ in ‘site.yaml’
This is caused by theme Machine that includes two different <meta name=“description”> tags based on two different values.