diff --git a/examples/deno_sqlite.ts b/examples/deno_sqlite.ts index 1e8695686..6ce7bca5c 100644 --- a/examples/deno_sqlite.ts +++ b/examples/deno_sqlite.ts @@ -1,4 +1,4 @@ -import { Database } from "https://deno.land/x/sqlite3@0.10.0/mod.ts"; +import { Database } from "jsr:@db/sqlite"; import fastro, { Context, HttpRequest } from "@app/mod.ts"; const db = new Database("sqlite.db"); diff --git a/modules/blog/blog.layout.tsx b/modules/blog/blog.layout.tsx index dfc450e66..575cda035 100644 --- a/modules/blog/blog.layout.tsx +++ b/modules/blog/blog.layout.tsx @@ -82,6 +82,7 @@ export default function ( const tags = props.attrs.tags as string[]; const data = props.data; const time = formatDateToISO(new Date(date)); + const ogImage = image ?? "https://fastro.deno.dev/fastro.png"; return ( @@ -89,7 +90,7 @@ export default function ( - + - - {image && } - - {title} - - - - {author} • {date} - - {generateTags(tags)} - - - - {props.markdown} + {image && } + + + + {title} + + + + {author} • {date} + + {generateTags(tags)} + + + + {props.markdown} +
- - {author} • {date} -
+ + {author} • {date} +