Skip to content

chore: use SVG logo where applicable #2787

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

Merged
merged 2 commits into from
May 19, 2021
Merged

Conversation

phanan
Copy link
Member

@phanan phanan commented Mar 17, 2021

I've just realized that we're using a PNG logo everywhere when a much smaller (195B gzipped vs 3KB) SVG can do just fine. This PR does just that: replace the PNG version with SVG where applicable.

If everyone is on board, I'll port this over to v3 naturally.

@phanan phanan requested a review from a team March 17, 2021 13:17
@@ -21,7 +21,7 @@
<meta property="og:type" content="article">
<meta property="og:title" content="<%- page.title ? page.title + ' — ' : '' %>Vue.js">
<meta property="og:description" content="<%- theme.site_description %>">
<meta property="og:image" content="https://<%- theme.root_domain %>/<%- url_for("/images/logo.png") %>">
<meta property="og:image" content="https://<%- theme.root_domain %>/images/logo.png">
Copy link
Member Author

Choose a reason for hiding this comment

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

It's quite lame that OG protocol doesn't support SVG but I'm taking this opportunity to make this consistent with the twitter:image meta tag declaration.

Copy link
Member

@bencodezen bencodezen left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for discovering that and making the improvement!

@phanan
Copy link
Member Author

phanan commented May 19, 2021

Oops can't believe I totally forgot about this!

@phanan phanan merged commit d0927f8 into vuejs:master May 19, 2021
@phanan phanan deleted the chore/logo branch May 19, 2021 17:15
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.

2 participants