diff --git a/components/RecipeHero.tsx b/components/RecipeHero.tsx index 754d01a..6ab92e0 100644 --- a/components/RecipeHero.tsx +++ b/components/RecipeHero.tsx @@ -16,7 +16,7 @@ export function RecipeHero( return (
@@ -25,37 +25,21 @@ export function RecipeHero( Recipe Banner )} -
+ - {data.meta?.link && - ( -
- - - -
- )} -
{data.name} + {data.meta?.link && + ( + + + + )} {data.meta?.rating && } diff --git a/routes/api/images/index.ts b/routes/api/images/index.ts index 3a7b3ea..2e2bc91 100644 --- a/routes/api/images/index.ts +++ b/routes/api/images/index.ts @@ -1,14 +1,14 @@ import { HandlerContext, Handlers } from "$fresh/server.ts"; import { ImageMagick, - initializeImageMagick, + initialize, MagickGeometry, -} from "https://deno.land/x/imagemagick_deno@0.0.14/mod.ts"; +} from "https://deno.land/x/imagemagick_deno@0.0.25/mod.ts"; import { parseMediaType } from "https://deno.land/std@0.175.0/media_types/parse_media_type.ts"; import * as cache from "@lib/cache/image.ts"; import { SILVERBULLET_SERVER } from "@lib/env.ts"; -await initializeImageMagick(); +await initialize(); async function getRemoteImage(image: string) { console.log("[api/image] fetching", { image });