diff --git a/src/config.ts b/src/config.ts index 9c17d9f..e233914 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,7 +8,7 @@ export const SITE: Site = { ogImage: "https://i2.woh.to/2023/09/30/photo_2023-05-07_23-49-04a122368bf889ed18.jpg", lightAndDarkMode: true, - postPerPage: 5, + postPerPage: 4, scheduledPostMargin: 15 * 60 * 1000, // 15 minutes }; diff --git a/src/content/_typst/tensor.typ b/src/content/blog/_typst/tensor.typ similarity index 100% rename from src/content/_typst/tensor.typ rename to src/content/blog/_typst/tensor.typ diff --git a/src/content/blog/angle_beats_question.md b/src/content/blog/angle_beats_question.md index c282fa6..f023206 100644 --- a/src/content/blog/angle_beats_question.md +++ b/src/content/blog/angle_beats_question.md @@ -4,7 +4,7 @@ tags: - math author: Parsifal description: 一道有趣的计算几何 -modDatetime: 2024-09-19T03:41:24Z +modDatetime: 2024-09-19T05:15:24Z pubDatetime: 2024-09-19T01:56:21Z --- diff --git a/src/content/blog/tensor.mdx b/src/content/blog/tensor.mdx index b986c69..75350d6 100644 --- a/src/content/blog/tensor.mdx +++ b/src/content/blog/tensor.mdx @@ -6,6 +6,6 @@ author: "Parsifal" tags: ["math"] --- -import Main from "../_typst/tensor.typ/"; +import Main from "./_typst/tensor.typ/";
diff --git a/src/utils/postFilter.ts b/src/utils/postFilter.ts index 3b24ccc..09b428c 100644 --- a/src/utils/postFilter.ts +++ b/src/utils/postFilter.ts @@ -1,11 +1,11 @@ -import { SITE } from "@config"; import type { CollectionEntry } from "astro:content"; const postFilter = ({ data }: CollectionEntry<"blog">) => { - const isPublishTimePassed = - Date.now() > - new Date(data.pubDatetime).getTime() - SITE.scheduledPostMargin; - return !data.draft && (import.meta.env.DEV || isPublishTimePassed); + // const isPublishTimePassed = + // Date.now() > + // new Date(data.pubDatetime).getTime() - SITE.scheduledPostMargin; + // return !data.draft && (import.meta.env.DEV || isPublishTimePassed); + return !data.draft; }; export default postFilter;