Add env-based site configuration

This commit is contained in:
2025-11-17 16:32:09 +08:00
parent 48521d6f5c
commit 10948aa2ca
5 changed files with 24 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
import Link from 'next/link';
import { getAllPostsSorted } from '@/lib/posts';
import { siteConfig } from '@/lib/config';
export default function HomePage() {
const posts = getAllPostsSorted().slice(0, 5);
@@ -7,7 +8,9 @@ export default function HomePage() {
return (
<section className="space-y-6">
<div>
<h1 className="text-3xl font-bold"> Your Name</h1>
<h1 className="text-3xl font-bold">
{siteConfig.name}
</h1>
<p className="mt-2 text-gray-600 dark:text-gray-300">
Blog
</p>
@@ -39,4 +42,3 @@ export default function HomePage() {
</section>
);
}