diff --git a/init.ts b/init.ts index fca6492d..86bd3c58 100644 --- a/init.ts +++ b/init.ts @@ -233,6 +233,17 @@ await Deno.writeTextFile( STATIC_LOGO, ); +try { + const faviconArrayBuffer = await fetch("https://fresh.deno.dev/favicon.ico") + .then((d) => d.arrayBuffer()); + await Deno.writeFile( + join(directory, "static", "favicon.ico"), + new Uint8Array(faviconArrayBuffer), + ); +} catch { + // Skip this and be silent if there is a nework issue. +} + let MAIN_TS = `/// /// ///