Skip to content

Commit

Permalink
SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Jun 5, 2024
1 parent d408059 commit 4683bc6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
27 changes: 15 additions & 12 deletions _components/Aside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ export function Aside({ data, hide }: AsideProps) {

return (
<aside className={asideClass(hide ?? false)}>
<img
src="/assets/logo.svg"
alt="WüSpace"
className="block w-32 mx-auto"
/>
<h1 className="mx-2 my-4 text-xl text-center text-gray-900">
VOS: Vereinsordnungssystem
</h1>
<a href="/">
<img
src="/assets/logo.svg"
alt="WüSpace"
className="block w-32 mx-auto"
/>
<h1 className="mx-2 my-4 text-xl text-center text-gray-900">
VOS: Vereinsordnungssystem
</h1>
</a>
<ul>
{Object.entries(data.page.data.vos).sort(comparator).map(
([url, metadata]) => {
Expand Down Expand Up @@ -53,10 +55,11 @@ export function Aside({ data, hide }: AsideProps) {
);
}

const asideClass = (hide: boolean) => clsx(
"h-full overflow-y-auto md:max-w-64",
hide && "hidden md:block",
);
const asideClass = (hide: boolean) =>
clsx(
"h-full overflow-y-auto md:max-w-64",
hide && "hidden md:block",
);

const comparator = ([urlA]: [string, unknown], [urlB]: [string, unknown]) => {
return urlA.localeCompare(urlB);
Expand Down
1 change: 1 addition & 0 deletions index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Aside } from "./_components/Aside.tsx";

export const layout = "index.tsx";
export const title = "WüSpace VOS: Satzung und Vereinsordnungen des WüSpace e. V.";

export default function Index({ vos, ...data }: Lume.Data, helpers: Lume.Helpers) {
return <>
Expand Down
2 changes: 1 addition & 1 deletion lib/typst-delegis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const typstDelegis = () => (site: Site) => {
...page.data,
layout: "vo.tsx",
content: site.url(page.data.url + "rendered.pdf"),
title: metadata.abbreviation,
title: metadata.abbreviation + " - " + metadata.title + ` (WüSpace VOS)`,
};

await Deno.mkdir(
Expand Down

0 comments on commit 4683bc6

Please sign in to comment.