diff --git a/app/global.d.ts b/app/global.d.ts index 6d6eb25..c01c322 100644 --- a/app/global.d.ts +++ b/app/global.d.ts @@ -3,6 +3,9 @@ import {} from "hono"; type Head = { title?: string; description?: string; + date?: string; + updatedAt?: string; + path?: string; }; declare module "hono" { diff --git a/app/islands/SnsButton.tsx b/app/islands/SnsButton.tsx index ed0f285..10496ba 100644 --- a/app/islands/SnsButton.tsx +++ b/app/islands/SnsButton.tsx @@ -1,7 +1,12 @@ import type { FC } from "hono/jsx"; import { LINK } from "../constants"; -const SnsButton: FC<{ title: string }> = ({ title }) => { +type Props = { + title: string; + path: string; +}; + +const SnsButton: FC = ({ title, path }) => { if (typeof window === "undefined") { return (
@@ -37,6 +42,14 @@ const SnsButton: FC<{ title: string }> = ({ title }) => { > Follow @yossydev + + ✏ Edit +
); }; diff --git a/app/routes/posts/_renderer.tsx b/app/routes/posts/_renderer.tsx index 0d40340..41bdfec 100644 --- a/app/routes/posts/_renderer.tsx +++ b/app/routes/posts/_renderer.tsx @@ -8,10 +8,20 @@ export default jsxRenderer(({ children, Layout, frontmatter }) => {

{frontmatter?.title}

+
+
+
publishedAt:
+
{frontmatter?.date}
+
+
+
updatedAt:
+
{frontmatter?.updatedAt}
+
+
{children}
- +
); }); diff --git a/app/routes/posts/css-nesting-improves-with-cssnesteddeclarations.mdx b/app/routes/posts/css-nesting-improves-with-cssnesteddeclarations.mdx index 8023581..a8d2efe 100644 --- a/app/routes/posts/css-nesting-improves-with-cssnesteddeclarations.mdx +++ b/app/routes/posts/css-nesting-improves-with-cssnesteddeclarations.mdx @@ -3,6 +3,7 @@ title: "Chrome 130でのCSSネスティング改善: CSSNestedDeclarationsの詳 description: "web.devが先日、CSS nesting improves with CSSNestedDeclarationsというブログを公開しました。このブログでは、CSSネスティングの仕様にCSSNestedDeclarationsが追加されたことについて書かれています。導入背景やCSSOMの動きなどが少し面白かったのでブログにまとめました。" date: "2024/10/13" updatedAt: "2024/10/13" +path: "css-nesting-improves-with-cssnesteddeclarations" published: true ---