diff --git a/lib/title.ts b/lib/title.ts new file mode 100644 --- /dev/null +++ b/lib/title.ts @@ -0,0 +1,7 @@ +const DEFAULT_TITLE = "Wichita's software developer community"; + +export const title = ( + pageTitle: string = DEFAULT_TITLE, +) => { + return `${pageTitle} | devICT`; +}; diff --git a/routes/_app.tsx b/routes/_app.tsx --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -1,6 +1,7 @@ import { PageProps } from "$fresh/server.ts"; import Header from "../islands/Header.tsx"; import Footer from "../islands/Footer.tsx"; +import { title } from "../lib/title.ts"; const nav = [ { name: "About", href: "/about" }, @@ -49,7 +50,7 @@ `} - Contribute · devICT + {title()}
diff --git a/routes/about.tsx b/routes/about.tsx --- a/routes/about.tsx +++ b/routes/about.tsx @@ -1,101 +1,107 @@ import { FunctionComponent } from "preact"; import Card from "../components/Card.tsx"; import AboutHero from "../components/AboutHero.tsx"; -import { CardProps } from "../components/Card.tsx"; +import { Head } from "$fresh/runtime.ts"; +import { title } from "../lib/title.ts"; export default function About() { return ( -
- -
- - - + <> + + {title("About")} + +
+ +
+ + + +
+ +
+ +
+
+

Organizers

+

+ The devICT Institute is a 501c3 non-profit governed by a board of + directors. In addition to the board we are supported by volunteers + who organize events and generally keep things running. +

+
+ +

Board of Directors

+
+ + + + + +
+

Event Hosts and Volunteers

+

+ +
+ + +
+
- -
- -
-
-

Organizers

-

- The devICT Institute is a 501c3 non-profit governed by a board of - directors. In addition to the board we are supported by volunteers - who organize events and generally keep things running. -

-
- -

Board of Directors

-
- - - - - -
-

Event Hosts and Volunteers

-

- -
- - -
-
-
+ ); } diff --git a/routes/conduct.tsx b/routes/conduct.tsx --- a/routes/conduct.tsx +++ b/routes/conduct.tsx @@ -1,6 +1,7 @@ import { CSS, render } from "$gfm"; import { Head } from "$fresh/runtime.ts"; import ConductReportForm from "../components/ConductReportForm.tsx"; +import { title } from "../lib/title.ts"; const cocMarkdown = await Deno.readTextFile("./CODE_OF_CONDUCT.md"); @@ -23,13 +24,15 @@ <>