Articulate icon indicating copy to clipboard operation
Articulate copied to clipboard

Html.SocialMetaTags helper does not produce the desired meta tags on the front page.

Open frederiktoft opened this issue 3 years ago • 2 comments

When sharing the root of an articulate website, the frontpage, on social media like facebook, the output is just "archive" with no media or description. When inspecting the source in a web browser the meta tags looks like so:

<meta name="description" content="removed for privacy" />
<meta name="twitter:card" value="summary">
<meta content="Archive" property="og:title" />
<meta content="article" property="og:type" />
<meta content="https://www.removedforprivacy.com/archive/" property="og:url" />

The description is the only output that is as desired, which is the blog description, the rest are taken from the archive sub-page. Expected output should have been the blogs title in the title meta data, and the url pointing to the root. Also there is no image meta data like in the individual blog posts, in this case it should point to the blog banner image. Lastly type meta data should be "website".

frederiktoft avatar Jun 07 '21 21:06 frederiktoft

Thanks for the report :) I've marked as help wanted. This should be a relatively trivial change for a PR. Of course you are in full control of your template markup so you could work around it there. Are you using a built in theme?

Shazwazza avatar Jun 07 '21 23:06 Shazwazza

I am using a custom theme, but it was built leaning heavily on the built in themes, so of course the html helpers are used extensively.

frederiktoft avatar Jun 08 '21 13:06 frederiktoft