-
Notifications
You must be signed in to change notification settings - Fork 964
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
Improve logo for Twitter cards #3304
Conversation
I'll work on fixing that test, thought it would be a quick one liner fix, I should have tested previously. |
@jmuzsik Yeah, sorry for the confusion. The You should just create a dummy image, name it I went ahead and created one for you to save you the trouble: |
For one reason or another, jpg did not cache in the manifest.json so I converted the image to png, in which case it worked. |
@jmuzsik Hmm, the actual image is currently a Was there an error? Or did it just not appear in the manifest? I'm guessing it's because the extension is not listed in the Probably the best to do this for the future when this might happen again, unless there is some reason why we can't use |
Here is a couple images, for whatever reason, jpg never got into the And no error, only the tests failed because of the same caching problem, so likely what you are thinking. I'll do that as well, add the extension to gulpFile |
@jmuzsik Sorry if this is a little confusing. Are you checking the I added diff --git a/Gulpfile.babel.js b/Gulpfile.babel.js
index e77754c..298ad58 100644
--- a/Gulpfile.babel.js
+++ b/Gulpfile.babel.js
@@ -215,6 +215,7 @@ gulp.task("dist:manifest", () => {
".ttf",
".otf",
".png",
+ ".jpg",
".ico",
".js",
],
@@ -246,6 +247,7 @@ gulp.task("dist:compress:br:generic", () => {
path.join(distPath, "fonts", "*.svg"),
path.join(distPath, "images", "*.png"),
+ path.join(distPath, "images", "*.jpg"),
path.join(distPath, "images", "*.svg"),
path.join(distPath, "images", "*.ico"),
]; running {
"css/font-awesome.css": "css/font-awesome.628aab96.css",
"css/warehouse.css": "css/warehouse.468a3572.css",
"css/font-awesome.css.map": "css/font-awesome.css.4741d860.map",
"css/warehouse.css.map": "css/warehouse.css.8db81ae8.map",
"fonts/FontAwesome.otf": "fonts/FontAwesome.b5744b64.otf",
"fonts/fontawesome-webfont.eot": "fonts/fontawesome-webfont.1fb8a705.eot",
"fonts/fontawesome-webfont.svg": "fonts/fontawesome-webfont.912ec66d.svg",
"fonts/fontawesome-webfont.ttf": "fonts/fontawesome-webfont.e1dd9adb.ttf",
"fonts/fontawesome-webfont.woff": "fonts/fontawesome-webfont.a7bbeb58.woff",
"fonts/fontawesome-webfont.woff2": "fonts/fontawesome-webfont.68560c51.woff2",
"js/warehouse.js": "js/warehouse.b60a2f5f.js",
"js/warehouse.js.map": "js/warehouse.js.0cd523c9.map",
"js/vendor/zxcvbn.js": "js/vendor/zxcvbn.9cf6916d.js",
"images/blue-cube-small.png": "images/blue-cube-small.c34cf0bf.png",
"images/blue-cube.svg": "images/blue-cube.e6165d35.svg",
"images/favicon.ico": "images/favicon.6a76275d.ico",
"images/history-line.png": "images/history-line.ded09064.png",
"images/logo-large.svg": "images/logo-large.87e8a3ef.svg",
"images/logo-small.svg": "images/logo-small.972290d5.svg",
"images/twitter.jpg": "images/twitter.21ac1c93.jpg",
"images/white-cube-small.png": "images/white-cube-small.95381ba2.png",
"images/white-cube.png": "images/white-cube.9f6d32b9.png",
"images/white-cube.svg": "images/white-cube.8c3a6fe9.svg"
} |
@di - no particular reason to use a .jpg. It was just the example I found in the twitter docs. If it makes any difference, I am happy to provide a .png instead? according to the docs:
|
Ah, sorry for taking up some of your time for this beginner problem. Thanks for the info. I was not running Thanks very much! |
@jmuzsik Could you make the image in this PR the full-resolution image I included in the comment above? As it is, the placeholder image is too small to actually be accepted by Twitter, so testing this locally in the future with something like ngrok would fail. |
Thanks @jmuzsik! |
Thanks for all the help! |
🎉 |
In reference to #3112, literally solely changed the image used as twitter does not support svg images.