feat: add title
This commit is contained in:
@ -22,7 +22,7 @@ export default function Greet(props: PageProps<Article>) {
|
||||
console.log({ tags: article.tags });
|
||||
|
||||
return (
|
||||
<MainLayout url={props.url}>
|
||||
<MainLayout url={props.url} title={`Article > ${article.name}`}>
|
||||
<RecipeHero
|
||||
data={article}
|
||||
subline={[author, date.toString()]}
|
||||
|
@ -15,7 +15,7 @@ export const handler: Handlers<Article[] | null> = {
|
||||
|
||||
export default function Greet(props: PageProps<Article[] | null>) {
|
||||
return (
|
||||
<MainLayout url={props.url}>
|
||||
<MainLayout url={props.url} title="Articles">
|
||||
<header class="flex gap-4 items-center mb-5 md:hidden">
|
||||
<a
|
||||
class="px-4 ml-4 py-2 bg-gray-300 text-gray-800 rounded-lg flex items-center gap-1"
|
||||
@ -33,7 +33,7 @@ export default function Greet(props: PageProps<Article[] | null>) {
|
||||
{props.data?.map((doc) => {
|
||||
return (
|
||||
<Card
|
||||
image={doc?.meta?.image||"/placeholder.svg"}
|
||||
image={doc?.meta?.image || "/placeholder.svg"}
|
||||
link={`/articles/${doc.id}`}
|
||||
title={doc.name}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user