Refine default about description
This commit is contained in:
parent
8569347c27
commit
4f5461e327
@ -1,4 +1,4 @@
|
|||||||
import { META_DESCRIPTION, SIDEBAR_TEXT } from '@/app/config';
|
import { ABOUT_DESCRIPTION_DEFAULT } from '@/app/config';
|
||||||
|
|
||||||
export interface AboutInsert {
|
export interface AboutInsert {
|
||||||
id: number
|
id: number
|
||||||
@ -16,5 +16,4 @@ export interface About extends AboutInsert {
|
|||||||
|
|
||||||
export const getDescriptionWithFallback = (about?: About) =>
|
export const getDescriptionWithFallback = (about?: About) =>
|
||||||
about?.description ||
|
about?.description ||
|
||||||
META_DESCRIPTION ||
|
ABOUT_DESCRIPTION_DEFAULT;
|
||||||
SIDEBAR_TEXT;
|
|
||||||
|
|||||||
@ -152,6 +152,10 @@ export const SIDEBAR_TEXT =
|
|||||||
process.env.NEXT_PUBLIC_PAGE_ABOUT ||
|
process.env.NEXT_PUBLIC_PAGE_ABOUT ||
|
||||||
process.env.NEXT_PUBLIC_SITE_ABOUT;
|
process.env.NEXT_PUBLIC_SITE_ABOUT;
|
||||||
|
|
||||||
|
export const ABOUT_DESCRIPTION_DEFAULT =
|
||||||
|
process.env.NEXT_PUBLIC_META_DESCRIPTION ||
|
||||||
|
process.env.NEXT_PUBLIC_SIDEBAR_TEXT;
|
||||||
|
|
||||||
// STORAGE
|
// STORAGE
|
||||||
|
|
||||||
// STORAGE: DATABASE
|
// STORAGE: DATABASE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user