replace About Us to Home
This commit is contained in:
parent
fca7858ef5
commit
b7c2a74bf5
2 changed files with 2 additions and 13 deletions
11
src/index.ts
11
src/index.ts
|
@ -24,14 +24,6 @@ const websites = [{
|
||||||
cssfile: "css/styles.css",
|
cssfile: "css/styles.css",
|
||||||
themecolor: ""
|
themecolor: ""
|
||||||
},
|
},
|
||||||
{
|
|
||||||
sitename: "about",
|
|
||||||
title: "IEEE at UCSD",
|
|
||||||
description: "",
|
|
||||||
jsfile: "js/index.js",
|
|
||||||
cssfile: "css/styles.css",
|
|
||||||
themecolor: ""
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
sitename: "events",
|
sitename: "events",
|
||||||
title: "IEEE at UCSD",
|
title: "IEEE at UCSD",
|
||||||
|
@ -83,9 +75,6 @@ app.use(express.urlencoded({extended: true}));
|
||||||
app.get("/", (req: Request, res: Response) => {
|
app.get("/", (req: Request, res: Response) => {
|
||||||
respond(res, "index");
|
respond(res, "index");
|
||||||
});
|
});
|
||||||
app.get("/about", (req: Request, res: Response) => {
|
|
||||||
respond(res, "about");
|
|
||||||
});
|
|
||||||
app.get("/events", (req: Request, res: Response) => {
|
app.get("/events", (req: Request, res: Response) => {
|
||||||
respond(res, "events");
|
respond(res, "events");
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// The links that are on the top nav bar that link to a lowercase version of their page
|
// The links that are on the top nav bar that link to a lowercase version of their page
|
||||||
export const ACTIVE_PAGES = [{
|
export const ACTIVE_PAGES = [{
|
||||||
name: "About Us",
|
name: "Home",
|
||||||
url: "/about"
|
url: "/"
|
||||||
},{
|
},{
|
||||||
name: "Events",
|
name: "Events",
|
||||||
url: "/events"
|
url: "/events"
|
||||||
|
|
Loading…
Reference in a new issue