feat: add March summary post and sponsor page
- Created a new post summarizing activities in March 2025, including learning SpringBoot and social interactions. - Added a new sponsor page with support for displaying sponsorship methods, QR codes, and a list of sponsors. - Implemented comment functionality on the sponsor page, with checks for configuration settings. - Enhanced layout and styling for better user experience on the sponsor page.
This commit is contained in:
@@ -116,16 +116,23 @@ const jsonLd = {
|
||||
headline: entry.data.title,
|
||||
description: entry.data.description || entry.data.title,
|
||||
keywords: entry.data.tags,
|
||||
url: Astro.url.href,
|
||||
author: {
|
||||
"@type": "Person",
|
||||
name: profileConfig.name,
|
||||
url: Astro.site,
|
||||
},
|
||||
publisher: {
|
||||
"@type": "Person",
|
||||
name: profileConfig.name,
|
||||
url: Astro.site,
|
||||
},
|
||||
datePublished: formatDateToYYYYMMDD(entry.data.published),
|
||||
dateModified: formatDateToYYYYMMDD(entry.data.updated || entry.data.published),
|
||||
...(processedImage ? { image: new URL(processedImage.startsWith("/") ? processedImage : `/${processedImage}`, Astro.site).href } : {}),
|
||||
inLanguage: entry.data.lang
|
||||
? entry.data.lang.replace("_", "-")
|
||||
: siteConfig.lang.replace("_", "-"),
|
||||
// TODO include cover image here
|
||||
};
|
||||
|
||||
const relatedPosts = await getRelatedPosts(entry, 5);
|
||||
@@ -142,6 +149,9 @@ const relatedPosts = await getRelatedPosts(entry, 5);
|
||||
headings={headings}
|
||||
encrypted={!!entry.data.password}
|
||||
bannerPostMeta={bannerPostMeta}
|
||||
articlePublishedTime={formatDateToYYYYMMDD(entry.data.published)}
|
||||
articleModifiedTime={formatDateToYYYYMMDD(entry.data.updated || entry.data.published)}
|
||||
articleTags={entry.data.tags}
|
||||
>
|
||||
<!-- KaTeX 按需加载 - 仅在文章页面 -->
|
||||
<KatexManager slot="head" />
|
||||
|
||||
Reference in New Issue
Block a user