Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frederiktoft opened this issue Jun 7, 2021 · 2 comments

Comments

@frederiktoft
Copy link

frederiktoft commented Jun 7, 2021

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".

@Shazwazza
Copy link
Owner

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?

@frederiktoft
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants