1 parent
0c8d74b21d
commit
a1e51e78f0
23 files changed
+522
-516
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import type { Metadata } from "next"
|
||||
import { App } from "@/components/App"
|
||||
import { HomeContent } from "@/components/HomeContent"
|
||||
import { MetaBuilder, buildMetadata } from "@/lib/meta"
|
||||
import { getHomeCards } from "@/remote/api"
|
||||
|
||||
export const revalidate = 30
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const title = "Шлиссельбургская ДХШ"
|
||||
const m = new MetaBuilder()
|
||||
.setTitle(title)
|
||||
.setData({ url: "/" })
|
||||
.build()
|
||||
return buildMetadata(m)
|
||||
}
|
||||
|
||||
export default async function HomePage() {
|
||||
const items = await getHomeCards()
|
||||
|
||||
return (
|
||||
<App showAuthor>
|
||||
<HomeContent items={items} />
|
||||
</App>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user