Simplify folders and more typescript migration
This commit is contained in:
@ -26,7 +26,7 @@ export const CATEGORY_BASE = cleanSlug(BLOG?.category?.pathname);
|
||||
export const TAG_BASE = cleanSlug(BLOG?.tag?.pathname);
|
||||
|
||||
/** */
|
||||
export const getCanonical = (path = '') => new URL(path, SITE.origin);
|
||||
export const getCanonical = (path = ''): string | URL => new URL(path, SITE.origin);
|
||||
|
||||
/** */
|
||||
export const getPermalink = (slug = '', type = 'page'): string => {
|
||||
|
Reference in New Issue
Block a user