diff --git a/routes/frontpage.js b/routes/frontpage.js index 11fa883..802f964 100644 --- a/routes/frontpage.js +++ b/routes/frontpage.js @@ -22,7 +22,7 @@ app.get("/static/*", (rreq,rres) => { }) app.get("/favicon.ico", (rreq,rres) => { - rres.sendFile(process.cwd()+"/website/static/") + rres.sendFile(process.cwd()+"/website/static/bs.ico") }) app.get("/posts/*", (rreq,rres) => { @@ -39,14 +39,18 @@ app.get("/posts/*", (rreq,rres) => { }) -app.post("/api/syncfrontpage", (rreq,rres) => { +app.get("/urltoolbox", (rreq,rres) => { + rres.send("Under construction") +}) + +app.post("/api/sync", (rreq,rres) => { checkToken(rreq.query.auth,"fpupdate").then(checkResponse => { if (checkResponse === true) { if (rreq.headers["x-github-event"] == "ping") { rres.sendStatus(200) } else if (rreq.headers["x-github-event"] == "push") { - execSync("git submodule update --remote") - logRequest(rres,rreq,200,"Synchronized Git submodules") + execSync("git pull") + logRequest(rres,rreq,200,"Ran git pull") rres.sendStatus(200) } else { logRequest(rres,rreq,400) diff --git a/website/static/bs.ico b/website/static/bs.ico new file mode 100644 index 0000000..bfb61b8 Binary files /dev/null and b/website/static/bs.ico differ diff --git a/website/static/posts.css b/website/static/posts.css index 1539641..3df6078 100644 --- a/website/static/posts.css +++ b/website/static/posts.css @@ -49,14 +49,10 @@ h2 { display: flex; align-items: center; margin-top: 2rem; -} - -.inlineheader > h2, a { - margin-right: 1rem; + gap: 1em; } .inlineheader > span { - margin-right: 0.5rem; padding: 0.2rem; color: white; background-color: #f06445;