Skip to content

Commit 925ed07

Browse files
committed
convert png to svg, create common shared public images folder
1 parent 701676b commit 925ed07

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

β€Žapps/labs/posts/uarray-intro.mdxβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ published: April 30, 2019
55
description: 'The problem is, stated simply: How do we use all of the PyData libraries in tandem, moving seamlessly from one to the other, without actually changing the API, or even the imports?'
66
category: [PyData ecosystem]
77
featuredImage:
8-
src: /posts/uarray-intro/blog_feature_var1.svg
8+
src: /images/blog_feature_var1.png
99
alt: 'An illustration of a brown and a dark brown hand coming towards each other to pass a business card with the logo of Quansight Labs.'
1010
hero:
11-
imageSrc: /posts/uarray-intro/blog_hero_var1.svg
11+
imageSrc: /images/blog_hero_var1.svg
1212
imageAlt: 'An illustration of a brown hand holding up a microphone, with some graphical elements highlighting the top of the microphone.'
1313
---
1414

70.1 KB
Loading

β€Žapps/labs/public/posts/uarray-intro/blog_feature_var1.svgβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žapps/labs/services/posts/serializePost.tsβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ export const serializePost = async (
2121
}> => {
2222
const fileContent = getFileContent(fileName);
2323
const { data, content } = matter(fileContent);
24+
25+
if ((data as TPost['meta']).featuredImage.src.endsWith('.svg')) {
26+
throw Error(
27+
`SVG not allowed for featured image (not widely supported by social media sites). Convert to PNG or JPEG: ${data.featuredImage.src}`,
28+
);
29+
}
30+
2431
const result = await serialize(content, {
2532
scope: data,
2633
mdxOptions: {

0 commit comments

Comments
Β (0)