Skip to content

Commit bb011bc

Browse files
committed
idk how to file
1 parent b2f97cb commit bb011bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gen-webring-routes.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const fs = require("fs");
44
const frogs = require("./static/webring/froglist.json");
55

66
function makeRoutes(frog, nextFrog, prevFrog) {
7+
fs.mkdir(`./static/webring/frogs/${frog.name}`, { recursive: true });
78
fs.appendFileSync(`./static/webring/frogs/${frog.name}.html`, frog.url);
89
fs.appendFileSync(`./static/webring/frogs/${frog.name}/next.html`, nextFrog.url);
910
fs.appendFileSync(`./static/webring/frogs/${frog.name}/prev.html`, prevFrog.url);

0 commit comments

Comments
 (0)