-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: adds opengraph to records #1042
Conversation
Affected libs:
|
📷 Screenshots are here! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, very interesting feature! Could you maybe put all the meta-related features in a component in the feature/record lib? something like gn-ui-record-meta
for example. Thanks!
apps/datahub/src/index.html
Outdated
<meta property="og:title" content="Datahub" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really required or will the angular code be enough to create those elements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you! I just added a comment to remind you to make the new component standalone, thanks :)
|
||
@Component({ | ||
selector: 'gn-ui-record-meta', | ||
template: '<>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great if you could make this component standalone, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set as standalone and removed <> as it was adding this to html page :p
Description
This PR introduces OpenGraph protocol to datahub's records. A nice implmentation would be to have a default image and base title for og:title.
But it will add more default.toml conf. I tried here to keep it simple.
🔗⚠️ Also add external viewer button to exports to be able to use it in other apps which use gn-ui
Screenshots
Quality Assurance Checklist
This work is sponsored by MEL.