From c7b125bb4b8ddaf369a6ef26e71b5ccdcbc0a0a2 Mon Sep 17 00:00:00 2001 From: yossydev Date: Wed, 6 Mar 2024 04:13:48 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20description=E3=81=AE=E5=9E=8B=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/global.d.ts | 3 ++- app/routes/posts/_renderer.tsx | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/global.d.ts b/app/global.d.ts index a0c8778..6d6eb25 100644 --- a/app/global.d.ts +++ b/app/global.d.ts @@ -2,13 +2,14 @@ import {} from "hono"; type Head = { title?: string; + description?: string; }; declare module "hono" { interface ContextRenderer { ( content: string | Promise, - head?: Head & { frontmatter?: Head }, + head?: Head & { frontmatter?: Head; description?: string }, ): Response | Promise; } } diff --git a/app/routes/posts/_renderer.tsx b/app/routes/posts/_renderer.tsx index 0c42902..c820b2a 100644 --- a/app/routes/posts/_renderer.tsx +++ b/app/routes/posts/_renderer.tsx @@ -2,7 +2,10 @@ import { jsxRenderer } from "hono/jsx-renderer"; export default jsxRenderer(({ children, Layout, frontmatter }) => { return ( - +
{children}
);