fix: add frontend url path to all link URLs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
333f99b27c
commit
d271ab9c8c
@ -1,5 +1,6 @@
|
||||
|
||||
export const DIRECTUS_URL = 'https://nanakura.nanao.moe';
|
||||
export const FRONTEND_URL = 'https://blog.nanao.moe';
|
||||
|
||||
export const generateAssetUrl = (file: any) => {
|
||||
if (!file) {
|
||||
@ -17,15 +18,15 @@ export const generateThumbnailUrl = (file: any) => {
|
||||
|
||||
|
||||
export const generateCategoryUrl = (slug: string) => {
|
||||
return "/" + slug;
|
||||
return FRONTEND_URL + "/" + slug;
|
||||
}
|
||||
|
||||
export const generateAuthorUrl = (slug: string) => {
|
||||
return "/author/" + slug;
|
||||
return FRONTEND_URL + "/author/" + slug;
|
||||
}
|
||||
|
||||
export const generatePostUrl = (category: string, slug: string) => {
|
||||
return "/" + category + "/" + slug;
|
||||
return FRONTEND_URL + "/" + category + "/" + slug;
|
||||
}
|
||||
|
||||
export const mapPostAuthor = (author: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user