Skip to content

Conversation

didoo
Copy link
Contributor

@didoo didoo commented Jan 30, 2023

📌 Summary

Since the previous fix #1032 didn't work (the image is not fingerprinted) let's try to use a static value instead of a config value.


👀 Reviewer's checklist:

💬 Please consider using conventional comments when reviewing this PR.

@didoo didoo requested a review from KristinLBradley January 30, 2023 21:15
@vercel
Copy link

vercel bot commented Jan 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hds-components ✅ Ready (Inspect) Visit Preview Jan 30, 2023 at 10:16PM (UTC)
hds-flight-website ✅ Ready (Inspect) Visit Preview Jan 30, 2023 at 10:16PM (UTC)
hds-website ✅ Ready (Inspect) Visit Preview Jan 30, 2023 at 10:16PM (UTC)

@didoo didoo force-pushed the new-docs-website/fix-twitter-part2 branch from 34c0f36 to 19a8bdc Compare January 30, 2023 21:42
@vercel vercel bot temporarily deployed to Preview – hds-flight-website January 30, 2023 21:44 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components January 30, 2023 21:45 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website January 30, 2023 22:15 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components January 30, 2023 22:16 Inactive
@didoo didoo merged commit ac3f6d5 into main Jan 30, 2023
@didoo didoo deleted the new-docs-website/fix-twitter-part2 branch January 30, 2023 22:28
@didoo
Copy link
Contributor Author

didoo commented Jan 30, 2023

Seems (in theory) to have worked
screenshot_2309
/cc @KristinLBradley @Dhaulagiri

{{#if this.model.imgSrc}}
<meta property="og:image" content={{this.model.imgSrc}} />
{{/if}}
<meta property="og:image" content="https://helios.hashicorp.design/assets/logos/share-card.jpg" />
Copy link
Collaborator

@Dhaulagiri Dhaulagiri Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A side effect of this change is that we are no longer using the logic defined here to update the image where we have a more specific one defined for things like components or foundations

Copy link
Contributor Author

@didoo didoo Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #1158 to take into account also this logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dhaulagiri on a side note: that's why I didn't like the idea of having the config data in the environment.js file (even it's an Ember pattern). Because now things/logic/definitions are scattered around in multiple places, and one needs to know it, and know where, otherwise some pieces are lost (like in this case).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants