From 5c0227c8cbad4b8a3a72d21184407b7615e44b7e Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 3 Dec 2024 22:37:53 +0800 Subject: [PATCH] Add top blog --- src/components/PostPage.astro | 1 + src/config.ts | 1 + src/content/posts/infinite-game/index.md | 2 +- src/types/config.ts | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/PostPage.astro b/src/components/PostPage.astro index c10a8dcfa..088b2030a 100644 --- a/src/components/PostPage.astro +++ b/src/components/PostPage.astro @@ -1,6 +1,7 @@ --- import { getPostUrlBySlug } from '@utils/url-utils' import PostCard from './PostCard.astro' +import { siteConfig } from '../config' const { page } = Astro.props diff --git a/src/config.ts b/src/config.ts index cdc0607ea..777aca8b5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -24,6 +24,7 @@ export const siteConfig: SiteConfig = { url: 'https://youtu.be/DtKDPBqMu3o?t=7239' // (Optional) URL link to the original artwork or artist's page } }, + topBlog: "Leadership is an Infinite-Game", toc: { enable: true, // Display the table of contents on the right side of the post depth: 3 // Maximum heading depth to show in the table, from 1 to 3 diff --git a/src/content/posts/infinite-game/index.md b/src/content/posts/infinite-game/index.md index 2eda37437..87d471bde 100644 --- a/src/content/posts/infinite-game/index.md +++ b/src/content/posts/infinite-game/index.md @@ -1,6 +1,6 @@ --- title: Leadership is an Infinite-Game -published: 2024-12-03 +published: 2024-12-02 description: Ardeth Bay is my role model for a perfect leader. image: cover.png tags: [Leadership] diff --git a/src/types/config.ts b/src/types/config.ts index 67e5f2596..421868f8d 100644 --- a/src/types/config.ts +++ b/src/types/config.ts @@ -20,6 +20,7 @@ export type SiteConfig = { url?: string } } + topBlog: string toc: { enable: boolean depth: 1 | 2 | 3