mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
refactor: add type to SITE object for better type safety
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
import type { SocialObjects } from "./types";
|
import type { Site, SocialObjects } from "./types";
|
||||||
|
|
||||||
export const SITE = {
|
export const SITE: Site = {
|
||||||
website: "https://astro-paper.pages.dev/",
|
website: "https://astro-paper.pages.dev/",
|
||||||
author: "Sat Naing",
|
author: "Sat Naing",
|
||||||
desc: "A minimal, responsive and SEO-friendly Astro blog theme.",
|
desc: "A minimal, responsive and SEO-friendly Astro blog theme.",
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
export type Site = {
|
||||||
|
website: string;
|
||||||
|
author: string;
|
||||||
|
desc: string;
|
||||||
|
title: string;
|
||||||
|
ogImage: string;
|
||||||
|
lightAndDarkMode: boolean;
|
||||||
|
postPerPage: number;
|
||||||
|
};
|
||||||
|
|
||||||
export type SocialObjects = {
|
export type SocialObjects = {
|
||||||
name: SocialMedia;
|
name: SocialMedia;
|
||||||
href: string;
|
href: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user