Description metadata seems to be ignored by Obsidian Publish

Hi WhiteNoise, thanks for the quick reply!

The description only affects the social cards not the html

Apologies if I’m misunderstanding something, but the the linked documentation states:

description overrides the auto-generated
description in ‹meta name="description"
content="..."> and the equivalents for
og: description and twitter: description.

So this appears to indicate that both the social and page description should be replaced?

In any case, even if this feature were intended to only replace the social description - the content (“An introduction to our solar system”) would still need to be present in the rendered HTML since that’s where the og:description information is provided.

The rendered page HTML does have the necessary description and og:description meta tags, the tag content is just wrong (it’s the default auto-generated content).

So do social card work correctly for your website?

No, the social card’s description is also broken (using the default auto-generated content).

To be very clear, rendered pages currently include the following HTML:

<meta name="description" content="PageName - MySite.com - Powered by Obsidian Publish.">
<meta property="og:description" content="PageName - MySite.com - Powered by Obsidian Publish.">

But should instead include the following HTML:

<meta name="description" content="An introduction to our solar system.">
<meta property="og:description" content="An introduction to our solar system.">
3 Likes