Skip to content

Commit

Permalink
Merge pull request #3 from TK-Entertainment/dev-preview
Browse files Browse the repository at this point in the history
Publish: v20231120
  • Loading branch information
kevin0216 committed Nov 19, 2023
2 parents bb793e9 + 2992f58 commit 75b8301
Show file tree
Hide file tree
Showing 12 changed files with 1,890 additions and 3,602 deletions.
5 changes: 4 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default function HomePage() {
(a, b) => b[1].count - a[1].count,
);

const suggestIndex = Math.floor((Math.random() * (allBlogs.length - 1)));
const suggestPost = allBlogs[suggestIndex];

return (
<>
<main className="overflow-x-clip justify-center">
Expand Down Expand Up @@ -52,7 +55,7 @@ export default function HomePage() {
</div>
<div>
<h1 className="text-4xl font-bold mt-4 mb-4">推薦內容</h1>
<PostBlock page={latestPost} />
<PostBlock page={suggestPost} />
</div>
</div>
<div className="mt-4 flex flex-col w-auto space-x-4 mb-4">
Expand Down
2 changes: 1 addition & 1 deletion components/Navigation/tagsidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function TagSidebar() {
<ul key="topic" className="">
<p className="mt-4 text-2xl font-bold mb-2">
<FontAwesomeIcon icon={faNewspaper} className="mr-2" />
主題版
主題板
</p>
{topicTags.map(([topic, count], index) => (
<Link
Expand Down
2 changes: 1 addition & 1 deletion components/toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const cn = createTailwindMerge(getDefaultConfig, (config) => ({

export function TOC(props: { items: TOCItemType[] }) {
return (
<div className="nd-sticky nd-divide-y nd-flex nd-flex-col nd-top-16 nd-gap-4 nd-py-12 nd-w-[250px] nd-h-[calc(100vh-4rem)] max-xl:nd-hidden">
<div className="nd-sticky nd-divide-y nd-flex nd-flex-col nd-top-16 nd-gap-4 nd-py-12 nd-w-[250px] nd-h-[calc(100vh-4rem)] max-xl:hidden">
{props.items.length > 0 && <TOCItems items={props.items} />}
</div>
);
Expand Down
12 changes: 12 additions & 0 deletions content/blog/boaw_liaw.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 他們是誰?
authors: [威爾森]
description: "期待已久的內容要問世了嗎?Ψ、η、Ω已經等你們很久了!"
tags: ["Young Want星空", "爆料!!!", "準備好開啟新的旅程了嗎?"]
date: 2023-11-19T13:01:00
image: 1.png
outside: false
outsideLink:
---

<img src="/img/boaw_liaw/1.png" width="500" height="500"></img>
2 changes: 1 addition & 1 deletion content/blog/math-portfolio-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 數學科課程學習成果的學習歷程怎麼做?讓得獎同學告訴你!(文末附範例)
authors: [子甯, 威爾森]
description: "你是否在數學課做出了很亮點的作業,卻不知道該如何把課程成果轉換成學習歷程?正在為課程學習成果所苦的你,絕對能在這篇文章獲益良多!"
tags: ["學習歷程範例", "個人申請", "學習歷程準備"]
tags: ["歷程檔案板", "學習歷程範例", "個人申請", "學習歷程準備"]
date: 2023-11-09T19:39:00
image: math-portfolio-guide.webp
outside: true
Expand Down
6 changes: 4 additions & 2 deletions content/blog/the-life-of-a-star-born.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: 恆星的一生-生
authors: [威爾森]
description: "重力坍縮!回到恆星出生那年!"
tags: ["天文版", "恆星", "核融合"]
tags: ["天文板", "恆星", "核融合"]
date: 2023-10-06T15:26:00
image:
image: Solar_system.png
outside: false
outsideLink:
---
Expand Down Expand Up @@ -33,3 +33,5 @@ outsideLink:

3.偉大的發明赫羅圖

<img src="/img/the-life-of-a-star-born/Solar_system.png" width="500" height="500"></img>

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Wilson's Notes",
"version": "v20231109",
"version": "v20231120",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -14,11 +14,11 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"algoliasearch": "^4.20.0",
"contentlayer": "0.3.4",
"eslint": "^8.51.0",
"eslint": "^8.53.0",
"fontawesome-react": "^2.0.0",
"fs": "0.0.1-security",
"lucide-react": "^0.284.0",
"next": "13.5.6",
"next": "14.0.2",
"next-contentlayer": "0.3.4",
"next-docs-ui": "4.0.3",
"next-docs-zeta": "4.0.3",
Expand Down
Loading

0 comments on commit 75b8301

Please sign in to comment.