chore: fix build

This commit is contained in:
Corbin Crutchley
2021-12-10 09:51:25 -08:00
parent 078f9cf943
commit 42ee7df0b9
37 changed files with 231 additions and 19 deletions

View File

@@ -15,6 +15,10 @@ export const isRelativePath = (str: string) => {
return true;
};
export const getFullRelativePath = (slug: string, srcStr: string) => {
export const getFullRelativePostImgPath = (slug: string, srcStr: string) => {
return isRelativePath(srcStr) ? slash(join("/posts", slug, srcStr)) : srcStr;
};
export const getFullRelativeAuthorImgPath = (srcStr: string) => {
return isRelativePath(srcStr) ? slash(join("/unicorns", srcStr)) : srcStr;
};