-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
enable adding default meta tags #2699
Comments
We do have a What default tags would you propose? |
Also if you're using pages, there's |
Maybe a default An |
See also #2536 which in retrospect I'm not sure we ever fully addressed. |
If people aren't using Pages, it would be nice to specify:
Then it would build the meta tags like Pages does here Providing defaults could be tricky though. For the image, it might be better if it was something generic and not associated with the Plotly brand? Once # 2536 is addressed, I could do the PR if you like 🙂 |
@AnnMarieW love that API! Just a note, I see this like an extension to our default title & favicon (which we've provided for ages...) I wonder, @jingningzhang1 -- do you have any ideas for a default image meta which isn't super brand-focused but conveys... "dashboard"? |
I guess I probably inspired the creation of this issue from my comments in mckinsey/vizro#176, so just to add my bit... 🙂 It's not a big deal at all, but to me it feels a little odd that As for defaults, I think just not including a description is fine. Slightly off-topic, so not wanting to derail things, but since it was mentioned already... Actually it would be nice if the favicon could be made part of the public API (currently it's all done in I'd also be very interested in finding out if #2536 is fully resolved. |
@ndrezn @alexcjohnson @Coding-with-Adam would it be possible to have the meta image be the default state that an app loads in? e.g. this app https://hyperion-analytics-7b00dad124d2.herokuapp.com/ has the default meta image below: |
hi @jingningzhang1 |
As of this PR there is now an It currently applies only when |
Dash applications have a default
title
("Dash") but no other default<meta>
tags. You can add those tags using the builtin component: https://dash.plotly.com/dash-html-components/metaBut, would be great to have some general meta tags (an image, description maybe?) added by default to every Dash app. This way... they look great out-of-the-box when they're shared! Plausibly we could add some first-class API for meta tags? like,
app.config(description=...
)?The text was updated successfully, but these errors were encountered: