mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 12:57:44 +00:00
chore: fix build
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user