diff --git a/lib/generate/copy.ts b/lib/generate/copy.ts new file mode 100644 index 0000000..7e22010 --- /dev/null +++ b/lib/generate/copy.ts @@ -0,0 +1,7 @@ +import { promises as fs } from "fs"; +import * as util from "../util"; + +export default async function copy() { + util.write("favicon.ico", await fs.readFile("site/favicon.ico")); + util.write("favicon-152.png", await fs.readFile("site/favicon-152.png")); +} \ No newline at end of file diff --git a/lib/generate/index.ts b/lib/generate/index.ts index c10ba02..c46aebf 100644 --- a/lib/generate/index.ts +++ b/lib/generate/index.ts @@ -1,4 +1,5 @@ import categories from "./categories"; +import copy from "./copy"; import css from "./css"; import homepage from "./homepage"; import missing from "./missing"; @@ -9,6 +10,7 @@ import tutorials from "./tutorials"; export = { categories, + copy, css, homepage, missing, diff --git a/lib/index.ts b/lib/index.ts index 2ce7b3d..c06643d 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,6 +1,7 @@ import generators = require("./generate"); async function generate() { + generators.copy(); generators.css(); generators.missing(); diff --git a/site/favicon-152.png b/site/favicon-152.png new file mode 100644 index 0000000..113de05 Binary files /dev/null and b/site/favicon-152.png differ diff --git a/site/favicon.ico b/site/favicon.ico new file mode 100644 index 0000000..4667ea7 Binary files /dev/null and b/site/favicon.ico differ diff --git a/site/layouts/default.html.ejs b/site/layouts/default.html.ejs index 4cc65fb..c86f930 100644 --- a/site/layouts/default.html.ejs +++ b/site/layouts/default.html.ejs @@ -4,7 +4,17 @@ +