Skip to content

Commit

Permalink
move CommentWidget to islands
Browse files Browse the repository at this point in the history
  • Loading branch information
hlqviet committed May 18, 2024
1 parent f6818b9 commit 1125746
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as $api_posts_index from "./routes/api/posts/index.ts";
import * as $blog_slug_ from "./routes/blog/[slug].tsx";
import * as $blog_index from "./routes/blog/index.tsx";
import * as $index from "./routes/index.tsx";

import * as $CommentWidget from "./islands/CommentWidget.tsx";
import { type Manifest } from "$fresh/server.ts";

const manifest = {
Expand All @@ -28,7 +28,9 @@ const manifest = {
"./routes/blog/index.tsx": $blog_index,
"./routes/index.tsx": $index,
},
islands: {},
islands: {
"./islands/CommentWidget.tsx": $CommentWidget,
},
baseUrl: import.meta.url,
} satisfies Manifest;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion routes/blog/[slug].tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Head } from "$fresh/runtime.ts";
import { Handler, PageProps } from "$fresh/server.ts";
import { render } from "$gfm";
import CommentWidget from "@/components/CommentWidget.tsx";
import Container from "@/components/Container.tsx";
import Link from "@/components/Link.tsx";
import Metadata from "@/components/Metadata.tsx";
import CommentWidget from "@/islands/CommentWidget.tsx";
import { Post } from "@/lib/types.ts";
import { formatPostDate } from "@/lib/utils.ts";
import { handler as getPost } from "@/routes/api/posts/[slug].ts";
Expand Down

0 comments on commit 1125746

Please sign in to comment.